mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
desktop: Refresh CI status on job updates
Every status chip of a repository shares one list of its jobs, which refreshes when a job changes, at most every few seconds, since listing them scans every job of the repository.
This commit is contained in:
@@ -1745,14 +1745,10 @@ async fn delete_patch_handler(
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct JobsBody {
|
||||
pub rid: identity::RepoId,
|
||||
pub sha: git::Oid,
|
||||
}
|
||||
|
||||
async fn jobs_handler(
|
||||
Ctx(ctx): Ctx,
|
||||
Json(JobsBody { rid, sha }): Json<JobsBody>,
|
||||
) -> impl IntoResponse {
|
||||
let jobs = ctx.list_jobs(rid, sha)?;
|
||||
async fn jobs_handler(Ctx(ctx): Ctx, Json(JobsBody { rid }): Json<JobsBody>) -> impl IntoResponse {
|
||||
let jobs = ctx.list_jobs(rid)?;
|
||||
|
||||
Ok::<_, Error>(Json(jobs))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user