Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1575

Fix aggregate selection not updated after selecting another filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.19
    • Component/s: UI
    • Release Notes Summary:
      Search aggregates are updated after applying a new filter.
    • Backlog priority:
      850
    • Sprint:
      UI - 2023-01, UI COOLDOWN - 2023-01

      Description

      Steps to reproduce:

      1. Navigate to the default search
      2. in the Authors suggestion, select 2 users with at least 1 created document
      3. the results and the filters are refreshed accordingly => ok
      4. in the Modification Date aggregate, check a box where there is 0 result (in my case, it was Last 24h)
      5. the results and the filters are refreshed accordingly
      6. observe that the Authors field still displays the previous number of results for each user, the same one as before the Modification Date value was checked

      Expected behavior: the Authors field should be updated and it should display 0 in the parenthesis for each user.

      By looking at the response of the corresponding request, we can see in the extendedBuckets part of the aggregation that it contains the correct docCount for each selected user, so it should be feasible to update the suggestions - see attached screenshot for reference

        Attachments

        1. authorsNotRfreshed.png
          32 kB
          Thierry Martins
        2. extendedBuckets.png
          75 kB
          Thierry Martins

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days
                3d