Repository navigation
Commit 015e041
committed
feat(controlplane): add dry-run and status/revision reporting to contract apply
Bring the WorkflowContract Apply API to parity with the compliance
resources: report created/updated/unchanged status along with the current
revision, and support a dry run that validates and computes the outcome
without persisting any change.
- proto: add dry_run to the Apply request; add an ApplyStatus enum and
current_revision to the Apply response, keeping the existing changed bool
for backward compatibility
- biz: add RevisionWouldChange, reusing the data-layer change-detection rule
to determine whether a revision would change without persisting
- service: report status and current_revision and support dry run for the
create, update and unchanged cases
Assisted-by: Claude Code
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
Chainloop-Trace-Sessions: 5b64444b-4b32-4948-a7ff-82aba22b407d1 parent a05305a commit 015e041
11 files changed
Lines changed: 684 additions & 60 deletions
File tree
- app/controlplane
- api
- controlplane/v1
- gen
- frontend/controlplane/v1
- jsonschema
- internal/service
- pkg/biz
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
130 | 150 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments