Skip to content

[Bug]: Tags filter shows presence and count of all tags, including from entries filtered out by other filters #32413

@mrginglymus

Description

@mrginglymus

Describe the bug

If a user has an addon that hides certain index entries, tags of those entries will still be included in the tag filter.

This is a mild annoyance at best, but far from ideal if you are trying to use filters to reduce clutter.

In order for this to work, we'd need an API to return the filtered index excluding the filter for the querying addon. I haven't dived into the code too much, so I can't see whether filtering is always done on the fly or stored on filter/index change.

Reproduction link

https://stackblitz.com/edit/github-1hi44lah?file=src%2Fstories%2FButton.stories.ts,.storybook%2Fmanager.ts&preset=node

Reproduction steps

  • Go to link above
  • See that there is a tag called 'secret'
  • Note that when filtering by the 'secret' tag, which claims to have one associated entry, none are shown

System

-

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions