Repository navigation
Refactor workflow history ownership and decouple timeline consumers - #4131
Closed
tegan-temporal wants to merge 23 commits into
Closed
tegan-temporal wants to merge 23 commits into
tegan-temporal wants to merge 23 commits into
Conversation
Use each workflow's firstRunId in chain URLs and redirect legacy run-based paths to the new route. Scope grouped event buffer state per instance to prevent views from sharing workflow data.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Propagate poll callback failures, surface useful load details, and remove obsolete active-event state management
# Conflicts: # src/lib/components/workers/workers-table/workers-table.svelte
…nt-chain-overview-page
…nt-chain-overview-page # Conflicts: # src/lib/components/event/pending-nexus-summary-row.svelte # src/lib/components/lines-and-dots/event-type-filter.svelte # src/lib/components/lines-and-dots/timeline-graph/graph-widget.svelte # src/lib/components/lines-and-dots/timeline-graph/timeline-graph-row.svelte # src/lib/components/lines-and-dots/timeline-graph/timeline-graph.svelte # src/lib/layouts/workflow-history-layout.svelte # src/lib/layouts/workflow-timeline-layout.svelte # src/lib/services/grouped-event-buffer.svelte.ts # src/lib/services/grouped-event-buffer.test.ts # src/lib/services/grouped-event-buffer.ts
laurakwhit
reviewed
Nov 14, 2026
laurakwhit
left a comment
Collaborator
There was a problem hiding this comment.
Nothing critical to address here! Just need to fix the integration tests and looks like we'll need a Cloud PR to be merged with this one for some breaking changes. Main concern is probably the errors in the live-poll never reaching the controller.
FYI I ran this through the /winston:pr-review skill.
…nt-chain-overview-page # Conflicts: # src/lib/layouts/workflow-timeline-layout.svelte # src/lib/services/grouped-event-buffer.svelte.ts # src/lib/services/grouped-event-buffer.test.ts # src/lib/services/grouped-event-buffer.ts
- Surface non-retryable live-poll errors to the history controller - Keep the pause when one bidirectional cursor fails; stop and reject instead of draining - Gate the workflow-task-failed banner on fetchComplete - Clear the run error on a successful refresh and pause live polling while it shows - Update integration test event filter selectors
- Let the healthy cursor keep loading after a failure when the pause is released immediately - Expect the workflow-task failure banner to stay hidden while history is partial - Scroll the virtualized timeline into view before finding rows on mobile - Use the event-type-filter selectors in the smoke spec - Fix type errors in the history errors spec
Contributor
Author
|
Superseded by #4195. |
This branch was successfully deployed
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.
Summary
Give each workflow execution its own history buffer and loading controller instead of relying on shared singleton state. The run layout owns the controller lifecycle, and a keyed history provider supplies it to route-facing views through Svelte context. Reusable timeline, event, activity, and worker components receive their data and execution identity explicitly.
https://linear.app/temporal/issue/FE-996/timeline-data-refactoring
Behavior
Implementation
Validation
Consumer compatibility
Packaged consumers must update their UI dependency and pass SDK information explicitly to workflow worker tables. The single-event page now takes only the event ID; execution identity comes from its history controller.
Cloud UI consumer updates: https://github.com/temporalio/cloud-ui/pull/3578 (draft; waits for these changes to be merged and packed).