From 4c143e969dcd7b6a18e5a86f9a754c9b62979ccf Mon Sep 17 00:00:00 2001 From: aur-build Date: Mon, 23 Nov 2026 13:44:20 +0000 Subject: usecase,http,pipeline,ops: keep the contract, drop the argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A workflow's doc now says what it guarantees and stops defending its existence: `subscribe` resolves the repo row, `approve` queues what the approval buys, a per-item failure comes back as a value instead of a panic. The history of which front end used to open-code it is gone. The last census-war notes go with it — three places that explained why a name in a test string was not a caller. --- src/usecase/reviews.rs | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'src/usecase/reviews.rs') diff --git a/src/usecase/reviews.rs b/src/usecase/reviews.rs index 8cbb534..31aa859 100644 --- a/src/usecase/reviews.rs +++ b/src/usecase/reviews.rs @@ -14,11 +14,8 @@ pub struct Prepared { } /// Render the current diff and store its digest, so the approval that follows -/// can be checked against exactly what was shown rather than whatever the tree -/// looked like a moment later. -/// -/// `Ok(None)` means there is no such candidate; each front end says so in its -/// own words. +/// is checked against what was actually shown. `Ok(None)` means no such +/// candidate. pub fn prepare_review(cfg: &Config, db: &Db, candidate_id: i64) -> Result> { let Some(c) = candidates::candidate_by_id(db, candidate_id)? else { return Ok(None); @@ -28,10 +25,8 @@ pub fn prepare_review(cfg: &Config, db: &Db, candidate_id: i64) -> Result