-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(feedback): add a tag for whether spam detection was applied #97452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -380,6 +380,8 @@ def create_feedback_issue( | |||||||||||
if event_fixed.get("release"): | ||||||||||||
event_fixed["tags"]["release"] = event_fixed["release"] | ||||||||||||
|
||||||||||||
event_fixed["tags"]["has_spam_filter"] = "true" if is_message_spam is not None else "false" | ||||||||||||
|
||||||||||||
Comment on lines
+383
to
+384
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be clear, the sentry/src/sentry/feedback/usecases/ingest/create_feedback.py Lines 70 to 74 in ccd6841
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tbh, i think we could do better if we unconditionally recorded whether spam detection was even executed. Projects have a setting where that can be disabled, so for each feedback we could say "spam detected: disabled" OR "spam detection: enabled, is_spam: Nope" and put the pair into context, instead of tags |
||||||||||||
# make sure event data is valid for issue platform | ||||||||||||
validate_issue_platform_event_schema(event_fixed) | ||||||||||||
|
||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please prefix sentry tags with
sentry.