feat(migrations): add new field to maintenancephase#508
feat(migrations): add new field to maintenancephase#508cesar-richard wants to merge 4 commits intodevelopfrom
Conversation
- Also add missing fhirfilter managers change migration
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 28 minutes and 3 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughTwo Django apps receive schema updates: Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@admin_cohort/models/maintenance.py`:
- Line 27: The new model BooleanField is_data_saved_message_hidden must be
included in the WebSocket DTO: add a boolean field named
is_data_saved_message_hidden to the WSMaintenanceInfo schema (so it serializes
the model property) and update the maintenance_phase_to_info() function to
populate that field from the model (ensure you use the same key name and Boolean
value as in the model so WebSocket payloads include the flag).
In `@cohort/migrations/0025_alter_fhirfilter_managers.py`:
- Around line 13-20: The migration alters FhirFilter managers but only registers
('all_objects', ...), which replaces the model's managers and removes the
default objects manager used across the codebase; update the
migrations.AlterModelManagers operation for name='fhirfilter' to include both
managers (i.e., add an ('objects', django.db.models.manager.Manager()) entry
alongside ('all_objects', ...)) so the default FhirFilter.objects manager
remains available.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 785de6b1-2f51-43c7-9c19-679f536a55e0
📒 Files selected for processing (3)
admin_cohort/migrations/0008_maintenancephase_is_data_saved_message_hidden.pyadmin_cohort/models/maintenance.pycohort/migrations/0025_alter_fhirfilter_managers.py
c51f5e1 to
f46d5cd
Compare
Blocks aphp/Cohort360-FrontEnd#1210
Blocks aphp/Cohort360-AdministrationPortal#22
Summary by CodeRabbit
New Features
Improvements