[COMPASS-5542] Export: Update export plugin to support aggregations Created: 28/Feb/22  Updated: 07/Apr/22  Resolved: 05/Apr/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.31.2

Type: Task Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Leonardo Rossi (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-5237
Story Points: 5
Documentation Changes: Not Needed
Sprint: Iteration Wolverhampton, Iteration Xochimilco, Iteration Yonkers

 Description   

Export plugin should be able to handle aggregation pipelines:

  • All the logic should be encapsulated in the import-export plugin
  • Open should happen with the same global event that is currently used to open queries: "open-export"
  • Opening an export modal with pipeline should show the pipeline preview similar to the current first step of the modal form queries
    • We probably can skip showing the count altogether for the pipelines, but it would make sense to clarify this with product
    • For queries this preview allow to select "export full collection" option, as this doesn't make sense for aggregations, just a preview of the pipeline should be displayed instead
  • There should be no option to select export fields (no second step as for queries, all fields should be exported and the form should proceed to file select after showing pipeline preview)
    • To determine export fields for the csv export we will use first document returned from the aggregation (we might change this particular logic later down the road, but this will be our starting point)


 Comments   
Comment by Githook User [ 07/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 06/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: COMPASS-5669-aggregate-results
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 06/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: Merge branch 'COMPASS-5542' into COMPASS-5542-export-aggregations
Branch: COMPASS-5542-backup
https://github.com/mongodb-js/compass/commit/c20e558801240a440144d0a3ad03869649a38438

Comment by Githook User [ 06/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: Merge branch 'COMPASS-5542' into COMPASS-5542-export-aggregations
Branch: COMPASS-5542-backup
https://github.com/mongodb-js/compass/commit/ae5f8471ac44861e452a7ad95c7b386e75035748

Comment by Githook User [ 06/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: Merge branch 'COMPASS-5542' into COMPASS-5542-export-aggregations
Branch: COMPASS-5542-backup
https://github.com/mongodb-js/compass/commit/9060fb948196c254c2c35194d1a6f99668a8a029

Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: COMPASS-5588-update-perf-toolbar
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: add-gitignore-for-built-bundles
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: add-time-series-link
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: remove-compass-connect
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: refactor(compass-import-export): Refactor exporter in order to export a generic Cursor COMPASS-5542 (#2922)
Branch: main
https://github.com/mongodb-js/compass/commit/348dcc103908ab69f8d23ceed949fe928b367b47

Comment by Githook User [ 29/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: COMPASS-5518-update-workspace-tabs-selection-move
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

Comment by Githook User [ 28/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

Comment by Githook User [ 24/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: compass-crud-editable-document-to-compass-components
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

Comment by Githook User [ 24/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: move-find-in-page-to-leafygreen
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

Comment by Githook User [ 24/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: flash-mongosh-toggle-for-discoverability
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

Comment by Githook User [ 24/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: mongodb-versions
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

Comment by Githook User [ 24/Mar/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: chore(compass-import-export): Convert import export to new package system COMPASS-5542 (#2908)

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: main
https://github.com/mongodb-js/compass/commit/e324378cfc7564d7eaf9a9fb2c93ff770c4154bc

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