Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Description
Steps to reproduce
- To enable filtering by tags:
- Go to http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:resources:browser;/pages-content-tags-integration/decorations/pages-app/apps/pages-app.subApps.browser.yaml::
- Click edit
- Add to the mgnl:tags column config:
columns: modifiedBy: &modifiedBy name: mgnl:lastModifiedBy filterComponent: $type: textField
- Click Save.
- Go to http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:pages-app:browser;/travel::
- 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
- caused by
-
MGNLUI-7739 System properties and non string values could use EQUALS instead of LIKE in JCR query
-
- Closed
-
- clones
-
MGNLUI-8568 App column filtering by mgnl:tags property doesn't return any results
-
- Open
-
1.
|
Implementation |
|
To Do | Unassigned |
2.
|
Review |
|
To Do | Unassigned |
3.
|
Pre-Integration QA |
|
To Do | Unassigned |