Skip to content

Backend Stabilization & Webhook Expansion: API Consolidation, Simulation Enhancements, and Middleware Improvements v1.1.0#3

Merged
prashan-s merged 26 commits into
mainfrom
development
Feb 20, 2026
Merged

Backend Stabilization & Webhook Expansion: API Consolidation, Simulation Enhancements, and Middleware Improvements v1.1.0#3
prashan-s merged 26 commits into
mainfrom
development

Conversation

@teransarathchandra
Copy link
Copy Markdown
Member

This PR delivers a major backend consolidation and stabilization update following the Node.js → Go migration. It focuses on architectural cleanup, API consistency, simulation improvements, and expanded webhook capabilities.

teransarathchandra and others added 23 commits January 15, 2026 19:59
- Added Swagger documentation for the following endpoints:
  - LogDecision: Logs a decision made by the system or a user.
  - GetHistory: Retrieves a history of logged decisions with pagination.
  - HealthHandler: Checks if the API and connections to the Graph Engine are healthy.
  - ServicesHandler: Fetches a list of services and their status from the Graph Engine.
  - TopRiskHandler: Returns services ordered by risk metrics (pagerank or betweenness).
  - SimulateFailureHandler: Simulates a failure of a specific service and analyzes the impact.
  - SimulateScalingHandler: Simulates scaling a service and analyzes latency impact.
  - SimulateAddHandler: Simulates adding a new service to the cluster (capacity planning).
  - DependencyGraphHandler: Fetches the current dependency graph snapshot with optional filtering by namespace.
  - GetServiceMetrics: Fetches telemetry metrics for a specific service or all services.
  - GetEdgeMetrics: Fetches telemetry metrics for edges between services.

- Updated go.mod and go.sum to include new dependencies for Swagger documentation.
@teransarathchandra teransarathchandra requested review from a team and DulangaMW February 19, 2026 13:10
- Added demo mode support to SimulateFailureHandler and SimulateScalingHandler.
- Introduced SimulateContextHandler for fetching simulation context with enhanced error handling.
- Updated GraphClient to support neighborhood queries with options for direction and limits on nodes/edges.
- Enhanced NeighborhoodResponse structure to include center reference and direction.
- Improved failure and scaling simulation logic to normalize service identifiers and handle depth parameters.
- Introduced impact graph generation for failure simulations to visualize affected services.
- Refactored decision logging into a dedicated method for better code organization.
- Added new types for simulation context and request normalization to improve data handling.
- Updated decision store methods for better error handling and data retrieval.
@teransarathchandra teransarathchandra requested review from prashan-s and removed request for DulangaMW February 20, 2026 14:52
@prashan-s prashan-s removed the request for review from a team February 20, 2026 14:57
@prashan-s prashan-s merged commit ac9f3f2 into main Feb 20, 2026
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.

2 participants