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 user module, 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.
Schema in place
user.mail.yml
user.settings.yml
user.flood.yml
user roles
Schema not yet in place
Comment | File | Size | Author |
---|---|---|---|
#13 | 1912258-config_schema_for_user-13.patch | 4.82 KB | vijaycs85 |
#13 | 1912258-diff-11-13.txt | 497 bytes | vijaycs85 |
#11 | 1912258-config_schema_for_user-11.patch | 4.73 KB | vijaycs85 |
#11 | 1912258-diff-9-11.txt | 808 bytes | vijaycs85 |
#9 | 1912258-config_schema_for_user-9.patch | 4.63 KB | vijaycs85 |
Comments
Comment #1
adammaloneHere's a patch that adds in the additional schemas.
Comment #2
adammaloneComment #3
adammaloneActually... this patch would adhere more to kwalify formats since user roles should be user.role.*
Comment #4
Gábor HojtsyTagging up.
Comment #5
Gábor HojtsyNo type on these?
Also are these the actual labels on the UI? Title cased? Drupal does not usually use title cased naming on the UI. Same true for the other part added (as well as the header "User Roles").
Comment #6
adammaloneI'll have another go over these. I wasn't aware that the label/id had to be linked to that in the UI.
Comment #7
vijaycs85Adding additional schemas with code style fixes.
Comment #8
guy_schneerson CreditAttribution: guy_schneerson commentedRemoved - not applicable
Comment #9
vijaycs85doesn't sound like patch in #7.
Fixed few labels as per UI.
Comment #10
guy_schneerson CreditAttribution: guy_schneerson commentedSorry vijaycs85 you are right, I removed #8 and Tested your latest patch in #9 and found only two small Issues:
Comment #11
vijaycs85Thank you @guy_schneerson. Updated patch to accommodate changes mentioned in #10. Good catch :)
Comment #12
guy_schneerson CreditAttribution: guy_schneerson commentedGreat job @vijaycs85, the interdiff makes it real easy to review.
Not sure if I missed it before or if it was added recently but we are also missing password_strength from the user.settings.yml (this was recently added to allow disabling of the password strength indicator) and is a boolean.
Sorry if i missed it before - setting status to "needs a tiny bit more work :)"
Comment #13
vijaycs85Thanks again @guy_schneerson. added password_strength.
Comment #14
guy_schneerson CreditAttribution: guy_schneerson commentedLooks great @vijaycs85
Also updated the issue description and moved moved user.flood.yml & user roles into the "Schema in place" section as you have implemented those.
Not sure if anyone else needs to review but setting it to "Reviewed & tested by the community" so sett it back if you think it needs more review.
Comment #15
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.
Comment #16.0
(not verified) CreditAttribution: commentedUpdated issue summary.