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

Export filter data results in missing data

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.23.0
    • Component/s: Import/Export
    • None
    • Environment:
      MacOS 10.14.6
    • Not Needed

      Problem Description

      Exporting filtered results in result in missing documents. Please see the attached files.

      The results between 1.19.12 and 1.23.0-beta.2 vary by the format. In addition, it would be preferred to keep the data file format consistent between 1.19.12 and the latest 1.23.0-beta.2 versions (tab indentions).

      Steps to Reproduce

      Create 3 documents

      Use this filter to find 2 documents:

      Filter: {_id: {$in: [ObjectId('5fac5b82f450e4e7e5f72cd5'), ObjectId('5fac5b8cf450e4e7e5f72cd6')]}}

      Click Collection > Export Collection

      Click SELECT FIELDS

      Click SELECT OUTPUT

      Choose JSON, pick a filename, click EXPORT

      Open the file

      Expected Results

      2 complete documents from the filter above in the exported file.

      Actual Results

      test1.23Beta_filter2.json is missing the value of the 2nd document's key, value pair.

      Additional Notes

        1. Screen Shot 2020-11-11 at 5.31.03 PM.png
          Screen Shot 2020-11-11 at 5.31.03 PM.png
          80 kB
        2. test_1.19.12_filter1.json
          0.1 kB
        3. test_1.23Beta_filter1.json
          0.1 kB
        4. test1.19.12_filter2.json
          0.1 kB
        5. test1.23Beta_filter2.json
          0.1 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: