Skip to content

Urb 3568 Add dossier abandonne event #9

Open
WBoudabous wants to merge 3 commits into
mainfrom
URB-3568_add_dossier_abandonne_event_for_PE_and_PU
Open

Urb 3568 Add dossier abandonne event #9
WBoudabous wants to merge 3 commits into
mainfrom
URB-3568_add_dossier_abandonne_event_for_PE_and_PU

Conversation

@WBoudabous

@WBoudabous WBoudabous commented Jun 25, 2026

Copy link
Copy Markdown

This PR adds the configuration for the dossier abandonné event for CODT Unique Licence, envClassOne, and envClassTwo.
It is related to IMIO/Products.urban#587

Summary by CodeRabbit

  • New Features
    • Added a new “dossier abandonne” event option for the relevant urban workflows.
    • Introduced support for this event across multiple environment profiles, including updated ordering and configuration.
    • Bumped the standard profile version so the new setup is available through the next upgrade.

@WBoudabous WBoudabous changed the title Urb 3568 add dossier abandonne event for pe and pu Urb 3568 add dossier abandonne event Jun 25, 2026
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (2)
  • src/urban/events/profiles/config/standard/codt_uniquelicence/codt_uniquelicence.json
  • src/urban/events/profiles/config/standard/envclasstwo/envclasstwo.json
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 04c84b5e-5fd6-4b58-a222-6513909a5ea3

📥 Commits

Reviewing files that changed from the base of the PR and between f93ecd3 and 034395b.

📒 Files selected for processing (2)
  • src/urban/events/profiles/config/standard/codt_uniquelicence/codt_uniquelicence.json
  • src/urban/events/profiles/config/standard/envclasstwo/envclasstwo.json

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR adds a dossier-abandonne import path for the urban.events default profile, registers a 1005→1006 upgrade step, updates related migration logic, and adds the corresponding profile content, ordering manifests, and release note entry.

Changes

Dossier abandonne import

Layer / File(s) Summary
Upgrade wiring
src/urban/events/profiles/default/metadata.xml, src/urban/events/configure.zcml, src/urban/events/migrations.py
The default profile version advances to 1006, the upgrade step is registered, and the migration module updates TALCondition matching while adding the dossier-abandonne importer.
Profile payloads
news/URB-3568.feature, src/urban/events/profiles/config/standard/codt_uniquelicence/codt_uniquelicence.json, src/urban/events/profiles/config/standard/envclassone/envclassone.json
The codt_uniquelicence and envclassone profiles add dossier-abandonne event definitions, and the news entry records the feature text.
Ordering manifests
src/urban/events/profiles/config/standard/codt_uniquelicence/codt_uniquelicence_ordering.json, src/urban/events/profiles/config/standard/envclassone/envclassone_ordering.json, src/urban/events/profiles/config/standard/envclasstwo/envclasstwo_ordering.json
The codt_uniquelicence, envclassone, and envclasstwo ordering manifests are populated with ordered path and UUID entries.

Sequence Diagram(s)

sequenceDiagram
  participant UpgradeStep as urban.events:default
  participant Migration as install_dossier_abandonne_event
  participant Configs as utils.get_configs
  participant Importer as utils.import_all_config
  UpgradeStep->>Migration: run upgrade step 1005 to 1006
  Migration->>Configs: check "liege"
  alt "liege" is absent
    Migration->>Importer: import codt_uniquelicence, envclassone, envclasstwo with ExistingContent.UPDATE
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Suggested reviewers

  • mpeeters

Poem

🐰 I hopped through version dawn today,
and nudged the dossier on its way.
New paths lined up in tidy rows,
while upgrade bells went softly: “go!”
1006 sparkled in my paws ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% 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.
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.
Title check ✅ Passed The title clearly matches the main change: adding the dossier abandonne event configuration.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch URB-3568_add_dossier_abandonne_event_for_PE_and_PU

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

@WBoudabous WBoudabous changed the title Urb 3568 add dossier abandonne event Urb 3568 Add dossier abandonne event Jun 25, 2026
@WBoudabous WBoudabous requested a review from mpeeters June 25, 2026 12:40

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/urban/events/migrations.py (1)

100-100: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Log message understates scope. The function imports codt_uniquelicence, envclassone, and envclasstwo, but the start log only mentions codt_uniquelicence. Align the message for accurate upgrade logs.

📝 Suggested wording
-    logger.info("starting : Import dossier abandonne event for codt_uniquelicence")
+    logger.info(
+        "starting : Import dossier abandonne event for codt_uniquelicence, envclassone and envclasstwo"
+    )
🤖 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/urban/events/migrations.py` at line 100, The startup log in the migration
import flow is too narrow and only mentions codt_uniquelicence, even though the
same function also imports envclassone and envclasstwo. Update the logger.info
message in the migration function that handles these event imports so it
reflects the full scope of the import work, using the existing migration/import
symbol names to keep the message accurate and consistent for upgrade logs.
🤖 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.

Inline comments:
In `@news/URB-3568.feature`:
- Line 1: Update the release note text to use clear, properly separated wording
for the dossier abandonné event and correct the spelling/accent. Replace the
current phrasing in the note with a polished sentence that mentions CODT, unique
licence, envclassone, and envclasstwo as distinct items, and ensure “abandonné”
is accented correctly.

---

Nitpick comments:
In `@src/urban/events/migrations.py`:
- Line 100: The startup log in the migration import flow is too narrow and only
mentions codt_uniquelicence, even though the same function also imports
envclassone and envclasstwo. Update the logger.info message in the migration
function that handles these event imports so it reflects the full scope of the
import work, using the existing migration/import symbol names to keep the
message accurate and consistent for upgrade logs.
🪄 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: f5c2a7de-1d6a-4801-8f11-ecd28d890295

📥 Commits

Reviewing files that changed from the base of the PR and between 5480130 and f93ecd3.

📒 Files selected for processing (10)
  • news/URB-3568.feature
  • src/urban/events/configure.zcml
  • src/urban/events/migrations.py
  • src/urban/events/profiles/config/standard/codt_uniquelicence/codt_uniquelicence.json
  • src/urban/events/profiles/config/standard/codt_uniquelicence/codt_uniquelicence_ordering.json
  • src/urban/events/profiles/config/standard/envclassone/envclassone.json
  • src/urban/events/profiles/config/standard/envclassone/envclassone_ordering.json
  • src/urban/events/profiles/config/standard/envclasstwo/envclasstwo.json
  • src/urban/events/profiles/config/standard/envclasstwo/envclasstwo_ordering.json
  • src/urban/events/profiles/default/metadata.xml

Comment thread news/URB-3568.feature
@@ -0,0 +1,2 @@
Add dossier abandonne event for codt uniquelicence envclassone and envclasstwo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Polish release note wording for clarity.

Current sentence has formatting/wording issues (uniquelicence envclassone, missing separators, missing accent in “abandonné”).

Suggested text
-Add dossier abandonne event for codt uniquelicence  envclassone and envclasstwo
+Add dossier abandonné event for codt_uniquelicence, envclassone, and envclasstwo.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Add dossier abandonne event for codt uniquelicence envclassone and envclasstwo
Add dossier abandonné event for codt_uniquelicence, envclassone, and envclasstwo.
🤖 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 `@news/URB-3568.feature` at line 1, Update the release note text to use clear,
properly separated wording for the dossier abandonné event and correct the
spelling/accent. Replace the current phrasing in the note with a polished
sentence that mentions CODT, unique licence, envclassone, and envclasstwo as
distinct items, and ensure “abandonné” is accented correctly.

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.

1 participant