#7719·headlamp

frontend: Jobs list displays "undefined" or wrong metric in Completions column and sorts by parallelism

Author: harshitttt077Created Sep 19, 2026Updated Sep 19, 2026
Labelskind/bug

Describe the bug

In the Jobs list view (/c/:cluster/jobs), the Completions column computes the ratio of spec.completions / spec.parallelism instead of completed pods over desired completions (status.succeeded / spec.completions), and sorting the column sorts primarily by spec.parallelism.

Code Reference

In frontend/src/components/job/List.tsx:124-134:

typescript
  function getCompletions(job: Job) {
    return `${job.spec.completions}/${job.spec.parallelism}`;
  }

  function sortByCompletions(job1: Job, job2: Job) {
    const parallelismSorted = (job1.spec.parallelism ?? 0) - (job2.spec.parallelism ?? 0);
    if (parallelismSorted === 0) {
      return (job1.spec.completions ?? 0) - (job2.spec.completions ?? 0);
    }
    return parallelismSorted;
  }

Source: kubernetes-sigs/headlamp