Wrong tab count for jobs when switching tabs

The tab count for jobs does not match the filtered elements in a table.

Below, you'll find components/views that display jobs (ci_builds) in a table. The table comes equipped with a filter that allows you to sort jobs by state, such as all failed jobs. Additionally, there is a tab that shows a count of the number of jobs listed in the table. Ideally, when you apply the filter or switch the tab, the count should adjust accordingly.

However, there is a potential scenario where the number of jobs after filtering and two tab switches do not match with the count displayed in the tab, resulting in a discrepancy.

Who is affected?

file location
admin_jobs_table_app.vue Admin > CI/CD > Jobs
jobs_table_app.vue any project > CI/CD > Jobs

job_count_wron_2

Edited by Andreas Deicha