Repository navigation
feat(workbench): generate architecture graph on backend via GetArchitectureGraph RPC - #918
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new GetArchitectureGraph RPC to the WorkbenchService to offload the computation of the Kubernetes architecture graph from the frontend to the backend. On the backend, a new graph builder has been implemented to construct the topology (nodes, pods, services, workload controllers, and their relationships) at a specific timestamp using the active timeline filter. On the frontend, the GraphDataConverterService was refactored to GraphConverterService to fetch this pre-computed graph from the backend, allowing the removal of heavy frontend-side parsing logic, K8s resource types, and the TaskYielder utility. There are no review comments, so no further feedback is provided.
…ture graph builder
- Fix timeline bitset empty filtering logic to exclude all resources when empty - Unify slice sorting using generic sortedValuesByID helper - Clean up container parsing and edge generation in architecturegraph builder - Remove unused files: condition-positive-map.ts, k8s-types.ts, task-yielder.ts - Rename GraphDataConverterService to GraphConverterService - Use PodConnectionGraphData and eliminate redundant dummy node fallback - Rename internal owner references and remove unused ownerUids
kyasbal
force-pushed
the
push-qptwxoprtowk
branch
from
August 27, 2026 05:58
49c40f6 to
5fdc3e5
Compare
kyasbal
marked this pull request as ready for review
August 27, 2026 06:32
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 27, 2026 06:32
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
Migrates Kubernetes architecture graph computation from client-side TypeScript to the backend Go Workbench service via a new Connect-RPC
GetArchitectureGraph.Key Changes
pkg/server/workbench/architecturegraph,proto/api/v1/architecture_graph.proto):GetArchitectureGraphRPC onWorkbenchService.architecturegraph.Builderto resolve cluster topology (Nodes, Pods, Services, PodOwners, and Top-Level Owners) along with directional edges at a specified timestamp.sparsebitsetpackage from workbench.web/src/app/):WorkbenchClientService.getArchitectureGraph()using Connect-RPC.GraphConverterServiceto consume protobuf graph responses instead of traversing raw manifests in the browser.GraphSmartComponentwith Angular Signals (resource()) and active timeline filter bitset.k8s-types.ts,task-yielder.ts,condition-positive-map.ts).Testing
make test-gomake test-webmake lint-gomake lint-webmake build-storybookmake pre-commit