PLIP ticket: plone/Products.CMFPlone#1775
Review by: Alessandro Pisa (alessandro.pisa@gmail.com)
Date: August 1, 2020
The PLIP was reviewed using:
- Python 3.8.2 Ubuntu 20.04 64-bit
- Chrome Version 84.0.4147.105 (64-bit) Kubuntu 20.04 64-bit
The plip buildout jobs are good:
- https://jenkins.plone.org/view/PLIPs/job/plip-1775-quickinstaller-3.6/
- https://jenkins.plone.org/view/PLIPs/job/plip-1775-quickinstaller-3.7/
- https://jenkins.plone.org/view/PLIPs/job/plip-1775-quickinstaller-3.8/
The builds are quite old, it might be advisable rebasing/merging master in the various PRs involved before merging. I apologize for the delay in reviewing this PLIP.
-
Set up the buildout using the PLIP's config:
python3.8 -m venv . ./bin/buildout -c plips/plip-1775-remove-qi.cfg
Works smooth.
- https://github.com/plone/Products.CMFPlone/tree/maurits/plip-1775-remove-qi looks good (mostly removal of deprecated code).
- https://github.com/plone/plone.app.upgrade/compare/maurits/plip-1775-remove-qi looks good (provides an upgrade step to remove the deprecated tool and adds BBB code). There is some commented code that might be better to remove, but this is a minor thing.
- https://github.com/plone/plone.app.testing/compare/maurits/plip-1775-remove-qi looks good (mostly removal of deprecated code and updates the documentation).
- https://github.com/plone/plone.app.robotframework/compare/maurits/plip-1775-remove-qi (removes deprecated code)
The PRs are still missing.
I created a fresh Plone site and installed and unistalled an add-on. I then migrated a Plone5.2 Data.fs and migrated it to Plone 6. Installing and unistalling add-ons works fine.
Most of the changes deal with removing code, so not much to review. Some of the code in plone.app.upgrade was just commented out. It might be better to just remove it, unless there is a reason for that (the commented code happens to be in BBB modules).
Test coverage is given.
Grepping for "quickinstaller" in all the packages shows that there are still packages with obsolete references to the removed tool (e.g. plone.dexterity and plone.restapi). It might be a good idea to clean-up at some point.
Products.CMFPlone and plone.app.upgrade towncrier entries report breaking changes. plone.app.testing and plone.app.robotframework towncrier entries report new features.
This seems correct.
Most of the documentation about the new installer was already provided in the PLIP plone/Products.CMFPlone#1340. The remaining corrections related to the fact the tool is removed are correctly added in the reviewd branches.
I am asking the framework team to declare this PLIP ready to be merged.
plone.restapi
still mentionsquickinstaller
because its code is still compatible with Plone 4.3, so probably unavoidable.plone.app.dexterity
uses the quick installer in an upgrade step (for the intids utility) and in a test for the same upgrade step. The step is for upgrading to 2.0. Plone 4.3.0 already uses version 2.0.7. So in Plone 6 this code will normally never get run.In various packages we could probably remove upgrade steps, just like in
plone.app.upgrade
.