feedback
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
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:
- Setup a component(s) in
component_managementincodecov.yml, using bothpathsandflag_regexes, or justflag_regexes - Upload a new report that targets the component, as expected
- 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.
- 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.