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

Column Filter: Improve the JCR data providers to be able to work with Nodes as filter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.17
    • 6.2.1
    • None
    • Yes
    • Yes
    • Nucleus 3
    • 3

      Column Filters: ComboBox Field and list Select Field are not returning results when datasource is pointing to a workspace . Basically, combobox holds whole JCR nodes, filtering tries to search Node.toString()…which is not what we expect in this case (we expect something like Node#getProperty(“title”)).

      Steps to reproduce:

      • Include the attached light-module in your instance.
      • Open any of the apps
      • Include content
      • Try to filter via combobox or listSelectField

      Expected result

      • You get the correct results

      Current Result:

      • Empty results

      Workaround: use textField instead

      The example is just a basic example to reproduce the issue, not a real one. However if, for example you reference to another workspace, such us Categories, or Segments, this behaviour would be helpfull for editors.

      Dev notes: As a comment, I think that maybe this could lead to performance issues if the filtered workspace is to big.

      Comment from Roman: we could improve the JCR data providers so in case a Node is used as filter, its UUID is used to match the property
      Example of possible use-case: In Tours app, we want to add destination column with filter pointing to a category workspace.

        Acceptance criteria

              ajuran Antonín Juran
              miruela Mercedes Iruela
              Nucleus
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 0.5d
                  0.5d