[MGNLUI-6364] Column Filter: comboBoxField with optionListDatasource not working as filter Created: 27/Oct/20  Updated: 29/Mar/22  Resolved: 02/Mar/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.3
Fix Version/s: 6.2.18

Type: Improvement Priority: Neutral
Reporter: Monica Damborenea Assignee: Adam Siska
Resolution: Fixed Votes: 2
Labels: VN-Testing, nucleus
Remaining Estimate: Not Specified
Time Spent: 0.25d
Original Estimate: Not Specified

Attachments: PNG File 1.png     PNG File 2.png    
Issue Links:
Relates
relates to MGNLUI-5903 Column Filter: Improve the JCR data p... Closed
relates to DOCU-2187 Provide a more accurate description f... Closed
duplicate
duplicates MGNLUI-6016 Column filtering with comboBoxField a... Closed
is duplicated by MGNLUI-7036 ComboBox field with optionListDatasou... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Datasource filtering
Sprint: Nucleus 5
Story Points: 2
Team: Nucleus

 Description   

Column Filters: ComboBox Field using the optionListDatasource is not returning results. 

Steps to reproduce

  •  Add a comBoxField filter such as the following:
    name: events
    label: Events
    icon: icon-calendar
    subApps:
      browser:
        workbench:
          dropConstraintClass: info.magnolia.contacts.app.main.tree.ContactDropConstraint
          contentViews:
            - name: tree
              $type: treeView
              defaultOrder: false
              columns: !override
                - name: testId
                  label: testId
                  expandRatio: 2
                  width: 200
                  filterComponent:
                    $type: comboBoxField
                    emptySelectionAllowed: true
                    textInputAllowed: true
                    datasource:
                        $type: optionListDatasource
                        options:
                          - name: true
                            value: true
                            label: true
                          - name: false
                            value: false
                            label: false
    
  • Note that you can see the options in the field filter
  • If you select one of the options, it won't return anything
    **

Expected results
We should see the available results after the filter is applied

Actual results
Nothing is returned
 
Development notes

Are we missing to convert the column options to string when applying the filter?

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/datasource/optionlist/OptionToModelTypeConverter.java

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/contentapp/browser/GridColumnConfigurer.java

see also development notes here: MGNLUI-7036



 Comments   
Comment by Roman Kovařík [ 16/Jun/21 ]

For docu: update examples https://docs.magnolia-cms.com/product-docs/6.2/Apps/App-configuration/Column-definition.html

Comment by Ashraf Khamis [ 15/Mar/22 ]

DOC PR approved & merged: https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/product-docs/pull-requests/950/overview

Comment by Adam Siska [ 15/Mar/22 ]

For RN: optionListDatasource could be used within comboBoxField column filter component (plus provide link to DOCu example?)

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