docs(kpis): count approvals as clean in K5 and drop the skip-review advice #169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/kpi-k5-counts-approvals"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
K5 treated every submitted review as a change, so an approval lowered the
clean-merge rate, and the page told the owner to merge without a formal
approval to keep the proxy honest. That rewarded skipping review. Ploeg
already stores each review's verdict, reviewer, head SHA and time
(pull_request_reviews, migration 0023) and each push with its pusher
(pull_request_events, migration 0033).
K5 now counts a pull request as changed only when a review requested
changes, or someone other than the pull request's author pushed to the
branch, between the awaiting_review settle and the merge. Approvals and
comment-only reviews never lower it. The skip-review sentence is gone, the
data gap lists only what is still missing (GitLab pushes name no pusher,
the 500-event activity bound, a missing author, ForgeBots being
configuration), and D1 is narrowed to the GitLab pusher.
The new K5 query was checked against Ploeg's embedded PostgreSQL with all migrations and 7 seeded pull requests (3 clean of 7 as expected). The Loop dashboard panel in webgrip/homelab-cluster must be updated separately (filed on the Homelab Roadmap).
Verified with
mise run verifyon the pinned toolchain (all gates passed).Ticket: https://vikunja.webgrip.dev/tasks/1750
🤖 Generated with Claude Code