Skip to content

Conversation

@WBoudabous
Copy link
Contributor

Cette PR met à jour les valeurs des termes du vocabulaire form composition et ajoute une étape de mise à jour (upgrade step) pour appliquer automatiquement les changements.

@WBoudabous WBoudabous requested a review from mpeeters October 24, 2025 12:39
Copy link
Member

Choose a reason for hiding this comment

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

This upgrade step should be in update_280.py

logger = logging.getLogger("urban: Update form composition vocabulary value terms")
logger.info("starting upgrade steps")
# Load data from JSON file using eexport_urban_config
with open("src/Products.urban/src/Products/urban/profiles/demo/form_composition_data.json", "r") as f:
Copy link
Member

Choose a reason for hiding this comment

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

You should use a relative path based on the current Python file path. Also, @jimbiscuit developed a function that allows importing content exported by collective.exportimport. Please use that function instead.

Copy link
Member

Choose a reason for hiding this comment

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

This should not be on demo profiles, as this will be deployed to production instances as well.

@mpeeters mpeeters changed the title Urb 3392 update form composition vocabulary value terms URB-3392 update form composition vocabulary value terms Oct 29, 2025
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.

3 participants