Importing Editor Interfaces [skipped] when I provided editorInterfaces data
Expected Behavior
I am specifying a value for "editorInterfaces" in my JSON to import, and I expect it to impact things like the "help message" of fields.
Actual Behavior
The "editorInterfaces" data is not actually importing to my content model. In fact, the CLI says it is skipping it.
Steps to Reproduce
Run this command:
contentful space import --content-file contentful-importme.json --update --config example-config.json
With these files:
example-config.json
{
"spaceId": "{YOUR SPACE ID HERE}",
"managementToken": "{YOUR MANAGEMENT TOKEN HERE}"
}
contentful-importme.json
{
"contentTypes": [
{
"name": "Yummy Snack",
"description": "It's all about the bars",
"sys": {
"id": "snicketysnack",
"type": "ContentType",
"environment": {
"sys": {
"id": "master",
"type": "Link",
"linkType": "Environment"
}
}
},
"fields": [
{
"id": "urlfragment",
"name": "URL fragment",
"type": "Symbol",
"required": true
}
]
}
],
"editorInterfaces": [
{
"sys": {
"id": "default",
"type": "EditorInterface",
"contentType": {
"sys": {
"id": "snicketysnack",
"type": "Link",
"linkType": "ContentType"
}
},
"environment": {
"sys": {
"id": "master",
"type": "Link",
"linkType": "Environment"
}
}
},
"controls": [
{
"fieldId": "urlfragment",
"settings": {
"helpText": "Hand-edit your slug here"
},
"widgetId": "singleLine",
"widgetNamespace": "builtin"
}
]
}
]
}
Observe content type being caught
Note that "Yummy Snack" appears in the console output while the import is running, so the file is not being ignored altogether
√ Validating content-file
√ Initialize client (1s)
√ Checking if destination space already has any content and retrieving it (1s)
√ Apply transformations to source data (1s)
√ Push content to destination space
√ Connecting to space (1s)
√ Importing Locales (1s)
| Importing Content Types
-> √ Updated ContentType Yummy Snack (snicketysnack)
Publishing Content Types (1s)
Observe Editor Interfaces being skipped
Observe the Editor Interfaces being skipped (and then log into web portal and confirm that there's no "help text" for the field "urlfragment").
√ Validating content-file
√ Initialize client (1s)
√ Checking if destination space already has any content and retrieving it (1s)
√ Apply transformations to source data (1s)
√ Push content to destination space
√ Connecting to space (1s)
√ Importing Locales (1s)
√ Importing Content Types (4s)
√ Publishing Content Types (1s)
↓ Importing Tags [skipped]
↓ Importing Editor Interfaces [skipped]
√ Importing Assets (4s)
√ Publishing Assets (1s)
√ Archiving Assets (0s)
√ Importing Content Entries (4s)
√ Publishing Content Entries (0s)
√ Archiving Entries (0s)
√ Creating Web Hooks (0s)
Finished importing all data
┌───────────────────────┐
│ Imported entities │
├───────────────────┬───┤
│ Locales │ 0 │
├───────────────────┼───┤
│ Content Types │ 0 │
├───────────────────┼───┤
│ Assets │ 0 │
├───────────────────┼───┤
│ Published Assets │ 0 │
├───────────────────┼───┤
│ Archived Assets │ 0 │
├───────────────────┼───┤
│ Entries │ 0 │
├───────────────────┼───┤
│ Published Entries │ 0 │
├───────────────────┼───┤
│ Archived Entries │ 0 │
├───────────────────┼───┤
│ Webhooks │ 0 │
└───────────────────┴───┘
The import took a few seconds (10s)
No errors or warnings occurred
The import was successful.
Context
I'm trying to figure out how to make repeatable and transferable Contentful schemas for themes, and I'm getting stuck at the inability to customize the Editor Interfaces through your tool.
Environment
Node Version: 15.0.1 Npm Version: output of 7.0.3 Operating System: 64-bit Windows 10 Package Version: contentful-cli 1.5.1