drush icon indicating copy to clipboard operation
drush copied to clipboard

Add config:validate command

Open DieterHolvoet opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. Validating a Drupal config against its schema.

Describe the solution you'd like The pretty much abandoned Drupal Console project has a config:validate command we could copy.

Describe alternatives you've considered /

Additional context The code for the Drupal Console command can be found here.

DieterHolvoet avatar Sep 16 '22 06:09 DieterHolvoet

@weitzman what's your opinion on this one? Seems useful to me, and the implementation very simple because we can leverage a lot of Drupal core code.

DieterHolvoet avatar Sep 16 '22 06:09 DieterHolvoet

I don't recall anyone ever asking for this. I'd like for a couple people to say "I have needed this" before we consider adding a new command.

weitzman avatar Sep 16 '22 12:09 weitzman

I just found this command already exists in the config_inspector module: https://git.drupalcode.org/project/config_inspector/-/blob/2.0.x/src/Commands/InspectorCommands.php

DieterHolvoet avatar Sep 16 '22 13:09 DieterHolvoet

Do you see this being used by module authors or site owners or both?

weitzman avatar Mar 08 '23 14:03 weitzman

I'd say module authors, site owners should rarely edit config immediately without some kind of UI. If there are issues with config schema, most of the time it will be the job of the module author to fix it.

DieterHolvoet avatar Mar 08 '23 14:03 DieterHolvoet

OK, lets leave this to config_inspector.

weitzman avatar Mar 23 '23 03:03 weitzman