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 : apparent discrepancy in the issues API, reassigning the ticket to BE

David Cho-Lerat December 7, 2022 at 1:59 PM

Mathieu Suen December 6, 2022 at 3:47 PM

Bug report from community post

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Components

Labels

Edition

Community

Goals

None

Due date

Priority

Sentry

Created December 6, 2022 at 2:10 PM
Updated December 3, 2024 at 8:12 AM
Resolved January 12, 2023 at 11:01 AM