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

[migrations] lack of error message after product type update

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 4.5.0, 4.4.3
    • None
    • content +

    Description

      Problem has been discovered while working on https://github.com/ibexa/test-fixtures/pull/27.

      Steps to reproduce:
      1. run test-fixtures (https://github.com/ibexa/test-fixtures) and populate local instance with data
      2. run migration of attached yaml file
      3. go to product catalog/products
      4. edit a product
      5. click 'update' button

      Actual result:
      404 error occurs. It seems that attributes are wiped if they are not included in update migration file

      Expected result:
      Error is handled properly.

       

       

      - type: repeatable
        mode: create
        iterations: 10
        steps:
          -   type: content_type
              mode: update
              match:
                field: content_type_identifier
                value: "laptop###XXX i XXX###"
              fields:
                -   identifier: specification
                    type: ibexa_product_specification
                    required: true
                    translations:
                      eng-GB:
                        name: Specification
                    fieldSettings:
                      regions:
                        - { region_identifier: germany, vat_category_identifier: standard}
      

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              tomasz.szopinski@ibexa.co Tomasz Szopiński
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: