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 the idea of config schema. 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
1. Create a configuration schema for views module general configuration(views.settings).
2. Add missing config keys and remove the keys that are not used.
Schema in place
Schema not yet in place
views.settings
Comment | File | Size | Author |
---|---|---|---|
#8 | 2107693-views-settings-8.patch | 3.52 KB | rych |
#6 | Screen Shot 2013-11-17 at 13.58.08.png | 44.63 KB | vijaycs85 |
#5 | 2107693-views-settings-5.patch | 3.03 KB | vijaycs85 |
Comments
Comment #1
vijaycs85Comment #2
vijaycs85Initial patch...
Comment #2.0
vijaycs85Update for views.settings
Comment #3
a_thakur CreditAttribution: a_thakur commented@vijaycs85: The patch applied successfully, but I am unable to view schema for views.settings in the config inspector.
After applying the patch, views.schema.yml did not get changed, rather the files as in git status shown below got changed.
Comment #4
ianthomas_uk@vijaycs85 I think you uploaded the wrong patch, presumably because this issue was initially mistitled.
Comment #5
vijaycs85Yes, seems it is wrong patch. Updating correct patch with changes in config itself (Removed always_live_preview_button and added exposed_filter_any_label).
Comment #6
vijaycs85Manually tested in config_inspector
Comment #7
dawehnercustom_theme is also not used anymore in the UI, we should drop it.
Comment #8
rych CreditAttribution: rych commentedI've removed custom_theme both from views.chema.yml and from views.settings.yml.
As I know, in settings.yml file there should be true or false values for boolean fields, so I've changed '0' values to false, '1' to true.
Setting up boolean values seems to me a little confusing. In core/modules/system/config/sysrem.site.yml file the value is false for admin_compact_mode, but in https://drupal.org/node/1905070 there is enabled: '0' in the "An introductory example" section.
What's the correct form? Does it matters anyway?
Comment #9
vijaycs85thanks for working on this @rych. The boolean value should be true or false (not '0' or 0). Your patch looks good.
Comment #10
webchickCommitted and pushed to 8.x. Thanks!