From e06a371447148fad3509ec5c7777468a85ee4da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 20 Mar 2026 14:07:24 -0600 Subject: [PATCH] Mirror seeded_not_replicated command in test-http-api --- crates/test-http-api/src/api.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/test-http-api/src/api.rs b/crates/test-http-api/src/api.rs index ecc8f60a0..652b2dcbf 100644 --- a/crates/test-http-api/src/api.rs +++ b/crates/test-http-api/src/api.rs @@ -64,6 +64,10 @@ pub fn router(ctx: Context) -> Router { .route("/repo_count", post(repo_count_handler)) .route("/list_repos", post(repo_root_handler)) .route("/list_repos_summary", post(list_repos_summary_handler)) + .route( + "/seeded_not_replicated", + post(seeded_not_replicated_handler), + ) .route("/repo_by_id", post(repo_handler)) .route("/version", post(version_handler)) .route("/diff_stats", post(diff_stats_handler)) @@ -137,6 +141,11 @@ async fn list_repos_summary_handler(State(ctx): State) -> impl IntoResp Ok::<_, Error>(Json(repos)) } +async fn seeded_not_replicated_handler(State(ctx): State) -> impl IntoResponse { + let rids = ctx.seeded_not_replicated()?; + Ok::<_, Error>(Json(rids)) +} + #[derive(Serialize, Deserialize)] struct RepoBody { pub rid: identity::RepoId,