Uploaded image for project: 'Analytics'
  1. Analytics
  2. ANALYTICS-111

Single Filter cannot be used in more than one data supplier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.1
    • 1.0
    • None
    • Magnolia 6.1.2

    Description

      In a dashboard definition if I want to use the same filter for two data suppliers the only one gets the filter's value.

      For example:

      dataSuppliers:
        mostPublishingUsersSupplier:
          class: info.magnolia.dashboards.datasource.MostPublishingUsersDataSupplier
          parameters:
            workspace: tours
        mostActivatedContentSupplier:
          class: info.magnolia.dashboards.datasource.MostActivatedContentDataSupplier
          parameters:
            workspace: tours
      filterFields:
        - name: workspace
          label: Workspace
          class: info.magnolia.ui.form.field.definition.TextFieldDefinition
      

      Only the first data supplier registered (MostPublishingUsersDataSupplier) will get the workspace filter value.

      The second data supplier won't get any value.

       

      AC

      • Fix the scenario above
      • Only AbstractExternalSupplier has direct access to parameters but any supplier should have the possibility

       

      You can find the full example here: (I had to use 2 different filters for workspace to make it work)

      https://git.magnolia-cms.com/projects/SERVICES/repos/dashboards-admin

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              chuong.doan Chuong Doan Huy
              ebguilbert Edwin Guilbert
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2.75d
                    2.75d