Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6339

'Export query with filters' provides incorrect result size

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.27
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • Not Needed

      Problem Statement/Rationale

      When I am in a collection and want to export my filtered results, we have 2 options: Export query with filters or Export Full Collection. For example, Export query with filters — 374,300 results (Recommended). However, that number of results is incorrect - it is the size of the entire collection, not the size of the returned results from my filter. When I continue on and execute the export, as the data is exporting, the progress shows that the total number of documents to export as the total collection size, not the size of the filtered results that will actually be exported. For example, under the loading bar it says Export completed 374,300 / 374,300. But it should show the number of results returned by the filter, not the collection size. In the end, the correct number of documents gets exported, however the numbers that are being displayed is very misleading. **

      Steps to Reproduce

      You can try going into one of your collections, filtering the data, and then click on the Export Collection button. You will see the number of results returned for Export Query with Filters to be incorrect. Then proceed by clicking on Select Fields, then Select Output button, then browse for an output and click on Export. You will then see how under the green progress bar, the total number of documents to be exported is the total collection size, not the number of documents returned from the filter

      Expected Results

      I expect the total number of results returned for the Export query with filter options to be equal to the number of documents displaying after filtering. Same applies for the total number of documents under the export progress bar

      Actual Results

      The numbers being displayed are the total collection size, even though my filter returns a smaller number of documents

        1. image002.png
          image002.png
          0.6 kB
        2. ~WRD000.jpg
          ~WRD000.jpg
          0.8 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            natasha.dilamani@mlp.com Natasha Dilamani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: