- Issue created by @phenaproxima
- Status changed to Needs review
3 months ago 10:13am 6 March 2024 - π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
Sadly once again, just like
book.settings
(see #3422862-3: Add validation constraints to book.settings β )filter.settings
(see π Add validation constraints to filter.settings Fixed and #1932544: Remove all traces of fallback format concept from the (admin) UI β )contact.settings
(see #3422872-4: Add validation constraints to contact.settings β )
this simple config violates the basic rule of simple config: that it cannot depend on other config entities. π¬ Fixing that is out of scope here.
- π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
Created π book.settings, contact.settings, filter.settings, search.settings all violate the basic rule of simple config: they cannot have dependencies Active for #4. Pointing to that in the updated
\Drupal\Core\Config\Schema\SchemaCheckTrait::$ignoredPropertyPaths
. - π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
Now it should be green π€
- πΊπΈUnited States smustgrave
Should a CR be written for the new config type "weight" or is there a centralized location developers can refer to? Know as I'm trying to validate my contrib modules been having difficult time finding the new stuff.
- π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
Yes, there will be a CR. But that doesn't mean this is not ready for review! That should just block RTBC.
Know as I'm trying to validate my contrib modules been having difficult time finding the new stuff.
This is a problem for every single scenario where developers are supposed to find which plugins are available for them to use π Best example: the migration systemβ¦
- πΊπΈUnited States smustgrave
Wonder if config inspector could list out all the constraints and types available?
- π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
#9: yep, I was thinking the same thing π But on top of that, I think we need something like https://www.drupal.org/files/ConfigSchemaCheatSheet2.0.pdf β or https://www.drupal.org/files/d8_render_pipeline.pdf β but for config schema types. Perhaps β¦ Config Schema Cheat Sheet 3.0? π€π
- πΊπΈUnited States smustgrave
I used that exact cheat sheet a year ago but so much has been added definitely could use a newer version.
- π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
It's actually still accurate, because it doesn't attempt to list all of the available types β it only explains how config schema works and the patterns available to use.
- πΊπΈUnited States phenaproxima Massachusetts
I have a couple of questions but otherwise this looks pretty straightforward to me.
- π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
π Add config validation for weights (blocks, filters, etc. all use weights) Fixed should land first. That already contains the change record for the new
type: weight
. And it'll make this MR much simpler. - πΊπΈUnited States smustgrave
- Status changed to Needs work
3 months ago 10:07pm 7 March 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.
- Assigned to Wim Leers
- π§πͺBelgium Wim Leers Ghent π§πͺπͺπΊ
Indeed, this is now unblocked, and β¦ I like @phenaproxima's pragmatic proposal. Will implement that. It's especially valuable for cases like this, where there's only ever one such config YAML to inspect/understand β for config entities it makes more sense to spend more time optimizing the config schema for clarity.
Will do that in the morning!
- Issue was unassigned.
- Status changed to Needs review
3 months ago 8:34am 8 March 2024 - Status changed to RTBC
3 months ago 3:04pm 8 March 2024 - πΊπΈUnited States phenaproxima Massachusetts
No objections here. I, too, appreciate how the default search page will be validated if it's set, and ignored if it's not.
- π¬π§United Kingdom longwave UK
Committed and pushed c9d305c508 to 11.x and b3b5d6abff to 10.3.x. Thanks!
- Status changed to Fixed
3 months ago 12:09pm 13 March 2024 -
longwave β
committed b3b5d6ab on 10.3.x
Issue #3425875 by Wim Leers, phenaproxima, smustgrave: Add validation...
-
longwave β
committed b3b5d6ab on 10.3.x
-
longwave β
committed c9d305c5 on 11.x
Issue #3425875 by Wim Leers, phenaproxima, smustgrave: Add validation...
-
longwave β
committed c9d305c5 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.