Repository navigation
refactor(frontend): remove the unused ObservableContextManager - #8695
Merged
aglinxinyuan merged 1 commit intoSep 27, 2026
Merged
aglinxinyuan merged 1 commit into
aglinxinyuan merged 1 commit into
Conversation
Nothing has subscribed to its enter/exit/change streams since apache#1810 replaced the JointJS event buffering that read them. Re-parent JointGraphContext onto ContextManager and delete the observable layer; four ContextManager-relevant spec cases move into the ContextManager block with their stream assertions dropped.
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8695 +/- ##
============================================
- Coverage 92.72% 92.71% -0.01%
Complexity 4947 4947
============================================
Files 1243 1243
Lines 52682 52657 -25
Branches 6520 6519 -1
============================================
- Hits 48850 48823 -27
Misses 2214 2214
- Partials 1618 1620 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kunwp1
approved these changes
Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Deletes
ObservableContextManagerand re-parents its only subclass,JointGraphContext, ontoContextManager. +8/−223 lines. There is no behaviour change: the removed layer only emitted enter/exit events on Subjects nothing subscribes to, andJointGraphContext's ownenter/exitoverrides still callsuper.History
JointGraphContextused the change stream to buffer JointJS events in async modegetChangeContextStream()subscribersIt has been dead for over three and a half years. Every paper-context enter/exit since then has emitted into streams with no reader.
Any related issues, documentation, discussions?
Closes #8694
How was this PR tested?
No new tests. The kept
ContextManagercases cover the surviving code.From
frontend/:npx ng test --watch=false --include='**/context.spec.ts' --include='**/joint-graph-wrapper.spec.ts' --include='**/workflow-editor.component.spec.ts': 3 files, 199 tests, all pass.yarn format:ci: clean.npx ng build: success.To re-check:
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with Claude Code