Problem/Motivation
When installing "Lupus Decoupled Menu" module it triggers a config rewrite which replaces the "Rest Menu Items" configs.
The problem is that rest_menu_items 3.0.4 implemented a new config to only expose "allowed menus", which is overridden now by Lupus Decoupled Menu rewriting, therefore no menu is allowed to be exposed by default.
Steps to reproduce
- Update rest_menu_items to 3.0.4 then install "Lupus Decoupled Menu" (this only happens on first install).
Proposed resolution
- Either remove the config_rewrite "https://git.drupalcode.org/project/lupus_decoupled/-/blob/1.x/modules/lu..." if it's not needed as it was implemented to fix this issue https://www.drupal.org/project/lupus_decoupled/issues/3340799
- Or enable all the menus with code in lupus_decoupled_menu_install
I've tested removing the config/rewrite/rest_menu_items.config.yml and everything looked working fine, so I would suggest that solution if there are no objections from the main project maintainers.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | lupus-decoupled-menu-3488399-3.patch | 1.16 KB | benellefimostfa |
| #2 | lupus-decoupled-menu-3488399-2.patch | 620 bytes | benellefimostfa |
| REST-menu-items-Drush-Site-Install-11-19-2024_02_27_PM.png | 107.9 KB | benellefimostfa |
Issue fork lupus_decoupled-3488399
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
benellefimostfa commentedAttached a tested working patch, which removes the config_rewrite from the "Lupus Decoupled Menu" module:
Comment #3
benellefimostfa commentedComment #4
benellefimostfa commentedRemoved config_rewrite dependency from .info as well.
Comment #5
roderikDisregarding the fact that we need to have a MR instead of a patch, here:
We looked at this together and I agree that there seems to be no need for config_rewrite to be used (anymore) by this module, and it's just in the way (because it is rewriting new settings that the rest_menu_items has added, to NULL):
Comment #7
useernamee commented@roderik here's my take on this:
I guess we could also slightly change the config_rewrite to replace only the output_values.
But since output_values are the same in the
rest_menu_items/config/installand in thelupus_decoupled_menu/config/rewriteI'm not sure why it is even needed. All it does is that it removesfrom the rest_menu_items.config which doesn't look desirable.
That being said. If there's no need to change the values of above config options we don't even need the config_rewrite module in lupus_decoupled at all.
Comment #8
roderik@useernamee we discussed this elsewhere but I can't find it. Summarizing just for reference:
Current status of this ticket:
I think we all agree this is the way forward. However, our internal integration tests indicate that somehow,
It would be good to look into the reasons for that, so we're sure to know all implications. This ticket is blocked on that - which may take a little while.
(And also the MR comment.)
Comment #9
fagoThis is fixed via #3534157: Error when installing: Tried to rewrite config rest_menu_items.config now!