This is a sub-issue of #1910624: [META] Introduce and complete configuration schemas in all of core.
Problem/motivation
#1866610: Introduce Kwalify-inspired schema format for configuration introduced some config schema coverage for views, but it is not complete. The changelog leads to (hopefully extensive) documentation on the format at http://drupal.org/node/1905070. While there are little cleanups planned for the format overall, the current format is a result of months of back and forths, so it should be perfectly fine to apply it more widely to core.
Proposed solution
Figure out the missing pieces that are not yet covered. Write schema file sections for them. Clean up / fix any issues in current schema.
Create a configuration schema for view components access, area, argument, argument_default, argument_validator, cache, display, display_extender, exposed_form, field, filter, handler, pager, sort, style (whichever applicable) in taxonomy module.
Schema in place
Schema not yet in place
Arguments:
IndexTid.php
IndexTidDepth.php
IndexTidDepthModifier.php
Taxonomy.php
VocabularyVid.php
Argument validators:
views.argument_validator.taxonomy_term
Argument default:
views.argument_default.taxonomy_tid
Filters:
TaxonomyIndexTid.php
TaxonomyIndexTidDepth.php
Fields:
Language.php
LinkEdit.php
Taxonomy.php
TaxonomyIndexTid.php
Relationship:
NodeTermData.php
Steps to review
Check Steps to check on meta.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1992892-diff-4-6.txt | 802 bytes | vijaycs85 |
| #6 | 1992892-config-schema-views_taxonomy-6.patch | 4.66 KB | vijaycs85 |
| #4 | 1992892-diff-1-4.txt | 4.17 KB | vijaycs85 |
| #4 | 1992892-config-schema-views_taxonomy-4.patch | 4.67 KB | vijaycs85 |
| #1 | 1992892-views-config-schema-taxonomy-1.patch | 1.07 KB | vijaycs85 |
Comments
Comment #1
vijaycs85Initial patch...
Comment #2
dawehnerAll of the plugins of taxonomy should be done here.
Comment #2.0
vijaycs85Updated issue summary.
Comment #3
vijaycs85Working on this...
Comment #4
vijaycs85Updated for all plugins except relationship as we don't have one from views...
Comment #6
vijaycs85Comment #7
dawehnerI wonder why this is specific multiple times?
Comment #8
vijaycs85so all PluginBase has content type (e.g ArgumentPluginBase is views_argument) and the plugin extends base use this content type (e.g. Numeric extends ArgumentPluginBase, so views.argument.numeric is of type views_argument). But we don't really use this plugin as content type for the plugin extending it.
So in our example (actual/current implementation),
VocabularyVid extends Numeric extends ArgumentPluginBase. We use views_argument as content type for both Numeric and VocabularyVid
Whereas, it should be (expected)
VocabularyVid should be of type Numeric. If it can be done, then the change would be:
will be changed to
But I never tried it.
Comment #9
dawehnerI think this means this is needs work.
Comment #10
vijaycs85The patch on this issue has been updated as part of #2167623: Add test for all default configuration to ensure schema exists and is correct. As this issue doesn't have any test to confirm/validate the schema, making this change and closing this issue as duplicate of #2167623: Add test for all default configuration to ensure schema exists and is correct. The contributors of this issue (in commit message) is copied to #2167623: Add test for all default configuration to ensure schema exists and is correct.