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

Unable to execute Dashboard Migrations separately during upgrade from v4.5 to v4.6

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Install the latest Ibexa Experience (or Commerce) v4.5
      2. Follow the upgrade procedure as described via https://github.com/ibexa/documentation-developer/pull/2276/ till reaching Dashboard steps
      3. Instead of executing
        php bin/console ibexa:migrations:migrate --file=2024_01_30_dashboard_structure.yaml --file=2024_01_30_dashboard_permissions.yaml
        

        try doing that in 2 steps:

        php bin/console ibexa:migrations:migrate --file=2024_01_30_dashboard_structure.yaml
        php bin/console ibexa:migrations:migrate --file=2024_01_30_dashboard_permissions.yaml
        

      Actual behavior

      Observe the following error:

      In MigrationExecutor.php line 68:
                                                                                                                                                                                      
        Executing migration "2024_01_30_dashboard_permissions.yaml" failed. Exception: Failed denormalizing Step 0. Reference ref__predefined_dashboards_folder__path was not found.  
                                                                                                                                                                                      
      
      In StepsDenormalizer.php line 71:
                                                                                                      
        Failed denormalizing Step 0. Reference ref__predefined_dashboards_folder__path was not found  
                                                                                                      
      
      In Collection.php line 39:
                                                                         
        Reference ref__predefined_dashboards_folder__path was not found  
      

      Expected behavior

      Migration is executed correctly regardless of bulk or separate execution as long as the logical order is kept (structure, then permissions [for the structure])

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              andrew.longosz@ibexa.co Andrew Longosz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: