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

App column filtering by mgnl:lastModifiedBy doesn't return any results for partial matches

    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: 
                  columns: 
                    modifiedBy: &modifiedBy
                      name: mgnl:lastModifiedBy
                      filterComponent:
                        $type: textField
      1. Click Save.
      2. Go to http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:pages-app:browser;/travel::
      3. Starting writing into the new column filter text field the word "superuser"

      Expected results

      The results are visible while writing.

      Actual results

      The results are not visible until whole name is written.

      Workaround

      Modify this line in JcrQueryBuilder like:

      (!filterKey.startsWith(MGNL_PREFIX) || filterKey.endsWith("By")) &&
      

      and this line like:

      if ((filterKey.startsWith(MGNL_PREFIX) && !filterKey.endsWith("By")) || !(filterValue instanceof String)) {
          return JCR_OPERATOR_EQUAL_TO;
      }

      Development notes

      For performance reasons, EQUAL operator is used since MGNLUI-7739 for all mgnl: properties.

      System properties referencing user names might still benefit from LIKE operator though.

      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

            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