Skip to content

Commit

Permalink
feat: display built by worker id
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 15, 2024
1 parent f1d3437 commit 86a59dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/pages/jobs/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
</router-link>
<br/>
</div>
<div v-if="job.built_by_worker_id !== null && job.built_by_worker_id !== undefined">
Built by worker #
<router-link :to="{ path: `/workers/${job.built_by_worker_id}` }">
{{ job.built_by_worker_id }}
</router-link>
<br/>
</div>
</v-card-text>
</v-card>
</v-container>
Expand Down Expand Up @@ -80,6 +87,7 @@
error_message: string;
elapsed_secs: number;
assigned_worker_id: number;
built_by_worker_id: number;
git_branch: string;
git_sha: string;
github_pr: number;
Expand Down
3 changes: 3 additions & 0 deletions server/src/routes/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ pub struct JobInfoResponse {
error_message: Option<String>,
elapsed_secs: Option<i64>,
assigned_worker_id: Option<i32>,
built_by_worker_id: Option<i32>,

// from pipeline
git_branch: String,
Expand Down Expand Up @@ -152,6 +153,8 @@ pub async fn job_info(
error_message: job.error_message,
elapsed_secs: job.elapsed_secs,
assigned_worker_id: job.assigned_worker_id,
built_by_worker_id: job.built_by_worker_id,

// from pipeline
git_branch: pipeline.git_branch,
git_sha: pipeline.git_sha,
Expand Down

0 comments on commit 86a59dc

Please sign in to comment.