Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-8568

App column filtering by mgnl:tags property doesn't return any results

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce

      1. To enable filtering by tags:
      2. Go to http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:resources:browser;/pages-content-tags-integration/decorations/pages-app/apps/pages-app.subApps.browser.yaml::
      3. Click edit
      4. Add to the mgnl:tags column config the filter component: 
                  name: mgnl:tags
                  $type: columnComponent
                  type: java.util.Collection
                  filterComponent:
                    $type: comboBoxField
                    datasource:
                      $type: jcrDatasource
                      workspace: tags
                      describeByProperty: jcrName
                      allowedNodeTypes:
                        - mgnl:tag 
      1. Click Save.
      2. Go to http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:pages-app:browser;/travel::
      3. Click Modify tags
      4. Add a tag, e.g. city
      5. Click Save changes
      6. Select a tag in the comboBox in the header of the tags column.

      Expected results

      The /travel demo page is visible

      Actual results

      No content found.

      Workaround

      Modify this line in JcrQueryBuilder like:

      Node node = (Node) filterValue;
      return "mgnl:tags".equals(filterKey) ? node.getName() : node.getIdentifier();

      Development notes

      The current implementation assumes that every JCR Node is referenced by its identifier. Tags, however, are the exceptions and are referenced by name.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            1.
            Implementation Sub-task To Do Unassigned
            2.
            Review Sub-task To Do Unassigned
            3.
            Pre-Integration QA Sub-task To Do Unassigned
            4.
            QA Sub-task To Do Unassigned

            Activity

              People

                Unassigned Unassigned
                rkovarik Roman Kovařík
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD