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 node module.
Schema in place
Schema not yet in place
views.sort.node_created
Add additional parts of identified schemas.
Steps to review
Check Steps to check on meta.
Comment | File | Size | Author |
---|---|---|---|
#14 | 1991260-diff-6-14.txt | 6.22 KB | vijaycs85 |
#14 | 1991260-config-schema-node-schema-14.patch | 6.15 KB | vijaycs85 |
#12 | 1991260-config-schema-node-schema-12.patch | 7.01 KB | vijaycs85 |
#6 | 1991260-views-config-schema-node-6.patch | 1.02 KB | vijaycs85 |
#2 | 1991260-views-config-schema-node-2.patch | 553 bytes | vijaycs85 |
Comments
Comment #1
vijaycs85Comment #2
vijaycs85Adding initial patch for views.sort.node_created
Comment #3
vijaycs85Comment #4
vijaycs85Comment #5
vijaycs85Updating tag.
Comment #6
vijaycs85Adding more plugins...
Comment #8
vijaycs85#6: 1991260-views-config-schema-node-6.patch queued for re-testing.
Comment #9
dawehnerAll of the plugins of node should be done here.
Comment #10
vijaycs85As far as I can see, we got just those 2 in the patch at #6. Needs manual check for additional plugins.
Comment #10.0
vijaycs85Updated issue summary.
Comment #10.1
vijaycs85Updated issue summary.
Comment #11
vijaycs85Working on this...
Comment #12
vijaycs85Updating other plugins...
Comment #14
vijaycs85Missed the base patch from #6
Comment #15
vijaycs85Comment #16
dawehnerAll of these options are defined in views.argument.string already, so I don't see why we have to re-add it.
These should be also inheritable.
link_to_node should be inheritable from views.field.node ... basically all the options are defined in the plugin defineOptions methods so the schema should match this hierarchy, as far as I understand it.
Comment #17
dawehnerI guess this is also kind of needs work :(
Comment #18
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.