[COMPASS-6162] Create types for SavedQueries and SavedAggregations Created: 05/Oct/22  Updated: 10/Jan/24  Resolved: 02/Nov/22

Status: Closed
Project: Compass
Component/s: Tech debt
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Rhys Howell
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 3
Documentation Changes: Not Needed

 Description   

The types will get use in `pipeline-storage` and `saved-query-storage` as well as in other places like tab creation in `compass-collection`.
Pipeline storage: https://github.com/mongodb-js/compass/blob/7b44ce962bb378c0883854cd2202d3f434942c3b/packages/compass-aggregations/src/utils/pipeline-storage.js
Possible type usage in `compass-collection`: https://github.com/mongodb-js/compass/blob/7b44ce962bb378c0883854cd2202d3f434942c3b/packages/compass-collection/src/stores/context.tsx#L73
These types are currently mocked for `compass-saved-aggregations-queries`: https://github.com/mongodb-js/compass/blob/7b44ce962bb378c0883854cd2202d3f434942c3b/packages/compass-saved-aggregations-queries/src/typings.d.ts

Before we add types we'll need the types to be defined in a place that exports typings files. Currently the plugins through their webpack builds do not. That would be a first step, alternatively we could make them all consume types from somewhere like compass-components but I think that would probably be avoiding the inevitable.


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