Commit 58e3deb
committed
feat(api): add has_gates flag and PolicyGatesFilter to workflow run list
Surfaces whether a run had gates in effect (any policy marked gate:true
or contract using ENFORCED strategy) on both PolicyStatusSummary and
WorkflowRunServiceListRequest. Independent of policy status — a PASSED
run can still have has_gates=true. Materialized on workflow_run via a
partial index so the list filter is cheap.
Also refactored the renderer backfill for historic envelopes to a single
pass that derives skipped/passed counts and gate presence together.
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>1 parent e1590b7 commit 58e3deb
28 files changed
Lines changed: 942 additions & 196 deletions
File tree
- app/controlplane
- api
- controlplane/v1
- gen
- frontend/controlplane/v1
- jsonschema
- internal/service
- pkg
- biz
- data
- ent
- migrate
- migrations
- schema
- workflowrun
- pkg/attestation/renderer/chainloop
Lines changed: 193 additions & 126 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
146 | 157 | | |
147 | 158 | | |
148 | 159 | | |
| |||
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 | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
Lines changed: 60 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments