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

Move ReleaseNotes.notes from being a custom NotesField #14582

Merged
merged 1 commit into from
May 17, 2024

Conversation

stevejalim
Copy link
Collaborator

... to a simpler JSONField so we can loaddata into it

This is precursor work to moving to sqlite while retaining an export-to-sqlite route.

Editing the migration seems OK, given NotesField was a subclass of JSONField with no schema-related changes.

Issue / Bugzilla link

Resolves #14574

Testing

  • Pull the branch and compare any local releasenotes page with one on Prod -- the notes are still present for Releases, including special ones such as ones tagged "Progressive Rollout"

@stevejalim stevejalim requested review from robhudson and pmac May 17, 2024 16:10
Copy link
Member

@pmac pmac left a comment

Choose a reason for hiding this comment

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

🎶

Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.45%. Comparing base (f6d8c04) to head (cd08d27).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14582   +/-   ##
=======================================
  Coverage   76.44%   76.45%           
=======================================
  Files         148      148           
  Lines        7987     7986    -1     
=======================================
  Hits         6106     6106           
+ Misses       1881     1880    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@robhudson robhudson left a comment

Choose a reason for hiding this comment

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

Eventually I'd like us to move to Django's JSONField away from the one we use from django_extensions. But that's for another day. :)

@stevejalim
Copy link
Collaborator Author

Ooh I should amend the revised migration to match

…SONField so we can loaddata into it

This is precursor work to moving to sqlite while retaining an export-to-sqlite route.

Editing the migration seems OK, given NotesField was a subclass of JSONField with no schema-related changes.
@stevejalim stevejalim force-pushed the 14574-refactor-notes-field branch from 00896b3 to cd08d27 Compare May 17, 2024 18:28
@stevejalim stevejalim merged commit 6a4c597 into main May 17, 2024
5 checks passed
@stevejalim stevejalim deleted the 14574-refactor-notes-field branch May 17, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minorly refactor ProductRelease.notes field
3 participants