Skip to content

[Bug]: Issues Projects filter lists one repository once per environment (and once per checkout) #41524

Open

Description

@tyler-b4innova

What happens

On the web Issues page, Filters → Projects shows one checkbox for each environment+project pair. A repository that is a project on two paired environments appears twice ("owner/repo · Env A", "owner/repo · Env B"). A repository with two checkouts inside one environment appears twice more (the extra entries are told apart by folder path).

Unchecking one of those entries does not hide the repository. The other environments still return its issues, and since #38205 each issue URL is listed once, so the rows look unchanged. To hide a repository you have to find and uncheck every copy.

Steps

  1. Pair a second environment (as in the fix(client-runtime): issues held by two environments list once #38205 repro). Add a project for the same GitHub repository to both.
  2. Open /issues → Filters → Projects. The repository is listed twice, suffixed with each environment's label.
  3. Uncheck one of the two. The repository's issues are still listed.

Version: 0.1.11 (desktop). It's the same on main today.

Where

  • apps/web/src/components/issue/issuesSearch.logic.ts, issueFilterProjects: sets repositoryIdentity: null before grouping, so every project is its own entry, even inside one environment.
  • packages/client-runtime/src/pullRequestProjectFilter.ts, pullRequestFilterProjects: the grouping key starts with project.environmentId, so even with the repository kept, there is one entry per environment.
  • Hidden choices are saved and sent as [environmentId, projectId] pairs (hideProjects, then excludeProjectIds per environment in issueListTargets). A grouped entry would have to expand to every member pair.

Expected

One entry per repository across environments, as #26281 proposes for the mobile PR filter, and as #38205 already does for issue rows. Unchecking it hides that repository everywhere. Projects without a repository (scratch projects or Linear-only bindings) could stay as single per-project entries. The comment on issueFilterProjects says it keeps them separate so each project can read a different Linear team.

Activity

  1. four1er commented on Nov 23, 2026

    @four1er

    Reproducing this on current main and preparing a fix PR — the Projects filter lists the same repository once per environment/checkout and unchecking one copy does not hide its issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions