feedback icon indicating copy to clipboard operation
feedback copied to clipboard

[Self-hosted] Flags filtering is broken in the Tree view/Code tree/File list, when flag_regexes is added in component_management

Open nikosatwork opened this issue 10 months ago • 12 comments

Describe the bug [Self-hosted] Flags filtering is broken in the Tree view/Code tree/File list, when flag_regexes is added in component_management entries

Environment (please complete the following information):

  • Browser: All
  • System: CI, UI
  • Version: 25.1.16, 25.1.3, 25.3.3

To Reproduce Steps to reproduce the behavior:

  1. Setup a component(s) in component_management in codecov.yml, using both paths and flag_regexes, or just flag_regexes
  2. Upload a new report that targets the component, as expected
  3. Having selected the component in the Codecov dashboard > in Tree view, the coverage percentage is correct, based on the flag_regex and path ~union~ intersection.
  4. Still in the Tree view and having selected any flag in the Flags dropdown, the coverage percentage is wrong, and represents the total coverage, regardless the Component filter.

Expected behavior Having selected a flag in the Flags dropdown, the coverage percentage is calculated based on the ~union~ intersection of the path and flag_regex in component_management, or just the flag_regex when the path is not specified, and the flag(s) selected.

nikosatwork avatar Jan 20 '25 12:01 nikosatwork