External issue rule facet does not print on issues page
Description
When issues are imported from an external file, the rules facet doesn't properly display the rule name.
Observe behavior:
Expected behavior
We should print the key of the rule even when the facet is not selected.
Solution
For ad-hoc rule, we are supposed to replace the name or the rule with its ad-hoc name only if the ad-hoc name is specified. Currently, we replace it all the time, leading to blank name if ad-hoc name is not specified. we need to fix that and align with what is done in `/api/rules/show `
Selected/Highlighted rule does not have the same logic than the other rules regarding name/ad-hoc name replacement. we need to align that
Production Notes
None
Attachments
1
Activity
Show:
David Cho-Lerat December 7, 2022 at 4:08 PM
discussed with @Léo Geoffroy : apparent discrepancy in the issues API, reassigning the ticket to BE
When issues are imported from an external file, the rules facet doesn't properly display the rule name.
Observe behavior:
Expected behavior
We should print the key of the rule even when the facet is not selected.
Solution
For ad-hoc rule, we are supposed to replace the name or the rule with its ad-hoc name only if the ad-hoc name is specified. Currently, we replace it all the time, leading to blank name if ad-hoc name is not specified. we need to fix that and align with what is done in `/api/rules/show `
Selected/Highlighted rule does not have the same logic than the other rules regarding name/ad-hoc name replacement. we need to align that