Template Tool: Ignore totally the update of Business Templates that are inside keep_bt5_id_set
-
Maintainer
@gabriel Why did you introduced this change? Such change means that at some point a bt5 that is in the keep_bt5_id_set will move to being a dependency of a required bt5, it will not be updated on current systems or installed on new systems.
-
Developer
@cedric.leninivin This was introduced by upgrader and is used when you want to upgrade your instance but some bt5 should be ignored, for example, project_data or project_security. So, if you are using keep_bt5_id_set, you don't want to touch the bt5.
Sorry, I did not understand the part of "keep_bt5_id_set will move to being a dependency of a required bt5".
-
Maintainer
I had the problem using an upgrader on a new system. The problematic bt5,
erp5_code_mirror
, was listed in mykeep_bt5_id_set
but is now a dependency oferp5_officejs
(27a96d0b). As result of using the upgrader in such situation, installation failed becauseerp5_code_mirror
was not installed. For the implementation of "keep_bt5_id_set" either the name of the variable is poorly choosen and should be "keep_in_current_state_bt5_id_set" or implementation should be changed to behave as "Do not remove feature" which the name imply. -
Developer
Probably you need a configurator instead of an upgrader. Upgrader is used to
upgrade
an instance, not setup/deploy.If you have
erp5_code_mirror
inkeep_bt5_id_set
, you are saying that you don't want to touch it, installed or not. I have to agree thatkeep_bt5_id_set
is too generic, maybeignore_bt5_id_set
will make more sense.But, I disagree that
erp5_code_mirror
should be installed if you set in the list.For me, you just need fix your upgrader adding an pre-upgrade to install
erp5_code_mirror
if not installed. With this, you can run upgrader without problem even witherp5_code_mirror
inkeep_bt5_id_set
. -
Developer
And of course, you can use upgrader on a new system but you need declare carefully what you want to do.
-
Maintainer
Well, it should be considered than running a upgrader on a new system is the same as running one an already existing system. The configurator is introduced after that step.
But, I disagree that erp5_code_mirror should be installed if you set in the list.
What is your use case?