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

Dashboard view configuration doesn't respect configurable content type

    XMLWordPrintable

Details

    Description

      We can configure Dashboard Content Type via SiteAccess-aware dynamic settings.
      Current view configuration doesn't use that setting:

      ibexa:
          system:
              admin_group:
                  content_view:
                      dashboard:
                          dashboard_page:
                              template: '@ibexadesign/dashboard/dashboard_view.html.twig'
                              match:
                                  Identifier\ContentType: [ dashboard_landing_page ]
                                  IsPreview: false                    
                          dashboard_preview_page:
                              template: '@ibexadesign/dashboard/dashboard_preview.html.twig'
                              match:
                                  Identifier\ContentType: [ dashboard_landing_page ]
                                  IsPreview: true 

      We need to create either new matcher or modify built-in one to respect dynamic settings - for now decided to create new matcher to avoid breaking change so late in the 4.6 development cycle.

      Steps to reproduce

      1. Change Dashboard content type identifier to something other than `dashboard_landing_page`
      2. Reconfigure instance to rely on that change

      ibexa:
          system:
              admin_group:
                  dashboard:
                      content_type_identifier: my_dashboard_content_type_identifier
      

      Actual result

      Observe that dashboard is not loaded anymore

      Expected result

      Dashboard is loaded properly after re-configuring its content type identifier.

      Designs

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: