[COMPASS-3851] Select fields when exporting a collection Created: 28/Aug/19  Updated: 11/Mar/20  Resolved: 27/Nov/19

Status: Closed
Project: Compass
Component/s: Import/Export
Affects Version/s: None
Fix Version/s: 1.21.0

Type: Story Priority: Major - P3
Reporter: Massimiliano Marcon Assignee: Irina Shestak (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates COMPASS-3852 Select fields when exporting CSV Closed
Epic Link: COMPASS-3013
Story Points: 3
Sprint: Iteration Quokka, Iteration Ragamuffin

 Description   

User story

As a Compass user
I want to select the fields that will be written into the exported JSON or CSV file
So that I only export what is needed and I can keep the file small

Acceptance Criteria

  • Before exporting, the user can choose the fields that are exported (https://mongodb.invisionapp.com/share/BVNOZB4DYT3#/screens/349364209)
  • When fields are selected/deselected, if a projection exists, it is modified according to the new selection
  • Because the list of fields is probably generated from a sample of the collection, we give the user the possibility of adding other fields that may not exist in the sample
  • When the export is completed, only the fields that the user selected are exported


 Comments   
Comment by Githook User [ 06/Dec/19 ]

Author:

{'name': 'Lucas Hrabovsky', 'username': 'imlucas', 'email': 'hrabovsky.lucas@gmail.com'}

Message: feat(import-export): Add ability to specify projection for export (#1863)

Now that this release has been published, a PR to mongodb-js/compass :package: `@mongodb-js/compass-import-export@^4.2.0` has changelog:

Comment by Githook User [ 06/Dec/19 ]

Author:

{'email': 'hrabovsky.lucas@gmail.com', 'name': 'Lucas Hrabovsky', 'username': 'imlucas'}

Message: feat(import-export): Add ability to specify projection for export

Now that this release has been published, a PR to mongodb-js/compass :package: `@mongodb-js/compass-import-export@^4.2.0` has changelog:

Generated at Wed Feb 07 22:34:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.