-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support upgrade steps in subdirectories #217
Comments
BTW with this patch ale-rt@5e480a6 the directory scanner can find the upgrade steps in the subdirs, but before adding a PR I would like to know what do you think about that. |
@ale-rt No objections for supporting upgrade steps in subdirectories. The approach by patching the directory scanner to search recursively for upgrades seems simple and ok to me. Supporting multiple directories in ZCML should be easy as well. Basically we just need to add So it's basically a question wether to declare directories explicitly or include subdirectories implicitly. Both approaches seem ok to me and I do not really prefer either one. |
Almost a year later I found some time to contribute a patch, see #226. Speaking about tests, I tried to play with |
I would like to organize the upgrade steps in a way similar to what https://github.com/plone/plone.app.upgrade/tree/master/plone/app/upgrade/ does, i.e. all the upgrade steps for version
X.Y.Z
will be stored in the foldervX
.If I try to configure multiple folders for the same profile, something like:
The main advantage is that I can easily remove the old upgrade steps when wanted.
Let's say I want to support the upgrades for two versions, when I switch to version 3 I can simply remove the
v1
folder.The problem is that with the configuration above I get a
ConfigurationConflictError
:If I change the zcml like:
the directory scanner will not look inside the
v1
andv2
folders.Do you guys have any idea on how to achieve my goal?
The text was updated successfully, but these errors were encountered: