Problem
#111715: Convert node/content types into configuration just landed, so we need to do the config schema for it.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 2029405-schame-node_type-11.patch | 1.78 KB | yesct |
| #11 | interdiff-9-11.txt | 492 bytes | yesct |
| #9 | 2029405-schame-node_type-9.patch | 1.82 KB | yesct |
| #9 | interdiff-4-9.txt | 1.08 KB | yesct |
| #8 | s01-overview.png | 1.18 MB | yesct |
Comments
Comment #1
vijaycs85Initial patch...
Comment #2
vijaycs85form from config_inspector...
Comment #3
johnheaven commentedI've had a look over this and am not sure I understand correctly how the schema files work, so here a summary and a couple of examples of the things I found and if I'm right I'll post the rest of them in more detail:
As I say, there are a few other things I found but wanted to make sure I understand this correctly before reporting stuff!
Comment #4
rahul.shindeWhile testing out the node schema, found configuration issue for with "Content type settings", Schema say the value for following fields,
should be a boolean, but actually it saving values as a string, code snippet is as below,
I have update patch from comment number 1, which changes the type from boolean to string.
Attached are updated patch and the short summary what I have updated.
Comment #5
vijaycs85Thanks for working on this @rahul.shinde. Can see that you have created separate issue #2031131: Configuration saving issue with "Content type settings". for the format issue. IMHO, we need to push this as it is blocking other follow ups in config_translation module (e.g. #2029407: Add support for node types )
Comment #6
yesct commentedThis is an enabled/disabled status on the (config) entity.
See
ConfigEntityListController
and
ConfigEntityBase
Comment #7
yesct commentedre #3 @johnheaven
menu links, are content, and not configuration... so that is stored in the database.
wait, that's the default, that would be used when a actual article was created...
so, where is that stored?
is it like language.settings.yml?
nah, that would say something about article
Comment #8
yesct commentedSo, I looked at this closely.
first is some screenshots and notes so that I can remember what I was thinking later.
Patch attached for changes that I think need to be made.
Notes
s01
s02
label is fine,
but why is the config thing called "help"?
Maybe we used to call this help text.
Not the problem of this issue.
preview s03
preview s04 disabled
preview s05 required
So.. it's not boolean. And is being saved with numbers 0, 1, 2 to represent the select I think.
Changed this to be integer.
but feels weird, maybe should be saving as string: optional, disabled, required? (not the problem of this issue.)
s06 status (show submitted by status)
Changed the label in the schema to better match the label in the UI.
again, weird naming in saving the config, submitted sounds like is it submitted or not, not if it is displaying the submitted by authoring info. (not the problem of this issue)
s07 just noting that the language settings are saved elsewhere, language.settings.yml. ok.
Changes
uid:
to
uuid:
preview type to int
better label on submitted
Also,
better label on status, the config entity status. See #6 (it's the purple note in the s01 overview screenshot).
A concern though, is that this is "status" in many config entities, so if this is a good idea, should change the label in those other schemas also. (would be a separate issue to change the other places)
--
patch coming.
Comment #9
yesct commentedpatch for the changes from #8.
Comment #10
vijaycs85Thanks for working on this @YesCT. Improvements in #9 looks good.
one minor note:
it doesn't sound right. Status is the flag to say whether it is enabled/disabled. We can rename it something, but this property is there in all config and entityConfig. So we might need to all?
Comment #11
yesct commentedyeah, I was just being persnickety.
We dont want to change it everywhere as part of this patch, and it's really not our problem here what it's named.
I put it back.
So I think this should be ok now.
Comment #12
gábor hojtsyThe settings structure seems to be confusing indeed, but that is how it is and schemas merely describe the status quo. This also blocks the config translation module support for node types, so adding the blocker tag.
Comment #13
gábor hojtsySpecifically blocks #2029407: Add support for node types.
Comment #14
alexpottCommitted dc2304f and pushed to 8.x. Thanks!
Comment #16
gábor hojtsyRemoving sprint tag.