Problem/Motivation
If some config has no schema and you use the options --only-error --detail on the drush command you get errors like:
---------------------------------------------------------------------------------------------------------------------------------- ---------------- ------------- ----------
Key Status Validatable Data
---------------------------------------------------------------------------------------------------------------------------------- ---------------- ------------- ----------
anchor_navigation.settings No schema
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort._core No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort._core.default_config_hash No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.backend No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.backend_configuration No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.backend_configuration.lease_time No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.dependencies No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.dependencies.enforced No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.dependencies.enforced.module No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.dependencies.enforced.module.0 No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.id No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.label No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.langcode No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.locked No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.processing_time No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.processor No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.status No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.threshold No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.threshold.limit No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.threshold.state No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.threshold.type No schema NOT ✅❓
anchor_navigation.settings:advancedqueue.advancedqueue_queue.vgwort.uuid No schema NOT ✅❓
It's because it is incorrectly using the property paths from the previous config object it examined.
Steps to reproduce
Run drush config:inspect --only-error --detail when there is config with no schema and there is config with a schema earlier in the loop.
Proposed resolution
Initialise variable in the correct place.
Remaining tasks
User interface changes
Less incorrect info in output.
API changes
None
Data model changes
None
Comments
Comment #2
alexpottComment #4
daniel.bosenI have lots of these errors in my projects. The patch fixes it and the implementation looks good to me.
Comment #5
herved commentedI stumbled on this issue in our CI, but cannot reproduce locally for some reason...
The patch does fix the issue for me as well, as long as I don't use --list-constraints
If I do, I get:
This might be another issue I'm not sure...
Comment #6
joelpittetRE #5 Commited those menu_position.settings you posted thanks @herved!
RTBC++
Comment #9
gábor hojtsyLooks very straightforward, thanks!