feat(recoverable-job): add admin page
This commit is contained in:
@@ -111,9 +111,7 @@ impl JobHandler for ConsistencyBatch {
|
||||
.snapshot()
|
||||
.await
|
||||
.into_iter()
|
||||
.filter(|s| {
|
||||
s.name.ends_with("_consistency") && s.name != CONSISTENCY_BATCH_JOB_NAME
|
||||
})
|
||||
.filter(|s| s.name.ends_with("_consistency") && s.name != CONSISTENCY_BATCH_JOB_NAME)
|
||||
.map(|s| s.name)
|
||||
.collect();
|
||||
|
||||
|
||||
@@ -160,7 +160,10 @@ pub fn admin_routes() -> Router<Arc<AppState>> {
|
||||
.route("/jobs/{name}/cancel", post(cancel_job))
|
||||
.route("/jobs/{name}/runs", get(list_job_runs))
|
||||
.route("/jobs/{name}/runs/{id}", get(get_job_run))
|
||||
.route("/jobs/{name}/runs/{id}/findings", get(list_job_run_findings))
|
||||
.route(
|
||||
"/jobs/{name}/runs/{id}/findings",
|
||||
get(list_job_run_findings),
|
||||
)
|
||||
// Drives — admin-wide view (distinct from `/api/drives` which
|
||||
// is filtered to the caller's role grants).
|
||||
.route("/drives", get(list_all_drives))
|
||||
|
||||
Reference in New Issue
Block a user