-
Notifications
You must be signed in to change notification settings - Fork 181
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
Fix channel thumbnail upload #1140
Fix channel thumbnail upload #1140
Conversation
Add tests for data migration. Change frontend behaviour as no need to serialize and deserialize JSON.
to handle it now being a JSONField. Add tests to cover all these references.
Looks like I was forced to follow the advice for altering a column: I don't think we'll lose data for not making the code write to both the columns, because the bug is preventing this writing anyway, so it will not take effect until it is deployed. |
Deployed the code to develop studio.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really thorough, Richard!
💯
The most interesting pull request in the world! |
Description
Fixes the behaviour for saving thumbnail_encoding data to the server. As we are using a patch update for this, it does not get passed through the 'toJSON' method of the Channel Model on the frontend, and so is not getting JSON.stringified. Does away with the need for this by storing this data on the backend as a postgres JSONField.
Before/After Screenshots (if applicable)
Before:
After:
Steps to Test
Checklist
Comments
Need to test the last checklist item before merging. This involves individual operations on each channel, so may be very slow.