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

ibexa:migrations:migrate script does not take into account metadata section

    XMLWordPrintable

Details

    Description

      steps to reproduce

      1. install clean Ibexa DXP 3.3
      2. create migration file like above:
      -
          type: content
          mode: create
          content_type: article
          location:
              parentLocationId: 2
              locationRemoteId:
              hidden: false
              sortField: 1
              sortOrder: 1
              priority: 0
          lang: eng-GB
          section: 8
          metadata:
              contentType: article
              mainTranslation: eng-GB
              creatorId: 14
              modificationDate: '2002-10-06T15:19:56+00:00'
              publicationDate: '2002-10-06T15:19:56+00:00'
              alwaysAvailable: true
              section: 7
              objectStates: { }
          always_available: false
          fields:
              - fieldDefIdentifier: title
                languageCode: eng-GB
                value:Article
              - fieldDefIdentifier: intro
                languageCode: eng-GB
                value: >-
                    <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
                        xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml"
                        xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom"
                        version="5.0-variant ezpublish-1.0">
                            <para>Data &amp; privacy regulations</para>
                    </section>
          actions: { }
      
      1. Run php bin/console ibexa:migrations:migrate

       

      Result
      An article was created with the default section

       

      Expected result

      An article should be created with a section from metadata

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: