Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-1386

Fix Saved Search restoration/execution with hierarchical vocabularies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.31, 3.1.6
    • Component/s: Web UI
    • Release Notes Summary:
      The hierarchical vocabularies used in saved searches are correctly restored.
    • Backlog priority:
      700
    • Sprint:
      UI COOLDOWN - 2024-01, UI - 2024-01, UI - 2024-02
    • Story Points:
      5

      Description

      Pre-requisite: install the attached jar to nxserver/plugins

      Steps to reproduce:

      1. Navigate to your personal workspace
      2. Click on the + button and choose "document operational"
      3. In the creation form, set the Title with Approv1 and select "Entreprise" in the dropdown menu for Typology. Then validate with the Create button
      4. Repeat the previous step to create another "document operational" document with title=Approv2 and select Road for the Typology field
      5. Navigate to the Search menu named "Approval search"
      6. Once the Form panel is open, click on Search => the 2 "document operational" documents will be displayed
      7. Select "Entreprise" in the dropdown menu for Typology and click on Search => only the document Approv1 is displayed, as expected
      8. Save the search with the name "entreprise"
      9. In the Dropdown menu on top of the Form panel, select "Filters" to remove the previous choice
      10. Then select "entreprise" => observe that the Typology field is set
      11. Click on the Search button
      12. Observe that no document is returned <= that's the bug

      When analyzing the payloads, we see :

      • for a normal search, the value is
        operational_typology: %5B%220000%2FDOCENT%22%5D

        decoded into ["0000/DOCENT"]

      • for the saved search, the value is
        operational_typology: %5B%22DOCENT%22%5D

        decoded into ["DOCENT"]

      => the parent is missing in the payload submitted by the saved search.

      Note that the value is correctly saved in the SavedSearch document

              "PP_Search_DocumentOperational_pp:operational_typology": [
                  "0000/DOCENT"
              ],
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 2 hours
                  1w 2h