Skip to content

Conversation

gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Nov 23, 2021

The root cause was that we didn't emit a fetch on the model when the namespace was changed, the fix
is adding listeners for all the important events that signal that the collection is shown on the screen now
(unfortunately there is no one consistent event communicating that at the moment)

Hiding stats is a workaround for the issue with events not being emitted when we switch to the source
collection that can be used to trigger the data fetch, this is a bigger issue to resolve so for now
I'm just hiding the stats for these cases completely as they are not that important anyway when editing
and we don't consider them too important in general (new designs don't have as many shown there) so
this feels to me like an alright compromise (also allows to keep the scope of the fix to the minimum)

…ctive namepsace changes and don't show collStats when editing a view

Hiding stats is a workaround for the issue with events not being emitted when we swith to the source
collection that can be used to trigger the data fetch, this is a bigger issue to resolve so for now
I'm just hiding the stats for these cases completely as they are not that imprtant anyway when editing
and we don't consider them too important in general (new designs don't have as many shown there) so
this feels to me like an alright compromise
@gribnoysup gribnoysup force-pushed the fetch-collection-info-when-namespace-changes branch from 7f7fdb5 to c9c68fd Compare November 23, 2021 12:12
@gribnoysup gribnoysup merged commit 36715d4 into main Nov 23, 2021
@gribnoysup gribnoysup deleted the fetch-collection-info-when-namespace-changes branch November 23, 2021 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants