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

Migrations do not support using reference in the string values

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 4.3.1, 4.4.0-beta1, 4.2.4, 3.3.30
    • 3.3.15, 4.0.2
    • None
    • None

    Description

      It is not possible to use references in the string literals in migrations.

      A typical use-case would be to have a Landing Page migration, where one or more blocks are using locationlist block attribute type. This attribute, when serialized to YAML, looks for instance like:

      { id: '1099', name: locationlist, value: '101, 102' }
      

      Naturally, values should be replaced by references as these numeric values might change.

      Unfortunately, neither:

      { id: '1099', name: locationlist, value: 'reference:foo, reference:bar' }
      

      nor

      { id: '1099', name: locationlist, value: "'reference:foo', 'reference:bar'" }
      

      works.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              kamil.madejski@ibexa.co Kamil Madejski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: