feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Components filter on file page does not work

Open md384 opened this issue 3 months ago • 1 comments

Describe the bug The components filter on the file page does not filter to the correct component. It is correct on the file explorer directory view and is correct on the file page when using the flag filter (so I know the component is correctly configured).

Environment (please complete the following information):

  • Chrome
  • CI

To Reproduce Steps to reproduce the behavior:

  1. Go to 'file explorer'
  2. Click on component filter and choose component and observe the coverage for a particular file
  3. Then click on the file and filter on the same component
  4. Get a different coverage result

As an example for a particular file (some_file.py),

FlagA = 75% FlagB = 100%

ComponentA - flag regex /FlagA/ ComponentB - flag regex /FlagB/

In the directory view with a filter on FlagA only - 75% In the directory view with a filter on ComponentA only - 75% in the directory view with a filter on FlagB only - 100% in the directory view with a filter on ComponentB only - 100%

On the file page for some_file.py with filter on FlagA only - 75% On the file page for some_file.py with filter on ComponentA only - 75% On the file page for some_file.py with filter on FlagB only - 100% On the file page for some_file.py with filter on ComponentB only - 75% (this is incorrect)

Expected behavior Expect the component filter on the file page to filter to the correct component.

Screenshots Difficult to give a clear screenshot since the filter dropdown covers the coverage percentage.

Additional context Add any other context about the problem here.

md384 avatar Aug 18 '25 16:08 md384