-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: State Management, Tech debt
-
None
-
8
Now that Compass doesn't pre-fetch all the database and collection metadata before becoming interactive the fact that collection tab requires a ton of this metadata before it can be shown on the screen (all appRegistry events like select-namespace, open-namespace-in-new-tab, modify-view, etc., that can cause the tab to show need to fetch this information in advance) gets in the way quite a lot: there is no easy way to just open a new tab from the arbitrary part of Compass without making this part of Compass aware of all the collection metadata, even if it doesn't know anything about collection except for the namespace.
We should consider moving the fetching logic to the compass-collection store and simplify the namespace selection events to the bare minimum: only namespace is absolutely required to be able to show collection tab