- Issue created by @narendraR
- Status changed to Needs review
7 months ago 12:54pm 18 April 2024 - Status changed to Needs work
7 months ago 1:37pm 18 April 2024 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Update path from the start — well done!
But a review revealed some of the validation logic added here is incorrect. And sadly, that review unveiled that
needs to be added to the growing list at 🐛 book.settings, contact.settings, filter.settings, search.settings all violate the basic rule of simple config: they cannot have dependencies Active 😬
- Status changed to Needs review
7 months ago 12:39pm 24 April 2024 - Status changed to Needs work
7 months ago 1:39pm 24 April 2024 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
7 months ago 2:36pm 24 April 2024 - Status changed to Needs work
7 months ago 3:06pm 24 April 2024 - Status changed to Needs review
7 months ago 7:47am 29 April 2024 - Status changed to Needs work
7 months ago 9:58am 29 April 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
We're almost there, but … I spotted several problematic things that suggest there's ecosystem disruption in this MR. If we're lucky, then most of my feedback can be addressed by adding comments and deleting unnecessary changes 🤓🤞
- Status changed to Needs review
7 months ago 2:15pm 29 April 2024 - Status changed to RTBC
7 months ago 2:27pm 29 April 2024 - Status changed to Needs work
7 months ago 2:40pm 29 April 2024 - Status changed to RTBC
7 months ago 2:54pm 29 April 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@catch: I see the pattern, but in this case we're not dealing with config entities, but simple config:
core.menu.static_menu_link_overrides: type: config_object
So AFAICT your concern just doesn't apply here? 😄
- 🇬🇧United Kingdom catch
Errr good point.
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!
- Status changed to Fixed
7 months ago 2:59pm 29 April 2024 - Status changed to Needs work
7 months ago 3:05pm 29 April 2024 - 🇬🇧United Kingdom catch
No wait it does... committed then reverted again.
See the changes in standard and umami shipped config. I think it needs an event listener for the config save event instead of a hook_ENTITY_TYPE_presave(). Otherwise how do install profiles/distributions know that their config needs to be updated?
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Ahhh, you're right — it's not a
hook_ENTITY_TYPE_presave()
we need, but a generic config event save listener indeed 🙈My bad, sorry! 🫣
- 🇮🇳India narendraR Jaipur, India
I am not sure, what should be written on config save:
$config_name = $event->getConfig()->getName(); if ($config_name === 'core.menu.static_menu_link_overrides') { // What needs to be done here? }
- 🇬🇧United Kingdom catch
@narendraR we'd move the logic from
config_post_update_set_menu_parent_value_to_null
to change the values when it detects they're wrong, then the post update would just load and save the config. - 🇮🇳India omkar.podey
omkar.podey → made their first commit to this issue’s fork.
- Status changed to Needs review
6 months ago 8:47am 8 May 2024 - Status changed to Needs work
6 months ago 8:55am 23 May 2024 - 🇮🇳India kunal.sachdev
Looks good, just some minor docs and test changes required.
- Status changed to Needs review
6 months ago 8:06am 27 May 2024 - Status changed to Needs work
6 months ago 10:46am 28 May 2024 - Status changed to Needs review
6 months ago 10:42am 29 May 2024 - Status changed to RTBC
6 months ago 7:14am 30 May 2024 - Status changed to Needs work
6 months ago 9:16am 30 May 2024 - Status changed to Needs review
5 months ago 4:08am 6 June 2024 - 🇺🇸United States smustgrave
My only question is the wording of the deprecation "and will not be allowed in " I didn't anything example of that in core but can't think of what should replace it. Maybe "Will be required in.." Will leave in review for other thoughts.
- Status changed to RTBC
5 months ago 6:10pm 26 June 2024 - 🇺🇸United States smustgrave
So don't want my one question to hold this one up.
- Status changed to Needs work
5 months ago 9:59am 28 June 2024 - Status changed to Needs review
5 months ago 7:54am 1 July 2024 - Status changed to Needs work
5 months ago 5:39am 3 July 2024 - 🇮🇳India yash.rode pune
Feedback from #3441434-40: Add validation constraints to core.menu.schema.yml → are addressed, only a small nit, after that it can be self-RTBCed
- 🇮🇳India narendraR Jaipur, India
Deprecation should point to CR and not issue link.
- Status changed to Needs review
5 months ago 11:35am 3 July 2024 - Status changed to Needs work
4 months ago 8:45am 4 July 2024 - 🇮🇳India yash.rode pune
The change record looks good, except the status needs to be published before used in a deprecation.
- Status changed to Needs review
4 months ago 8:55am 4 July 2024 - Status changed to RTBC
4 months ago 9:16am 4 July 2024 - Status changed to Needs work
4 months ago 9:22am 4 July 2024 - 🇮🇳India narendraR Jaipur, India
CR should not be in published state, it will be published once issue is fixed
- Status changed to RTBC
4 months ago 9:26am 4 July 2024 - 🇮🇳India yash.rode pune
My bad #46 📌 Add validation constraints to core.menu.schema.yml Needs work , changed the CR status
- Status changed to Needs work
4 months ago 9:57am 4 July 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
I think we need to allow empty strings for parent as this should not be changing APIs.
- 🇮🇳India kunal.sachdev
I tried to use
AtLeastOneOf
constraint here but I faced two problems here :-AtLeastOf
constraint requires an array of constraint objects and we were getting constraint arrays here. So what I did was implemented a plugin class forAtLeastOneOf
, and converted the constraint arrays into constraint objects.RecursiveContextualValidator
prevents us from using custom groups. But we want to useAtLeastOneOf
constraint there and I think it's validator requires every constraint to have a group. So for that I created this follow-up 📌 Remove the restriction from RecursiveContextualValidator that prevents using custom groups. Needs review .