[change] Switched third-party JSONField to built-in JSONField #673#687
[change] Switched third-party JSONField to built-in JSONField #673#687emohk wants to merge 4 commits intoopenwisp:masterfrom
Conversation
c6f5410 to
b62f072
Compare
b62f072 to
3975f34
Compare
…p#673 Replaced all uses of third-party with Django’s built-in and added corresponding migrations. Django applies the type conversion automatically using the appropriate SQL command, ensuring that existing data remains safe. Fixes openwisp#673
3975f34 to
8d7c713
Compare
WalkthroughThis change replaces the external Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code graph analysis (4)openwisp_monitoring/check/migrations/0012_alter_check_params.py (2)
openwisp_monitoring/monitoring/migrations/0013_alter_metric_extra_tags_alter_metric_main_tags.py (1)
tests/openwisp2/sample_monitoring/migrations/0005_alter_metric_extra_tags_alter_metric_main_tags.py (2)
tests/openwisp2/sample_check/migrations/0004_alter_check_params.py (2)
🪛 Ruff (0.14.14)openwisp_monitoring/check/migrations/0012_alter_check_params.py[warning] 8-10: Mutable class attributes should be annotated with (RUF012) [warning] 12-23: Mutable class attributes should be annotated with (RUF012) openwisp_monitoring/monitoring/migrations/0013_alter_metric_extra_tags_alter_metric_main_tags.py[warning] 8-10: Mutable class attributes should be annotated with (RUF012) [warning] 12-25: Mutable class attributes should be annotated with (RUF012) tests/openwisp2/sample_monitoring/migrations/0005_alter_metric_extra_tags_alter_metric_main_tags.py[warning] 8-10: Mutable class attributes should be annotated with (RUF012) [warning] 12-25: Mutable class attributes should be annotated with (RUF012) tests/openwisp2/sample_check/migrations/0004_alter_check_params.py[warning] 8-10: Mutable class attributes should be annotated with (RUF012) [warning] 12-23: Mutable class attributes should be annotated with (RUF012) 🔇 Additional comments (6)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Checklist
Reference to Existing Issue
Closes #673 .
Description of Changes
Replaced all uses of third-party with Django’s built-in and added corresponding migrations. Django applies the type conversion automatically using the appropriate SQL command, ensuring that existing data remains safe.