Add finding and obligation publish to document system
Replace the old snapshot-based approach with the new publish document system for findings and obligations. Includes GraphQL mutations, MCP tools, CLI commands, e2e tests, frontend publish dialogs, and snapshot-to-document migration tools. Remove snapshot mode entirely from findings and obligations: drop snapshotId from GraphQL schemas, filters, resolvers, MCP spec, frontend routes, pages, and helpers. The snapshot_id column remains in the database but is now filtered out with snapshot_id IS NULL. Remove auditor's ability to publish SoA. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -338,6 +338,49 @@ type (
|
||||
Owner string
|
||||
Vendors string
|
||||
}
|
||||
|
||||
FindingListData struct {
|
||||
Title string
|
||||
OrganizationName string
|
||||
CreatedAt time.Time
|
||||
TotalFindings int
|
||||
Rows []FindingListRow
|
||||
}
|
||||
|
||||
FindingListRow struct {
|
||||
ReferenceID string
|
||||
Kind string
|
||||
Description string
|
||||
Source string
|
||||
IdentifiedOn string
|
||||
RootCause string
|
||||
CorrectiveAction string
|
||||
EffectivenessCheck string
|
||||
Status string
|
||||
Priority string
|
||||
Owner string
|
||||
DueDate string
|
||||
}
|
||||
|
||||
ObligationListData struct {
|
||||
Title string
|
||||
OrganizationName string
|
||||
CreatedAt time.Time
|
||||
TotalObligations int
|
||||
Rows []ObligationListRow
|
||||
}
|
||||
|
||||
ObligationListRow struct {
|
||||
Area string
|
||||
Source string
|
||||
Requirement string
|
||||
ActionsToBeImplemented string
|
||||
Status string
|
||||
Type string
|
||||
Regulator string
|
||||
Owner string
|
||||
DueDate string
|
||||
}
|
||||
)
|
||||
|
||||
func BoolLabel(v bool) string {
|
||||
|
||||
Reference in New Issue
Block a user