Skip to content

Conversation

@ugyballoons
Copy link
Contributor

Problem: Loading from JSON twice is leaving the workspace in a non-consistant state.

This PR aims to fix the issues by making sure that workspaces are properly cleared before loading anew. This also involves making sure that discarded charts are unsubscribed from the selection controller and that new ones are consistantly subscribed.

- Fix workspace clearing to properly unsubscribe blocs before closing
- Add proper async/await handling in workspace loading to prevent emit-after-completion errors
- Fix memory leaks by cancelling subscriptions in FocalPlaneChartBloc.close()
- Use stable ID for WorkspaceViewer selection subscription and add dispose cleanup
- Add extensive logging throughout workspace load/clear cycle for debugging
- Improve error handling and reporting during workspace deserialization
- Add schema field validation with user-friendly error messages
- Fix workspace rebuild logic to avoid unnecessary rebuilds during data loading
@ugyballoons ugyballoons requested a review from fred3m November 27, 2025 13:06
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