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/subscriptions.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/usecase/subscriptions.rs') diff --git a/src/usecase/subscriptions.rs b/src/usecase/subscriptions.rs index c504cfe..a37e650 100644 --- a/src/usecase/subscriptions.rs +++ b/src/usecase/subscriptions.rs @@ -9,11 +9,7 @@ pub struct Subscribe { pub url: String, } -/// Start watching a pkgbase. -/// -/// The repo row has to be resolved first, which is the step every front end -/// previously open-coded — and the web layer got it wrong, falling back to repo -/// id 1 rather than saying the repository was not initialised. +/// Start watching a pkgbase, resolving the repo row first. pub fn subscribe(db: &Db, pkgbase: &str, url: Option) -> Result { let rid = db::repo_id(db)?; let url = url.unwrap_or_else(|| format!("https://aur.archlinux.org/{pkgbase}.git")); -- cgit v1.2.3