diff options
Diffstat (limited to 'src/review')
| -rw-r--r-- | src/review/approve.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/review/approve.rs b/src/review/approve.rs index f116a92..e1150b3 100644 --- a/src/review/approve.rs +++ b/src/review/approve.rs @@ -219,6 +219,18 @@ pub fn bulk( Ok(out) } +/// Withdraw a published release and unpublish its files. +/// +/// Nothing in production reaches this today: the CLI and the web UI both go +/// through `usecase::withdraw_package`, which withdraws a *package* and +/// republishes the repo. This is the single-release operation underneath what +/// that path will eventually use, and `tests/pipeline.rs` is what pins its +/// invariants — a second withdraw is refused, an unknown release is refused. +/// +/// So it is compiled only under `test-support`. A release build does not carry +/// an operation nothing invokes; when production grows the call, the gate comes +/// off and the test that already exists becomes the regression cover. +#[cfg(feature = "test-support")] pub fn withdraw(db: &Db, actor: &str, release_id: i64, reason: &str) -> Result<()> { let actor = actor.to_string(); let reason = reason.to_string(); |
