- Issue created by @Matroskeen
Igor Mashevskyi → made their first commit to this issue’s fork.
- @igor-mashevskyi opened merge request.
- Status changed to Needs work
over 1 year ago 11:23am 1 May 2023 - 🇺🇦Ukraine HitchShock Ukraine
In the context of 📌 Use Rabbit Hole values from config field instead of base fields Fixed we changed the default value of the allow_override option.
Therefore, we have to consider the following case:
If the entity type used the default settings, then we need to create a personal configuration and set allow_override: 1 - last update
over 1 year ago 21 pass - last update
over 1 year ago 22 pass - last update
over 1 year ago 22 pass - Status changed to Needs review
over 1 year ago 1:02pm 17 June 2023 - 🇺🇦Ukraine Matroskeen 🇺🇦 Ukraine, Lutsk
@HitchShock, thanks for the heads-up! I checked this scenario and it seems we're safe here:
1) The "Rabbit Hole" field and field values are copied properly in update hooks;
2) After the upgrade, it still works because existing installations will haveallow_override: 1
in default settings;Speaking of
allow_override
, I'm evaluating possible removal of this property from config object. I think it can represent the presence of the field instead of the config value. If field exists, then override is allowed. More details here: 📌 Remove "allow_override" property from rabbit_hole.behavior_settings.* configs Fixed .__
I put some changes in the MR including test for the update.
- last update
over 1 year ago 22 pass - Status changed to RTBC
over 1 year ago 6:50pm 17 June 2023 - 🇺🇦Ukraine HitchShock Ukraine
Hi @matroskeen
Tested the solution:- Installed an empty project
- Created two CTs: A and B
- Installed 8.x-1.0-beta11 version of the module
- Enabled Rabbit Hole nodes
- Kept a default settings for A
- B - Disabled allow_override option and set behavior "Page not found"
- Created two CTs: C and D
- C - Enabled allow_override option and set behavior "Access denied"
- D - Disabled allow_override option and set behavior "Page redirect"
- Made several nodes for A and C CTs with different own RH settings
- Switched to the MR branch
- Ran `druah updb -y`
- Rechecked RH settings for all CTs that I created - settings are still the same which means that hook_update works as expected
- last update
over 1 year ago 20 pass, 1 fail - last update
over 1 year ago 22 pass - last update
over 1 year ago 22 pass -
Matroskeen →
committed b9a493d5 on 2.0.x authored by
Igor Mashevskyi →
Issue #3336958 by Matroskeen, Igor Mashevskyi: Automatically copy values...
-
Matroskeen →
committed b9a493d5 on 2.0.x authored by
Igor Mashevskyi →
- Status changed to Fixed
over 1 year ago 12:22pm 19 June 2023 - 🇺🇦Ukraine Matroskeen 🇺🇦 Ukraine, Lutsk
The MR is merged with some minor changes added in the latest commits. 🥳
Kudos to @HitchShock for the review and to @Igor Mashevskyi for the initial development.
Automatically closed - issue fixed for 2 weeks with no activity.