URB-3550: Implement notifications ARRET_PLAN_MODIF_COMMUNE, ARRET_PLAN_MODIF_COMMUNE_MANUELLE - #607
URB-3550: Implement notifications ARRET_PLAN_MODIF_COMMUNE, ARRET_PLAN_MODIF_COMMUNE_MANUELLE#607daggelpop wants to merge 1 commit into
ARRET_PLAN_MODIF_COMMUNE, ARRET_PLAN_MODIF_COMMUNE_MANUELLE#607Conversation
…PLAN_MODIF_COMMUNE_MANUELLE`
📝 WalkthroughWalkthroughThe notification system now recognizes two amended-plan stoppage notices, routes them to a dedicated handler, emits the amended-plans intention event, sets the licence to ChangesAmended plan notifications
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Notification as notification.py
participant Router as notice.py
participant Handler as StopForAmendedPlansHandler
participant Licence as Licence
Notification->>Router: classify amended-plan stop notice
Router->>Handler: route notification
Handler->>Licence: emit IIntentionToSubmitAmendedPlans
Handler->>Licence: set state to suspension
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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.
🧹 Nitpick comments (1)
src/Products/urban/browser/cron/notice.py (1)
688-693: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd regression coverage for both amended-plan stop notices.
Add tests for
ARRET_PLAN_MODIF_COMMUNEandARRET_PLAN_MODIF_COMMUNE_MANUELLE. Verify handler selection, emission ofIIntentionToSubmitAmendedPlans, and transition tosuspension.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/Products/urban/browser/cron/notice.py` around lines 688 - 693, Add regression tests for StopForAmendedPlansHandler covering both ARRET_PLAN_MODIF_COMMUNE and ARRET_PLAN_MODIF_COMMUNE_MANUELLE. Verify each notice selects this handler, emits IIntentionToSubmitAmendedPlans, and transitions the licence state to suspension.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/Products/urban/browser/cron/notice.py`:
- Around line 688-693: Add regression tests for StopForAmendedPlansHandler
covering both ARRET_PLAN_MODIF_COMMUNE and ARRET_PLAN_MODIF_COMMUNE_MANUELLE.
Verify each notice selects this handler, emits IIntentionToSubmitAmendedPlans,
and transitions the licence state to suspension.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: d3e30285-fa9a-4a20-9506-5f547c4ac3ad
📒 Files selected for processing (6)
news/URB-3550.featuresrc/Products/urban/browser/cron/notice.pysrc/Products/urban/locales/fr/LC_MESSAGES/urban.posrc/Products/urban/locales/urban-manual.potsrc/Products/urban/locales/urban.potsrc/Products/urban/notice/notification.py
Summary by CodeRabbit
New Features
Documentation