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 shortcut module.

Schema in place

Schema not yet in place
shortcut.set.default.yml

Files: 
CommentFileSizeAuthor
#9 schema_patch_8.PNG24.14 KBrahuldolas123
#8 1919198-shortcut-schema-8.patch512 bytesrachit_gupta
PASSED: [[SimpleTest]]: [MySQL] 52,216 pass(es). View
#7 1919198-shortcut-schema-7.patch450 bytesvijaycs85
PASSED: [[SimpleTest]]: [MySQL] 51,306 pass(es). View
#7 1919198-diff-1-7.txt507 bytesvijaycs85
#1 1919198-shortcut-schema-1.patch408 bytesvijaycs85
PASSED: [[SimpleTest]]: [MySQL] 50,751 pass(es). View

Comments

vijaycs85’s picture

Status: Active » Needs review
FileSize
408 bytes
PASSED: [[SimpleTest]]: [MySQL] 50,751 pass(es). View

Adding schema file...

Status: Needs review » Needs work
Issue tags: -Configuration system, -D8MI, -language-config, -Configuration schema

The last submitted patch, 1919198-shortcut-schema-1.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review

#1: 1919198-shortcut-schema-1.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Configuration system, +D8MI, +language-config, +Configuration schema

The last submitted patch, 1919198-shortcut-schema-1.patch, failed testing.

vijaycs85’s picture

Random errors.. re-testing again..

vijaycs85’s picture

Status: Needs work » Needs review

#1: 1919198-shortcut-schema-1.patch queued for re-testing.

vijaycs85’s picture

FileSize
507 bytes
450 bytes
PASSED: [[SimpleTest]]: [MySQL] 51,306 pass(es). View

Updating labels...

rachit_gupta’s picture

FileSize
512 bytes
PASSED: [[SimpleTest]]: [MySQL] 52,216 pass(es). View

Updating according to codestyle at http://drupal.org/node/1905070#codestyle

rahuldolas123’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
24.14 KB

Hello,

I have tested the above patch with config inspector module and the patch works.
Attaching the screenshot for the same.

image

vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @rahuldolas123. It looks fine to me too.

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Committed and pushed to 8.x. Thanks!

Although...

+++ b/core/modules/shortcut/config/schema/shortcut.schema.ymlundefined
@@ -0,0 +1,12 @@
+    id:
+      type: string
+      label: 'ID'

ID is not a mere "string", it is in fact a machine name, and probably ought not to be trifled with (or at the very least ought to have machine name validation). Do we track that as a separate type? If not, should we?

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.