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

fix: drop jsonfield and use builtin JSONField #179

Closed

Conversation

obdulia-losantos
Copy link
Contributor

@obdulia-losantos obdulia-losantos commented Feb 7, 2025


name: Drop jsonfield
about: Replace jsonfield.JSONField with django.db.models.JSONField class
assignees: fabiocaccamo

Describe your changes
Dropped unmaintained jsonfield field and replaced jsonfield.JSONField with django.db.models.JSONField class.

The dependency cannot be removed because is used within a migration file. I have squashed the migration files so maybe in the future it can be removed.

Another solution is to change the migration file and replace jsonfield with django field.
🤷 See PR #180

Related issue
#178

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have added tests for the proposed changes.
  • I have run the tests and there are not errors.

@obdulia-losantos obdulia-losantos force-pushed the fix-json-field branch 2 times, most recently from fcf8a40 to c16bf52 Compare February 7, 2025 14:26
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.77%. Comparing base (bdb4312) to head (63bf50e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #179      +/-   ##
==========================================
+ Coverage   85.41%   85.77%   +0.36%     
==========================================
  Files          21       23       +2     
  Lines         432      443      +11     
==========================================
+ Hits          369      380      +11     
  Misses         63       63              
Flag Coverage Δ
unittests 85.77% <100.00%> (+0.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@obdulia-losantos obdulia-losantos marked this pull request as ready for review February 7, 2025 14:38
@obdulia-losantos obdulia-losantos deleted the fix-json-field branch February 10, 2025 17:45
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.

2 participants