-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: CRUD
-
None
-
3
-
None
-
Developer Tools
See video for an example. Start an update, swap views, see that the update button is no longer disabled, and the `Updating document…` is no longer shown.
swap view while editing wipes in progress editing state.mp4sorry for the clicking sounds.
This could cause someone to think something was cancelled or didn't happen when it is still happening.
I'm thinking story points a solid size 3, maybe a 5, as this is around hadron document state and event management. There's likely a refactor or two that would make sense to do while we fix this.
The JSON view is already not showing the update in progress and errors how they should as a result of how we're handling/passing `modified` here: https://github.com/mongodb-js/compass/blob/2f4577b42758ef129c1f93b9e9fdd3808d349747/packages/compass-components/src/components/document-list/document-edit-actions-footer.tsx#L319 (see that the error state is shown in yellow in the JSON view).