Skip to content

Import space with locale based publish export does not work #3179

@Swissbite

Description

In a nutshell: The cli contentful space import ... does not reflect the enterprise feature of Locale-based publishing and hinders a successful import.

Expected behavior

The space import should be able to handle locale-based publishing.

Existing behavior

It publishes via the standard way which does not consider locale-based publishing

Detail explenation

If you export a space which has the feature Locale-based publishing enabled and not all locales are published, then the import will fail. Period.

The exported JSON has all the information to consider if a content is general published or if it is locale published. This is readable via the field sys.fieldStatus and is exported as follows:

 "fieldStatus": {
          "*": {
            "cs": "published",
            "da": "published",
            "de-CH": "published",
            "en": "published",
            "es-ES": "published",
            "fr-FR": "published",
            "hu": "published",
            "it-IT": "published",
            "ko": "published",
            "nl": "published",
            "no": "published",
            "pl": "published",
            "sv": "published",
            "th": "published",
            "vi": "published",
            "zh-TW": "published",
            "zh-CN": "published"
          }
        },

Whenever this field exists on any entry or asset, you must assume that the publishing must be locale-aware.

Further documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions