Skip to content

Compliance Dashboard implementation#328

Merged
gusfcarvalho merged 4 commits intomainfrom
feature/catalog-compliance-dashboard-api
Feb 25, 2026
Merged

Compliance Dashboard implementation#328
gusfcarvalho merged 4 commits intomainfrom
feature/catalog-compliance-dashboard-api

Conversation

@onselakin
Copy link
Contributor

No description provided.

…ntrols

Aggregate evidence status across resolved profile controls with group and summary rollups, optional SSP implementation coverage, integration tests, and Swagger updates.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements a compliance dashboard feature that tracks compliance progress for OSCAL profiles. It includes a new API endpoint, bug fixes for handling controls/groups across multiple catalogs, and comprehensive test coverage.

Changes:

  • Added new /api/oscal/profiles/{id}/compliance-progress endpoint that aggregates compliance status across controls in a profile
  • Fixed cross-catalog handling in control and group merging functions by including catalog_id in merge keys
  • Added nil parent ID validation checks to prevent potential runtime errors in rollup functions

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/api/handler/oscal/profile_compliance.go New handler implementing compliance progress endpoint with status aggregation, group rollups, and SSP implementation tracking
internal/api/handler/oscal/profiles.go Bug fixes for cross-catalog control/group merging and added nil pointer safety checks in parent lookups
internal/api/handler/oscal/profiles_test.go Unit tests for cross-catalog control and group merging behavior
internal/api/handler/oscal/profiles_integration_test.go Comprehensive integration tests covering compliance progress endpoint, edge cases, and SSP implementation tracking
docs/swagger.yaml OpenAPI documentation for new compliance progress endpoint
docs/swagger.json OpenAPI documentation in JSON format
docs/docs.go Generated Swagger documentation code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gusfcarvalho gusfcarvalho merged commit c38c164 into main Feb 25, 2026
4 checks passed
@gusfcarvalho gusfcarvalho deleted the feature/catalog-compliance-dashboard-api branch February 25, 2026 20:10
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.

3 participants