Skip to content

URB-3640: implement pm ep courrier commune notification - #570

Open
WBoudabous wants to merge 6 commits into
2.9.xfrom
URB-3640_implement_PM_EP_COURRIER_COMMUNE_notification
Open

URB-3640: implement pm ep courrier commune notification#570
WBoudabous wants to merge 6 commits into
2.9.xfrom
URB-3640_implement_PM_EP_COURRIER_COMMUNE_notification

Conversation

@WBoudabous

@WBoudabous WBoudabous commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This PR implements notification handling for PM_EP_COURRIER_COMMUNE

Summary by CodeRabbit

  • New Features
    • Added support for the PM_EP_COURRIER_COMMUNE public inquiry notification in modified-plans workflows.
    • Enabled this notification for date, ticket, and opinion transfer processes.
  • Bug Fixes
    • Routed PM_EP_COURRIER_COMMUNE notifications to the amended-plans workflow.
  • Documentation
    • Added French translation support for the notification.
    • Added a release/news entry documenting its handling.

@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request adds PM_EP_COURRIER_COMMUNE support to notice routing, GÉSPER transfer views, feature text, and translation catalogs.

Changes

Notice Type Feature Enablement

Layer / File(s) Summary
Cron notice handling updates
src/Products/urban/browser/cron/notice.py
PM_EP_COURRIER_COMMUNE routes to GesperAmendedPlansSPWHandler. Related logging and formatting changes preserve existing processing behavior.
GÉSPER transfer view acceptance
src/Products/urban/browser/urbaneventviews.py
Three GÉSPER EP transfer views accept PM_EP_COURRIER_COMMUNE.
Feature text and translations
news/URB-3640.feature, src/Products/urban/locales/fr/LC_MESSAGES/urban.po, src/Products/urban/locales/urban-manual.pot, src/Products/urban/locales/urban.pot
The feature entry and gettext catalogs define the new notification key. The French catalog provides its translation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: mpeeters

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 26.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the implementation of the PM_EP_COURRIER_COMMUNE notification, which is the main change in the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch URB-3640_implement_PM_EP_COURRIER_COMMUNE_notification

Comment @coderabbitai help to get the list of available commands.

@WBoudabous
WBoudabous requested a review from mpeeters June 4, 2026 12:32

@mpeeters mpeeters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you fix the conflict ?

@WBoudabous
WBoudabous force-pushed the URB-3640_implement_PM_EP_COURRIER_COMMUNE_notification branch from 7391aa7 to 591781a Compare June 22, 2026 10:12
@mpeeters mpeeters changed the title Urb 3640 implement pm ep courrier commune notification URB-364:0 implement pm ep courrier commune notification Jun 22, 2026

@mpeeters mpeeters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix the comments

"DEMANDE_AVIS_FACULTATIF_PLAN_MODIFIE_1_ERE_INSTANCE",
"DEMANDE_ENQUETE_PUBLIQUE_PLAN_MODIFIE_1_ERE_INSTANCE",
"DEMANDE_ANNONCE_PROJET_PLAN_MODIFIE_1_ERE_INSTANCE",
"DEMANDE_ANNONCE PROJET_PLAN_MODIFIE_1_ERE_INSTANCE",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is a withspace in the code, please remove it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is still a whitespace in the code.

Comment thread src/Products/urban/locales/fr/LC_MESSAGES/urban.po
@mpeeters mpeeters changed the title URB-364:0 implement pm ep courrier commune notification URB-3640: implement pm ep courrier commune notification Jun 22, 2026
@WBoudabous
WBoudabous requested a review from mpeeters June 22, 2026 13:09
"DEMANDE_AVIS_FACULTATIF_PLAN_MODIFIE_1_ERE_INSTANCE",
"DEMANDE_ENQUETE_PUBLIQUE_PLAN_MODIFIE_1_ERE_INSTANCE",
"DEMANDE_ANNONCE_PROJET_PLAN_MODIFIE_1_ERE_INSTANCE",
"DEMANDE_ANNONCE PROJET_PLAN_MODIFIE_1_ERE_INSTANCE",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is still a whitespace in the code.

@WBoudabous
WBoudabous force-pushed the URB-3640_implement_PM_EP_COURRIER_COMMUNE_notification branch from 6f3b6aa to 0a9e239 Compare June 24, 2026 07:51
@WBoudabous
WBoudabous requested a review from mpeeters June 24, 2026 07:52
failed_notice_id, exc, retry=True
)
logger.exception(
u"%s",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Must remain unicode

savepoint.rollback()
custom_exc = ErrorProcessingNotificationException(notice_id, exc)
logger.exception(
u"%s",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Must remain unicode

except Exception as exc:
custom_exc = FailedGettingRecentNotificationsException(exc)
logger.exception(
u"%s",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Must remain unicode

Comment on lines -449 to -453
u"<p>${msg} for informations: ${data}</p>",
"<p>${msg} for informations: ${data}</p>",
mapping={
"msg": msg,
"data": u", ".join(
[u"{0}: {1}".format(k, v) for k, v in serialized_data.items()]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Must remain unicode

self.event.setDecision(urban_decision_term)
else:
self.event.setDescription(
u"Décision: {}".format(self.notification.decision_code)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Must remain unicode

self.event.setDecision(urban_decision_term)
else:
self.event.setDescription(
u"Décision: {}".format(decision_code)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Must remain unicode

@WBoudabous
WBoudabous force-pushed the URB-3640_implement_PM_EP_COURRIER_COMMUNE_notification branch from 4277dd9 to d40b8c6 Compare August 3, 2026 11:13
@WBoudabous
WBoudabous requested a review from mpeeters August 3, 2026 11:13
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