Posted by vijaycs85 on February 16, 2013 at 9:13pm
7 followers
| Project: | Drupal core |
| Version: | 8.x-dev |
| Component: | field system |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | Configuration schema, Configuration system, D8MI, language-config |
Issue Summary
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
Create a configuration schema for field module.
Schema in place
Schema not yet in place
field.settings.yml
Comments
#1
Adding schema file...
#2
Re-rolling with code style fixes (http://drupal.org/node/1905070#codestyle)
#3
The last submitted patch, 1919164-field-schema-2.patch, failed testing.
#4
+++ b/core/modules/field/config/schema/field.schema.ymlundefined
+++ b/core/modules/field/config/schema/field.schema.ymlundefined
@@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
+# Schema for configuration files of field module.
missing 'the' as per code style :(
+++ b/core/modules/menu/config/menu.settings.ymlundefined@@ -1,3 +1,3 @@
-main_links: main
+smain_links: main
secondary_links: account
override_parent_selector: '0'
typo/mistake?
#5
Fixed changes as per the above comments.
#6
Correct the label for purge batch site and update the patch
#7
+++ b/core/modules/field/config/schema/field.schema.ymlundefined+++ b/core/modules/field/config/schema/field.schema.ymlundefined
@@ -0,0 +1,9 @@
+# Schema for configuration files of the Field module
One minor issue - Comment missing a full stop(".") at the end.
#8
The last submitted patch, 1919164-field-schema-6.patch, failed testing.
#9
#6: 1919164-field-schema-6.patch queued for re-testing.
#10
Thanks @vijaycs85. Update patch as per the comment
#11
I tested the patch #10, It works. Attach the screen shot. Thank you @sandipmkhairnar.
#12
Thanks @sidharthap and @sandipmkhairnar. Looks good to go to me too.
#13
Committed to 8.x, thanks! I'll push once testbot has caught up a bit.
#14
Automatically closed -- issue fixed for 2 weeks with no activity.