Your work project count is incorrect

Summary

The count of projects includes archived projects in the overview page, but when we go to the tab we see a lot less projects because of how many are archived.

Steps to reproduce

  1. Go to the https://gitlab.com/dashboard/projects/contributed
  2. Observe "Personal" and "Member" project count
  3. Click on Personal and/or member page
  4. Observe updated project count

Example Project

/

What is the current bug behavior?

The count includes archived projects when it shouldn't.

What is the expected correct behavior?

The count of projects is correct.

Relevant logs and/or screenshots

Incorrectcount

Observe 17 becoming 7 when we switch to the tab (because 10 projects are archived).

Output of checks

This bug happens on GitLab.com - GitLab Enterprise Edition 18.1.0-pre c9e567e5

Possible fixes

This appears to originate from - https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/projects/your_work/graphql/queries/project_counts.query.graphql it seems that we are not passing archived: EXCLUDE in the member and personal count request.

Patch release information for backports

If the bug fix needs to be backported in a patch release to a version under the maintenance policy, please follow the steps on the patch release runbook for GitLab engineers.

Refer to the internal "Release Information" dashboard for information about the next patch release, including the targeted versions, expected release date, and current status.

High-severity bug remediation

To remediate high-severity issues requiring an internal release for single-tenant SaaS instances, refer to the internal release process for engineers.

Edited by Filip Aleksic