Skip to content

RP-10: Build service dependency graph model#7

Merged
b17saurabh merged 2 commits into
mainfrom
RP-10/build-service-dependency-graph-model
Jun 12, 2026
Merged

RP-10: Build service dependency graph model#7
b17saurabh merged 2 commits into
mainfrom
RP-10/build-service-dependency-graph-model

Conversation

@b17saurabh

Copy link
Copy Markdown
Contributor

feat: build service dependency graph model

  • ServiceNode, DependencyEdge, DependencyGraph domain models
  • DependencyType (sync, async, event, gRPC, db) and ServiceStatus enums
  • GraphTraversal with upstream/downstream traversal, path finding, root/leaf detection
  • 29 tests covering models (round-trip JSON, validation, graph operations) and traversal (upstream, downstream, multi-path, depth limits, impact chains)

- ServiceNode, DependencyEdge, DependencyGraph domain models
- DependencyType (sync, async, event, gRPC, db) and ServiceStatus enums
- GraphTraversal with upstream/downstream traversal, path finding, root/leaf detection
- 29 tests covering models (round-trip JSON, validation, graph operations) and traversal (upstream, downstream, multi-path, depth limits, impact chains)
@b17saurabh b17saurabh self-assigned this Jun 12, 2026
- Move operational logic from DependencyGraph to GraphStore ABC
- Add InMemoryGraphStore as default implementation
- Refactor GraphTraversal to depend on GraphStore interface
- Slim DependencyGraph to pure Pydantic data model
- Update all 33 tests to use InMemoryGraphStore
- Export GraphStore and InMemoryGraphStore from __init__.py
@b17saurabh b17saurabh merged commit af64e61 into main Jun 12, 2026
8 checks passed
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.

1 participant