Problem/Motivation
This module's configuration schema definition is missing configuration for business_rules.settings. As a result, if you try to install the module as part of an automated test, you get the following error:
Drupal\Core\Config\Schema\SchemaIncompleteException: No schema for business_rules.settings
Also, there are some files which are incorrectly and inconsistently named:
business_rules.setting.ymlshould bebusiness_rules.settings.ymlbusiness_rule.schema.ymlshould bebusiness_rules.schema.yml
Finally, there is a spelling mistake in the key bolean in business_rules_variable.schema.yml under business_rules.variable.type.view_result_variable.
Proposed resolution
- Rename
business_rules.setting.ymltobusiness_rules.settings.yml - Rename
business_rule.schema.ymltobusiness_rules.schema.yml - Add a schema for
business_rules.settingsinbusiness_rules.settings.yml - Fix the spelling mistake in
business_rules_variable.schema.yml
Remaining tasks
Write a patch- Review and feedback
- RTBC and feedback
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Documentation links
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | business_rules-schema-3133400-9.patch | 3.64 KB | mparker17 |
Comments
Comment #2
brolad commentedComment #3
Oscaner commentedIn 8.x-1.0 version, it's
business_rules.setting. So i added it too.Comment #4
Oscaner commentedSo interesting, why missing schema so much?
Comment #5
brolad commentedI guess config/install/business_rules.setting.yml should be renamed to config/install/business_rules.settings.yml .
Comment #6
weynhamz@Kang Miao, the schema for `business_rules.action.type.loop_through_multivalued_variable` should be added to patch in #3087857: Add more general action to loop through a multivalued variable
Comment #7
Oscaner commented@weynhamz Thanks for reminding me, i will move the schema into #3087857
Comment #8
Oscaner commentedUpdate patch with #5 & #6 comments.
Comment #9
mparker17Here's an updated patch that:
1. renames
config/install/business_rules.setting.ymltoconfig/install/business_rules.settings.ymlas per @brolad's request in #52. Adds a test to see if the module correctly installs... if it does, then (among other things) there shouldn't be any config schema issues in the default settings
I also updated the issue summary.
Reviews are welcome!
Comment #10
mparker17Updated the issue title
Comment #11
mparker17Added links to the documentation I was reading when I was trying to write the patch.
Comment #12
mparker17Comment #13
colanComment #15
colanThanks all!