-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
plone.app.upgrade: remove old upgrade code? #1778
Comments
If we would always only support migration from the latest minor version, we could really get rid of a whole bunch of dependencies. Archetypes for example. |
Yes, a big plus one to only support the migration path from the last major version series (current would be 4.0 final to 5.1a2). |
Imo we could even support only minor versions like 4.3 to 5.0 or 5.0 to 5.1. But supporting major versions would be an improvement too. |
We already had this discussion some time ago. We used to branch plone.app.upgrade before we unified it, because backporting changes became too complex to maintain (cc @davisagli). If I recall correctly we decided that we keep a unified plone.app.upgrade but will drop the 2.5 and all 3.x migrations (except 3.3.x) after releasing Plone 5. |
@tisto IIRC thats roughly what we agreed on, so kicking out 2.5 and 3.x is fine. I doubt anybody has an advantage if we keep the latest 3.3.x, I would start with 4 final to keep things simple. Also it is easy to communicate to always upgrade from one major to the other. Or did I miss some case where one might want to directly upgrade a latest 3.3.x to a latest 5.x? |
I would not recommend anyone to do so :) |
we could also use extra requires and zcml conditionals. That might help in restricting the upgrades to the ones you need for your project, if you want to. On Sat, Sep 24, 2016 at 10:35 AM -0500, "Jens W. Klein" [email protected] wrote: @tisto IIRC thats roughly what we agreed on, so kicking out 2.5 and 3.x is fine. I doubt anybody has an advantage if we keep the latest 3.3.x, I would start with 4 final to keep things simple. Also it is easy to communicate to always upgrade from one major to the other. Or did I miss some case where one might want to directly upgrade a latest 3.3.x to a latest 5.x? — |
Branch: refs/heads/master Date: 2016-10-22T14:35:10-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@825f170 Remove (really) old upgrades Fixes plone/Products.CMFPlone#1778 Files changed: M CHANGES.rst M plone/app/upgrade/__init__.py M plone/app/upgrade/configure.zcml M plone/app/upgrade/v43/final.py D plone/app/upgrade/v25/__init__.py D plone/app/upgrade/v25/configure.zcml D plone/app/upgrade/v25/data/test-base.zexp D plone/app/upgrade/v25/profiles.zcml D plone/app/upgrade/v25/profiles/final_two51/actions.xml D plone/app/upgrade/v25/profiles/final_two51/cssregistry.xml D plone/app/upgrade/v25/tests.py D plone/app/upgrade/v30/__init__.py D plone/app/upgrade/v30/alphas.py D plone/app/upgrade/v30/betas.py D plone/app/upgrade/v30/configure.zcml D plone/app/upgrade/v30/data/test-base.zexp D plone/app/upgrade/v30/data/test-full.zexp D plone/app/upgrade/v30/final_three0x.py D plone/app/upgrade/v30/profiles.zcml D plone/app/upgrade/v30/profiles/alpha1_alpha2/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/cssregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/jsregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/properties.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/actions.xml D plone/app/upgrade/v30/profiles/beta1_beta2/catalog.xml D plone/app/upgrade/v30/profiles/beta1_beta2/componentregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/cssregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/export_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/import_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/portal_atct.xml D plone/app/upgrade/v30/profiles/beta1_beta2/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/rolemap.xml D plone/app/upgrade/v30/profiles/beta1_beta2/workflows.xml D plone/app/upgrade/v30/profiles/beta2_beta3/actions.xml D plone/app/upgrade/v30/profiles/beta2_beta3/componentregistry.xml D plone/app/upgrade/v30/profiles/beta2_beta3/export_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/import_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/viewlets.xml D plone/app/upgrade/v30/profiles/beta3_beta4/actions.xml D plone/app/upgrade/v30/profiles/beta3_beta4/cmfeditions_various.txt D plone/app/upgrade/v30/profiles/beta3_beta4/cssregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/jsregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/propertiestool.xml D plone/app/upgrade/v30/profiles/beta3_beta4/viewlets.xml D plone/app/upgrade/v30/profiles/final_three01/componentregistry.xml D plone/app/upgrade/v30/profiles/final_three01/rolemap.xml D plone/app/upgrade/v30/profiles/final_three01/toolset.xml D plone/app/upgrade/v30/profiles/rc2_final/actions.xml D plone/app/upgrade/v30/profiles/rc2_final/cssregistry.xml D plone/app/upgrade/v30/profiles/rc2_final/jsregistry.xml D plone/app/upgrade/v30/profiles/rc2_final_iterate/rolemap.xml D plone/app/upgrade/v30/profiles/three01_three02/controlpanel.xml D plone/app/upgrade/v30/profiles/three01_three02/jsregistry.xml D plone/app/upgrade/v30/profiles/three01_three02/rolemap.xml D plone/app/upgrade/v30/profiles/three03_three04/diff_tool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/componentregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/controlpanel.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/cssregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/propertiestool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/toolset.xml D plone/app/upgrade/v30/rcs.py D plone/app/upgrade/v30/tests.py D plone/app/upgrade/v31/__init__.py D plone/app/upgrade/v31/betas.py D plone/app/upgrade/v31/configure.zcml D plone/app/upgrade/v31/data/test-base.zexp D plone/app/upgrade/v31/data/test-full.zexp D plone/app/upgrade/v31/final_three1x.py D plone/app/upgrade/v31/profiles.zcml D plone/app/upgrade/v31/profiles/three0_beta1/actions.xml D plone/app/upgrade/v31/profiles/three0_beta1/componentregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/jsregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/metadata.xml D plone/app/upgrade/v31/profiles/three0_beta1/portlets.xml D plone/app/upgrade/v31/profiles/three13_three14/propertiestool.xml D plone/app/upgrade/v31/tests.py D plone/app/upgrade/v32/__init__.py D plone/app/upgrade/v32/betas.py D plone/app/upgrade/v32/configure.zcml D plone/app/upgrade/v32/data/test-base.zexp D plone/app/upgrade/v32/data/test-full.zexp D plone/app/upgrade/v32/profiles.zcml D plone/app/upgrade/v32/profiles/three1_beta1_iterate/actions.xml D plone/app/upgrade/v32/profiles/three2_three21/propertiestool.xml D plone/app/upgrade/v32/tests.py D plone/app/upgrade/v33/__init__.py D plone/app/upgrade/v33/configure.zcml D plone/app/upgrade/v33/data/test-base.zexp D plone/app/upgrade/v33/data/test-full.zexp D plone/app/upgrade/v33/profiles.zcml D plone/app/upgrade/v33/profiles/three2_three3/actions.xml D plone/app/upgrade/v33/profiles/three2_three3/propertiestool.xml D plone/app/upgrade/v33/profiles/three3_rc3_three3_rc4/actions.xml D plone/app/upgrade/v33/tests.py Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-22T14:35:10-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@aac74f6 Copy method from v30 Files changed: M plone/app/upgrade/v40/alphas.py M plone/app/upgrade/v40/configure.zcml Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-23T09:15:37-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@8066f51 These attributes do not exist anymore Files changed: M plone/app/upgrade/utils.py M plone/app/upgrade/v50/alphas.py M plone/app/upgrade/v50/betas.py Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-23T09:15:37-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@20011ca Cleanup setup.py Files changed: M plone/app/upgrade/__init__.py M plone/app/upgrade/configure.zcml M setup.py D plone/app/upgrade/gruf_bbb.py Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-23T14:33:34-04:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/plone.app.upgrade@f4e80d0 Merge pull request #91 from plone/gforcada-remove-old-upgrades Remove (really) old upgrades Files changed: M CHANGES.rst M plone/app/upgrade/__init__.py M plone/app/upgrade/configure.zcml M plone/app/upgrade/utils.py M plone/app/upgrade/v40/alphas.py M plone/app/upgrade/v40/configure.zcml M plone/app/upgrade/v43/final.py M plone/app/upgrade/v50/alphas.py M plone/app/upgrade/v50/betas.py M setup.py D plone/app/upgrade/gruf_bbb.py D plone/app/upgrade/v25/__init__.py D plone/app/upgrade/v25/configure.zcml D plone/app/upgrade/v25/data/test-base.zexp D plone/app/upgrade/v25/profiles.zcml D plone/app/upgrade/v25/profiles/final_two51/actions.xml D plone/app/upgrade/v25/profiles/final_two51/cssregistry.xml D plone/app/upgrade/v25/tests.py D plone/app/upgrade/v30/__init__.py D plone/app/upgrade/v30/alphas.py D plone/app/upgrade/v30/betas.py D plone/app/upgrade/v30/configure.zcml D plone/app/upgrade/v30/data/test-base.zexp D plone/app/upgrade/v30/data/test-full.zexp D plone/app/upgrade/v30/final_three0x.py D plone/app/upgrade/v30/profiles.zcml D plone/app/upgrade/v30/profiles/alpha1_alpha2/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/cssregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/jsregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/properties.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/actions.xml D plone/app/upgrade/v30/profiles/beta1_beta2/catalog.xml D plone/app/upgrade/v30/profiles/beta1_beta2/componentregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/cssregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/export_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/import_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/portal_atct.xml D plone/app/upgrade/v30/profiles/beta1_beta2/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/rolemap.xml D plone/app/upgrade/v30/profiles/beta1_beta2/workflows.xml D plone/app/upgrade/v30/profiles/beta2_beta3/actions.xml D plone/app/upgrade/v30/profiles/beta2_beta3/componentregistry.xml D plone/app/upgrade/v30/profiles/beta2_beta3/export_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/import_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/viewlets.xml D plone/app/upgrade/v30/profiles/beta3_beta4/actions.xml D plone/app/upgrade/v30/profiles/beta3_beta4/cmfeditions_various.txt D plone/app/upgrade/v30/profiles/beta3_beta4/cssregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/jsregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/propertiestool.xml D plone/app/upgrade/v30/profiles/beta3_beta4/viewlets.xml D plone/app/upgrade/v30/profiles/final_three01/componentregistry.xml D plone/app/upgrade/v30/profiles/final_three01/rolemap.xml D plone/app/upgrade/v30/profiles/final_three01/toolset.xml D plone/app/upgrade/v30/profiles/rc2_final/actions.xml D plone/app/upgrade/v30/profiles/rc2_final/cssregistry.xml D plone/app/upgrade/v30/profiles/rc2_final/jsregistry.xml D plone/app/upgrade/v30/profiles/rc2_final_iterate/rolemap.xml D plone/app/upgrade/v30/profiles/three01_three02/controlpanel.xml D plone/app/upgrade/v30/profiles/three01_three02/jsregistry.xml D plone/app/upgrade/v30/profiles/three01_three02/rolemap.xml D plone/app/upgrade/v30/profiles/three03_three04/diff_tool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/componentregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/controlpanel.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/cssregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/propertiestool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/toolset.xml D plone/app/upgrade/v30/rcs.py D plone/app/upgrade/v30/tests.py D plone/app/upgrade/v31/__init__.py D plone/app/upgrade/v31/betas.py D plone/app/upgrade/v31/configure.zcml D plone/app/upgrade/v31/data/test-base.zexp D plone/app/upgrade/v31/data/test-full.zexp D plone/app/upgrade/v31/final_three1x.py D plone/app/upgrade/v31/profiles.zcml D plone/app/upgrade/v31/profiles/three0_beta1/actions.xml D plone/app/upgrade/v31/profiles/three0_beta1/componentregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/jsregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/metadata.xml D plone/app/upgrade/v31/profiles/three0_beta1/portlets.xml D plone/app/upgrade/v31/profiles/three13_three14/propertiestool.xml D plone/app/upgrade/v31/tests.py D plone/app/upgrade/v32/__init__.py D plone/app/upgrade/v32/betas.py D plone/app/upgrade/v32/configure.zcml D plone/app/upgrade/v32/data/test-base.zexp D plone/app/upgrade/v32/data/test-full.zexp D plone/app/upgrade/v32/profiles.zcml D plone/app/upgrade/v32/profiles/three1_beta1_iterate/actions.xml D plone/app/upgrade/v32/profiles/three2_three21/propertiestool.xml D plone/app/upgrade/v32/tests.py D plone/app/upgrade/v33/__init__.py D plone/app/upgrade/v33/configure.zcml D plone/app/upgrade/v33/data/test-base.zexp D plone/app/upgrade/v33/data/test-full.zexp D plone/app/upgrade/v33/profiles.zcml D plone/app/upgrade/v33/profiles/three2_three3/actions.xml D plone/app/upgrade/v33/profiles/three2_three3/propertiestool.xml D plone/app/upgrade/v33/profiles/three3_rc3_three3_rc4/actions.xml D plone/app/upgrade/v33/tests.py
Branch: refs/heads/master Date: 2016-10-22T14:35:10-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@825f170 Remove (really) old upgrades Fixes plone/Products.CMFPlone#1778 Files changed: M CHANGES.rst M plone/app/upgrade/__init__.py M plone/app/upgrade/configure.zcml M plone/app/upgrade/v43/final.py D plone/app/upgrade/v25/__init__.py D plone/app/upgrade/v25/configure.zcml D plone/app/upgrade/v25/data/test-base.zexp D plone/app/upgrade/v25/profiles.zcml D plone/app/upgrade/v25/profiles/final_two51/actions.xml D plone/app/upgrade/v25/profiles/final_two51/cssregistry.xml D plone/app/upgrade/v25/tests.py D plone/app/upgrade/v30/__init__.py D plone/app/upgrade/v30/alphas.py D plone/app/upgrade/v30/betas.py D plone/app/upgrade/v30/configure.zcml D plone/app/upgrade/v30/data/test-base.zexp D plone/app/upgrade/v30/data/test-full.zexp D plone/app/upgrade/v30/final_three0x.py D plone/app/upgrade/v30/profiles.zcml D plone/app/upgrade/v30/profiles/alpha1_alpha2/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/cssregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/jsregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/properties.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/actions.xml D plone/app/upgrade/v30/profiles/beta1_beta2/catalog.xml D plone/app/upgrade/v30/profiles/beta1_beta2/componentregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/cssregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/export_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/import_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/portal_atct.xml D plone/app/upgrade/v30/profiles/beta1_beta2/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/rolemap.xml D plone/app/upgrade/v30/profiles/beta1_beta2/workflows.xml D plone/app/upgrade/v30/profiles/beta2_beta3/actions.xml D plone/app/upgrade/v30/profiles/beta2_beta3/componentregistry.xml D plone/app/upgrade/v30/profiles/beta2_beta3/export_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/import_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/viewlets.xml D plone/app/upgrade/v30/profiles/beta3_beta4/actions.xml D plone/app/upgrade/v30/profiles/beta3_beta4/cmfeditions_various.txt D plone/app/upgrade/v30/profiles/beta3_beta4/cssregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/jsregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/propertiestool.xml D plone/app/upgrade/v30/profiles/beta3_beta4/viewlets.xml D plone/app/upgrade/v30/profiles/final_three01/componentregistry.xml D plone/app/upgrade/v30/profiles/final_three01/rolemap.xml D plone/app/upgrade/v30/profiles/final_three01/toolset.xml D plone/app/upgrade/v30/profiles/rc2_final/actions.xml D plone/app/upgrade/v30/profiles/rc2_final/cssregistry.xml D plone/app/upgrade/v30/profiles/rc2_final/jsregistry.xml D plone/app/upgrade/v30/profiles/rc2_final_iterate/rolemap.xml D plone/app/upgrade/v30/profiles/three01_three02/controlpanel.xml D plone/app/upgrade/v30/profiles/three01_three02/jsregistry.xml D plone/app/upgrade/v30/profiles/three01_three02/rolemap.xml D plone/app/upgrade/v30/profiles/three03_three04/diff_tool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/componentregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/controlpanel.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/cssregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/propertiestool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/toolset.xml D plone/app/upgrade/v30/rcs.py D plone/app/upgrade/v30/tests.py D plone/app/upgrade/v31/__init__.py D plone/app/upgrade/v31/betas.py D plone/app/upgrade/v31/configure.zcml D plone/app/upgrade/v31/data/test-base.zexp D plone/app/upgrade/v31/data/test-full.zexp D plone/app/upgrade/v31/final_three1x.py D plone/app/upgrade/v31/profiles.zcml D plone/app/upgrade/v31/profiles/three0_beta1/actions.xml D plone/app/upgrade/v31/profiles/three0_beta1/componentregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/jsregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/metadata.xml D plone/app/upgrade/v31/profiles/three0_beta1/portlets.xml D plone/app/upgrade/v31/profiles/three13_three14/propertiestool.xml D plone/app/upgrade/v31/tests.py D plone/app/upgrade/v32/__init__.py D plone/app/upgrade/v32/betas.py D plone/app/upgrade/v32/configure.zcml D plone/app/upgrade/v32/data/test-base.zexp D plone/app/upgrade/v32/data/test-full.zexp D plone/app/upgrade/v32/profiles.zcml D plone/app/upgrade/v32/profiles/three1_beta1_iterate/actions.xml D plone/app/upgrade/v32/profiles/three2_three21/propertiestool.xml D plone/app/upgrade/v32/tests.py D plone/app/upgrade/v33/__init__.py D plone/app/upgrade/v33/configure.zcml D plone/app/upgrade/v33/data/test-base.zexp D plone/app/upgrade/v33/data/test-full.zexp D plone/app/upgrade/v33/profiles.zcml D plone/app/upgrade/v33/profiles/three2_three3/actions.xml D plone/app/upgrade/v33/profiles/three2_three3/propertiestool.xml D plone/app/upgrade/v33/profiles/three3_rc3_three3_rc4/actions.xml D plone/app/upgrade/v33/tests.py Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-22T14:35:10-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@aac74f6 Copy method from v30 Files changed: M plone/app/upgrade/v40/alphas.py M plone/app/upgrade/v40/configure.zcml Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-23T09:15:37-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@8066f51 These attributes do not exist anymore Files changed: M plone/app/upgrade/utils.py M plone/app/upgrade/v50/alphas.py M plone/app/upgrade/v50/betas.py Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-23T09:15:37-04:00 Author: Gil Forcada (gforcada) <[email protected]> Commit: plone/plone.app.upgrade@20011ca Cleanup setup.py Files changed: M plone/app/upgrade/__init__.py M plone/app/upgrade/configure.zcml M setup.py D plone/app/upgrade/gruf_bbb.py Repository: plone.app.upgrade Branch: refs/heads/master Date: 2016-10-23T14:33:34-04:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/plone.app.upgrade@f4e80d0 Merge pull request #91 from plone/gforcada-remove-old-upgrades Remove (really) old upgrades Files changed: M CHANGES.rst M plone/app/upgrade/__init__.py M plone/app/upgrade/configure.zcml M plone/app/upgrade/utils.py M plone/app/upgrade/v40/alphas.py M plone/app/upgrade/v40/configure.zcml M plone/app/upgrade/v43/final.py M plone/app/upgrade/v50/alphas.py M plone/app/upgrade/v50/betas.py M setup.py D plone/app/upgrade/gruf_bbb.py D plone/app/upgrade/v25/__init__.py D plone/app/upgrade/v25/configure.zcml D plone/app/upgrade/v25/data/test-base.zexp D plone/app/upgrade/v25/profiles.zcml D plone/app/upgrade/v25/profiles/final_two51/actions.xml D plone/app/upgrade/v25/profiles/final_two51/cssregistry.xml D plone/app/upgrade/v25/tests.py D plone/app/upgrade/v30/__init__.py D plone/app/upgrade/v30/alphas.py D plone/app/upgrade/v30/betas.py D plone/app/upgrade/v30/configure.zcml D plone/app/upgrade/v30/data/test-base.zexp D plone/app/upgrade/v30/data/test-full.zexp D plone/app/upgrade/v30/final_three0x.py D plone/app/upgrade/v30/profiles.zcml D plone/app/upgrade/v30/profiles/alpha1_alpha2/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha1_alpha2/cssregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/componentregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/controlpanel.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/jsregistry.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/properties.xml D plone/app/upgrade/v30/profiles/alpha2_beta1/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/actions.xml D plone/app/upgrade/v30/profiles/beta1_beta2/catalog.xml D plone/app/upgrade/v30/profiles/beta1_beta2/componentregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/cssregistry.xml D plone/app/upgrade/v30/profiles/beta1_beta2/export_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/import_steps.xml D plone/app/upgrade/v30/profiles/beta1_beta2/portal_atct.xml D plone/app/upgrade/v30/profiles/beta1_beta2/propertiestool.xml D plone/app/upgrade/v30/profiles/beta1_beta2/rolemap.xml D plone/app/upgrade/v30/profiles/beta1_beta2/workflows.xml D plone/app/upgrade/v30/profiles/beta2_beta3/actions.xml D plone/app/upgrade/v30/profiles/beta2_beta3/componentregistry.xml D plone/app/upgrade/v30/profiles/beta2_beta3/export_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/import_steps.xml D plone/app/upgrade/v30/profiles/beta2_beta3/viewlets.xml D plone/app/upgrade/v30/profiles/beta3_beta4/actions.xml D plone/app/upgrade/v30/profiles/beta3_beta4/cmfeditions_various.txt D plone/app/upgrade/v30/profiles/beta3_beta4/cssregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/jsregistry.xml D plone/app/upgrade/v30/profiles/beta3_beta4/propertiestool.xml D plone/app/upgrade/v30/profiles/beta3_beta4/viewlets.xml D plone/app/upgrade/v30/profiles/final_three01/componentregistry.xml D plone/app/upgrade/v30/profiles/final_three01/rolemap.xml D plone/app/upgrade/v30/profiles/final_three01/toolset.xml D plone/app/upgrade/v30/profiles/rc2_final/actions.xml D plone/app/upgrade/v30/profiles/rc2_final/cssregistry.xml D plone/app/upgrade/v30/profiles/rc2_final/jsregistry.xml D plone/app/upgrade/v30/profiles/rc2_final_iterate/rolemap.xml D plone/app/upgrade/v30/profiles/three01_three02/controlpanel.xml D plone/app/upgrade/v30/profiles/three01_three02/jsregistry.xml D plone/app/upgrade/v30/profiles/three01_three02/rolemap.xml D plone/app/upgrade/v30/profiles/three03_three04/diff_tool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/componentregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/controlpanel.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/cssregistry.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/propertiestool.xml D plone/app/upgrade/v30/profiles/two5x_alpha1/toolset.xml D plone/app/upgrade/v30/rcs.py D plone/app/upgrade/v30/tests.py D plone/app/upgrade/v31/__init__.py D plone/app/upgrade/v31/betas.py D plone/app/upgrade/v31/configure.zcml D plone/app/upgrade/v31/data/test-base.zexp D plone/app/upgrade/v31/data/test-full.zexp D plone/app/upgrade/v31/final_three1x.py D plone/app/upgrade/v31/profiles.zcml D plone/app/upgrade/v31/profiles/three0_beta1/actions.xml D plone/app/upgrade/v31/profiles/three0_beta1/componentregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/jsregistry.xml D plone/app/upgrade/v31/profiles/three0_beta1/metadata.xml D plone/app/upgrade/v31/profiles/three0_beta1/portlets.xml D plone/app/upgrade/v31/profiles/three13_three14/propertiestool.xml D plone/app/upgrade/v31/tests.py D plone/app/upgrade/v32/__init__.py D plone/app/upgrade/v32/betas.py D plone/app/upgrade/v32/configure.zcml D plone/app/upgrade/v32/data/test-base.zexp D plone/app/upgrade/v32/data/test-full.zexp D plone/app/upgrade/v32/profiles.zcml D plone/app/upgrade/v32/profiles/three1_beta1_iterate/actions.xml D plone/app/upgrade/v32/profiles/three2_three21/propertiestool.xml D plone/app/upgrade/v32/tests.py D plone/app/upgrade/v33/__init__.py D plone/app/upgrade/v33/configure.zcml D plone/app/upgrade/v33/data/test-base.zexp D plone/app/upgrade/v33/data/test-full.zexp D plone/app/upgrade/v33/profiles.zcml D plone/app/upgrade/v33/profiles/three2_three3/actions.xml D plone/app/upgrade/v33/profiles/three2_three3/propertiestool.xml D plone/app/upgrade/v33/profiles/three3_rc3_three3_rc4/actions.xml D plone/app/upgrade/v33/tests.py
Currently plone.app.upgrade has code to upgrade from Plone 2.5.0 to 5.1. That is somehow nice, but is it really needed and useful?
In the upgrade docs we say: "Always upgrade from the latest version of 4.x to the latest version of 5.x (at the time of writing 4.3.7 to 5.0.2). This will resolve many migration-specific issues." In other words: first upgrade your site from version X to 4.3.latest, and then upgrade to 5.latest.
That being the case, I think it is better to remove a part of the old upgrade code from plone.app.upgrade. Two specific issues have triggered this for me:
getToolByName(context, 'portal_quickinstaller')
you should dofrom Products.CMFPlone.utils import get_installer; get_installer(context)
. And in Plone 6.0 we will likely not ship at all with Products.CMFQuickInstallerTool. Now the danger is that old upgrade steps that useportal_quickinstaller
will get updated to useget_installer
. When upgrading from Plone 2.5 directly to Plone 5.1, theget_installer
function will be available, but it's anyone's guess whether a random upgrade step from say 2.5.2 to 2.5.3 that uses the quick installer will also do the expected thing when using this newget_installer
thingie.secureSend
method should no longer be used. plone.app.upgrade has a function inv40/alphas.py
to replace the SecureMailHost object with a standard MailHost object. For this upgrade to work, theProducts.SecureMailHost
package must be available. Soplone.app.upgrade
has this in itssetup.py
. So Plone 5.1 still ships with the SecureMailHost package, because plone.app.upgrade pulls it in.Not counting an autopep8 change in the tests a few months ago, here are some numbers on when the latest change was in plone.app.upgrade code:
So there are hardly any changes in the old code.
So here is an idea. plone.app.upgrade is currently at version 1.3.27.
Is this a sane idea?
@esteele: Any comments?
The text was updated successfully, but these errors were encountered: