Skip to content

Stop registering upgrade steps in subtemplate settings#5

Merged
MrTango merged 2 commits into
mainfrom
drop-upgrade-step-registration
May 21, 2026
Merged

Stop registering upgrade steps in subtemplate settings#5
MrTango merged 2 commits into
mainfrom
drop-upgrade-step-registration

Conversation

@MrTango
Copy link
Copy Markdown
Contributor

@MrTango MrTango commented May 21, 2026

Summary

  • Remove upgrade-step registration in addon settings from the upgrade_step subtemplate's post_copy hook
  • Drop the corresponding line from upgrade_step/README.md
  • Remove the tests that asserted registration in bobtemplate.cfg (legacy) and pyproject.toml settings

Why

Upgrade steps no longer need to be tracked in the addon's subtemplate settings. The hook still bumps the profile version and wires up the per-step ZCML include.

Test plan

  • tests/test_upgrade_step.py passes
  • tests/test_legacy_compat.py passes

MrTango added 2 commits May 21, 2026 15:35
An upgrade step's identity is its version number in metadata.xml, not its
title. Recording the free-text title under
[tool.plone.backend_addon.settings.subtemplates] was unused by any template
and its value-based dedup was wrong for non-unique titles. Remove the
registration call and the tests asserting it.
@MrTango MrTango merged commit 12bcbdb into main May 21, 2026
5 checks passed
@MrTango MrTango deleted the drop-upgrade-step-registration branch May 21, 2026 22:50
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