Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] Change events.payload to mediumtext #4320

Closed
wants to merge 1 commit into from
Closed

[frontend] Change events.payload to mediumtext #4320

wants to merge 1 commit into from

Conversation

Ana06
Copy link
Member

@Ana06 Ana06 commented Jan 10, 2018

We need to make this column bigger as comment.body is text as well and it many cases it is too big that we get the following error:

Mysql2::Error: Data too long for column 'event_payload'

Fixes #4319

We need to make this column bigger as `comment.body` is `text` as well
and it many cases it is too big that we get the following error:

_Mysql2::Error: Data too long for column 'event_payload'_
@Ana06 Ana06 added Bug Frontend Things related to the OBS RoR app labels Jan 10, 2018
@Ana06 Ana06 requested review from evanrolfe and hennevogel January 10, 2018 08:42
@evanrolfe
Copy link

I dont think we should be increasing the size of comments.body, instead i think we should enforce a limit. mediumtext allows up to 16million characters, for reference the bible is ~3.5 million characters, why does anybody need to write a comment that long?

Henne mentioned that the opensuse:factory team use the comments to save data somehow (I'm still unclear of the details) but to me this seems like a misuse of our system so I dont think we should be accommodating for something like that. IMO it would be better would be to ask them what it is they need and then build a feature for them properly so we dont run into problems like this.

@Ana06
Copy link
Member Author

Ana06 commented Jan 10, 2018

@hennevogel would it be possible to decrease the comments size then or build this in another way?

@codecov
Copy link

codecov bot commented Jan 10, 2018

Codecov Report

Merging #4320 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4320   +/-   ##
=======================================
  Coverage   88.07%   88.07%           
=======================================
  Files         350      350           
  Lines       18654    18654           
=======================================
  Hits        16430    16430           
  Misses       2224     2224
Flag Coverage Δ
#api 80.15% <0%> (ø) ⬆️
#rspec 70.64% <ø> (ø) ⬆️

@mdeniz
Copy link
Contributor

mdeniz commented Jan 10, 2018

Hey! @Ana06 @evanrolfe, this is not needed! You already agreed in the other PR about not changing the events table to a bigger field or am I wrong?.

BTW I'm fixing this already, is the card that talks about to have just one encoder for JSON payloads... please, close this PR.

@mdeniz mdeniz added DO NOT MERGE ⚠️ Explain yourself if you add/remove this label to a PR and removed DO NOT MERGE ⚠️ Explain yourself if you add/remove this label to a PR labels Jan 10, 2018
Copy link
Contributor

@mdeniz mdeniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already commented...

@mdeniz
Copy link
Contributor

mdeniz commented Jan 10, 2018

Ok, closing it as we talked in person, thanks @Ana06

@mdeniz mdeniz closed this Jan 10, 2018
@Ana06 Ana06 deleted the payload-mediumtext branch October 6, 2018 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants