- 🇳🇱Netherlands Lendude Amsterdam
This came up as a bug smash daily triage target.
Some observations:
- The validation is now happening at the form level, there are other ways to create menu links (custom code, migrations) but we are not protecting against that
- The upgrade path is only fixing the menu items at the time of running the update, nothing prevents adding more invalid links. Wouldn't an entity level constraint be better at protecting us here?
- None of this needs to happen is there are not multiple langagues, but I don't see anything checking for that right?
- The test coverage seems very slim for the proposed changes.
- 🇬🇧United Kingdom james.williams
Just re-rolling to apply to 9.5.x for now. But yes, @Lendude, those look like pretty valid points to address. Thanks for taking the time to review!
- 🇬🇧United Kingdom james.williams
Re-rolled for 10.3. (I don't expect this to get into core any more; it's just most useful for sites needing to upgrade that have been using the previous patches here.)