[MGNLUI-8568] App column filtering by mgnl:tags property doesn't return any results Created: 12/Dec/23  Updated: 12/Dec/23

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLUI-8573 App column filtering by mgnl:lastModi... Open
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-8569 Implementation Sub-task To Do  
MGNLUI-8570 Review Sub-task To Do  
MGNLUI-8571 Pre-Integration QA Sub-task To Do  
MGNLUI-8572 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 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.


Generated at Mon Feb 12 09:56:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.