Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5931

Migrations: SEO metadata is not exported and imported

    XMLWordPrintable

Details

    • [4.6] - Sprint 10
    • Yes

    Description

      When exporting a contenttype which has SEO metadata, that SEO metadata is not exported

      Steps to reproduce :

      1. Create a contentype and define some SEO data
      2. Export the data
        php bin/console ibexa:migrations:generate --type=content_type --mode=create --match-property=content_type_identifier --value=content_seo
      3. Inspect the exported data and notice that the SEO metadata is not in the export
        -
            type: content_type
            mode: create
            metadata:
                identifier: content_seo
                mainTranslation: eng-GB
                creatorId: 14
                creationDate: '2023-06-08T08:04:41+00:00'
                remoteId: f3bad8aa7ce643251bb941c744f84dc0
                urlAliasSchema: ''
                nameSchema: '<name>'
                container: true
                defaultAlwaysAvailable: true
                defaultSortField: 2
                defaultSortOrder: 0
                contentTypeGroups:
                    - Content
                translations:
                    eng-GB:
                        name: 'Content With SEO'
                        description: 'Content with SEO'
            fields:
                -
                    identifier: name
                    type: ezstring
                    position: 0
                    translations:
                        eng-GB:
                            name: Name
                            description: ''
                    required: true
                    searchable: true
                    infoCollector: false
                    translatable: true
                    category: content
                    defaultValue: null
                    fieldSettings: \{  }
                    validatorConfiguration:
                        StringLengthValidator:
                            maxStringLength: null
                            minStringLength: null
                -
                    identifier: number
                    type: ezinteger
                    position: 1
                    translations:
                        eng-GB:
                            name: Number
                            description: ''
                    required: false
                    searchable: true
                    infoCollector: false
                    translatable: true
                    category: content
                    defaultValue: 5
                    fieldSettings: \{  }
                    validatorConfiguration:
                        IntegerValueValidator:
                            minIntegerValue: 1
                            maxIntegerValue: 10
                -
                    identifier: vfield_64818b995bea3
                    type: ibexa_seo
                    position: 100
                    translations:
                        eng-GB:
                            name: 'SEO Vtest'
                            description: 'V SEO description'
                    required: false
                    searchable: false
                    infoCollector: false
                    translatable: true
                    category: content
                    defaultValue:
                        value: null
                    fieldSettings:
                        types: null
                    validatorConfiguration: \{  }
            references:
                -
                    name: ref_{_}content_seo{_}_content_type_id
                    type: content_type_id
        
      1. As a consequence, SEO metadata will not be included when importing the migration export again

       

      Importing Content with SEO meta data does not work ( export seems to work )

      Steps to reproduce:

      1. Export some content that has SEO metadata defined:
        php bin/console ibexa:migrations:generate --type=content --mode=create --match-property=content_id --value=67
      2. Inspect the exported data, the SEO metadata is there :
        -
            type: content_type
            mode: create
            metadata:
                identifier: content_seo
                mainTranslation: eng-GB
                creatorId: 14
                creationDate: '2023-06-08T08:04:41+00:00'
                remoteId: f3bad8aa7ce643251bb941c744f84dc0
                urlAliasSchema: ''
                nameSchema: '<name>'
                container: true
                defaultAlwaysAvailable: true
                defaultSortField: 2
                defaultSortOrder: 0
                contentTypeGroups:
                    - Content
                translations:
                    eng-GB:
                        name: 'Content With SEO'
                        description: 'Content with SEO'
            fields:
                -
                    identifier: name
                    type: ezstring
                    position: 0
                    translations:
                        eng-GB:
                            name: Name
                            description: ''
                    required: true
                    searchable: true
                    infoCollector: false
                    translatable: true
                    category: content
                    defaultValue: null
                    fieldSettings: {  }
                    validatorConfiguration:
                        StringLengthValidator:
                            maxStringLength: null
                            minStringLength: null
                -
                    identifier: number
                    type: ezinteger
                    position: 1
                    translations:
                        eng-GB:
                            name: Number
                            description: ''
                    required: false
                    searchable: true
                    infoCollector: false
                    translatable: true
                    category: content
                    defaultValue: 5
                    fieldSettings: {  }
                    validatorConfiguration:
                        IntegerValueValidator:
                            minIntegerValue: 1
                            maxIntegerValue: 10
                -
                    identifier: vfield_64818b995bea3
                    type: ibexa_seo
                    position: 100
                    translations:
                        eng-GB:
                            name: 'SEO Vtest'
                            description: 'V SEO description'
                    required: false
                    searchable: false
                    infoCollector: false
                    translatable: true
                    category: content
                    defaultValue:
                        value: null
                    fieldSettings:
                        types: null
                    validatorConfiguration: {  }
            references:
                -
                    name: ref__content_seo__content_type_id
                    type: content_type_id
        
      1. Import the data again
      2. Notice that the title=V SEO title test1 is not imported

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              vidar.langseid@ibexa.co Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: