URB-3640: implement pm ep courrier commune notification - #570
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis pull request adds ChangesNotice Type Feature Enablement
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
7391aa7 to
591781a
Compare
| "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", |
There was a problem hiding this comment.
There is a withspace in the code, please remove it
There was a problem hiding this comment.
There is still a whitespace in the code.
| "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", |
There was a problem hiding this comment.
There is still a whitespace in the code.
6f3b6aa to
0a9e239
Compare
| failed_notice_id, exc, retry=True | ||
| ) | ||
| logger.exception( | ||
| u"%s", |
| savepoint.rollback() | ||
| custom_exc = ErrorProcessingNotificationException(notice_id, exc) | ||
| logger.exception( | ||
| u"%s", |
| except Exception as exc: | ||
| custom_exc = FailedGettingRecentNotificationsException(exc) | ||
| logger.exception( | ||
| u"%s", |
| 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()] |
| self.event.setDecision(urban_decision_term) | ||
| else: | ||
| self.event.setDescription( | ||
| u"Décision: {}".format(self.notification.decision_code) |
| self.event.setDecision(urban_decision_term) | ||
| else: | ||
| self.event.setDescription( | ||
| u"Décision: {}".format(decision_code) |
4277dd9 to
d40b8c6
Compare
This PR implements notification handling for PM_EP_COURRIER_COMMUNE
Summary by CodeRabbit