Refactor access review campaign source API

Expose campaign sources as first-class nodes, paginate fetch attempts
instead of denormalized status fields, and bind entries to their
campaign snapshot. Update GraphQL, MCP, CLI, console, and e2e coverage
to match.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-06-15 14:42:58 +02:00
parent 82c9800677
commit eed6bf579d
25 changed files with 1078 additions and 692 deletions

View File

@@ -27,7 +27,7 @@ import (
const createMutation = `
mutation($input: CreateAccessReviewSourceInput!) {
createAccessReviewSource(input: $input) {
accessSourceEdge {
accessReviewSourceEdge {
node {
id
name
@@ -44,7 +44,7 @@ type createResponse struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"node"`
} `json:"accessSourceEdge"`
} `json:"accessReviewSourceEdge"`
} `json:"createAccessReviewSource"`
}

View File

@@ -27,7 +27,7 @@ import (
const updateMutation = `
mutation($input: UpdateAccessReviewSourceInput!) {
updateAccessReviewSource(input: $input) {
accessSource {
accessReviewSource {
id
name
}
@@ -40,7 +40,7 @@ type updateResponse struct {
AccessReviewSource struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"accessSource"`
} `json:"accessReviewSource"`
} `json:"updateAccessReviewSource"`
}