feat: Add service graph visualization and enhance SearchService#1428
Open
ambiguous-pointer wants to merge 7 commits intoapache:feat/topologyfrom
Open
feat: Add service graph visualization and enhance SearchService#1428ambiguous-pointer wants to merge 7 commits intoapache:feat/topologyfrom
ambiguous-pointer wants to merge 7 commits intoapache:feat/topologyfrom
Conversation
…ate edges and add logging for nil specs
确定无地方使用 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…st/response models
|
10 tasks
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.



Service/Application Dependency Graph Enhancement
This change evolves the service/application dependency‑graph feature that was introduced in the previous PR.
It keeps the original intent – tracing upstream/downstream relationships via
ServiceProviderMetadataResourceandServiceConsumerMetadataResource– but adapts the backend to return a new node/edge schema required by the front‑end.📌 What’s New
Graph payload structure has changed
The API now emits a richer “typed” graph similar to the example below.
Service nodes (interface names) and application nodes are both present; each node declares
its
type(applicationorservice) plus arule(provider/consumer/empty).Example response
{ "code": "Success", "message": "success", "data": { "nodes": [ { "id": "order-service", "label": "order-service", "type": "application", "rule": "provider" }, { "id": "order-service-01", "label": "order-service-01", "type": "application", "rule": "provider" }, { "id": "com.ecommerce.api.service.OrderService::", "label": "com.ecommerce.api.service.OrderService::", "type": "service", "rule": "" }, { "id": "payment-service", "label": "payment-service", "type": "application", "rule": "consumer" } ], "edges": [ { "source": "com.ecommerce.api.service.OrderService::", "target": "order-service", "data": { "type": "provides" } }, { "source": "com.ecommerce.api.service.OrderService::", "target": "order-service-01", "data": { "type": "provides" } }, { "source": "payment-service", "target": "com.ecommerce.api.service.OrderService::", "data": { "type": "consumes" } } ] } }Maintained capabilities
ServiceNameto narrow the graph to a single service.📁 Affected Areas / Review Checklist
servicepackage handlers)