Skip to content

feat: add provisioner daemon name to provisioner jobs responses #17877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 19, 2025
Prev Previous commit
Next Next commit
ui: handle missing worker_name with fallback and hide 'View provision…
…er' button when daemon no longer exists
  • Loading branch information
ssncferreira committed May 19, 2025
commit caed3963e96b4f4c8fb76847bdf5167675eac781
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,16 @@ export const JobRow: FC<JobRowProps> = ({ job, defaultIsOpen = false }) => {
<>
<dt>Completed by provisioner:</dt>
<dd className="flex items-center gap-2">
<span>{job.worker_name}</span>
<Button size="xs" variant="outline" asChild>
<RouterLink
to={`../provisioners?${new URLSearchParams({ ids: job.worker_id })}`}
>
View provisioner
</RouterLink>
</Button>
<span>{job.worker_name || '[removed]'}</span>
{job.worker_name && (
<Button size="xs" variant="outline" asChild>
<RouterLink
to={`../provisioners?${new URLSearchParams({ ids: job.worker_id })}`}
>
View provisioner
</RouterLink>
</Button>
)}
</dd>
</>
)}
Expand Down
Loading