Skip to content

Commit 927b676

Browse files
committed
Line length
1 parent 6eb2260 commit 927b676

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/sentry/feedback/usecases/save_event_feedback.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414

1515

1616
def save_event_feedback(event_data: Mapping[str, Any], project_id: int):
17-
"""Saves feedback given data in an event format. This function should only be called by the new feedback consumer's ingest strategy, to process feedback envelopes (feedback v2).
18-
It is currently instrumented as a task in sentry.tasks.store.
17+
"""Saves feedback given data in an event format. This function should only
18+
be called by the new feedback consumer's ingest strategy, to process
19+
feedback envelopes (feedback v2). It is currently instrumented as a task in
20+
sentry.tasks.store.
1921
20-
If the save is successful and the `associated_event_id` field is present, this will
21-
also save a UserReport in Postgres (shim to v1). This is to allow queries by the group_id relation, which we don't have in clickhouse.
22+
If the save is successful and the `associated_event_id` field is present,
23+
this will also save a UserReport in Postgres (shim to v1). This is to allow
24+
queries by the group_id relation, which we don't have in clickhouse.
2225
"""
2326
if not isinstance(event_data, dict):
2427
event_data = dict(event_data)
@@ -32,7 +35,9 @@ def save_event_feedback(event_data: Mapping[str, Any], project_id: int):
3235

3336
try:
3437
# Shim to UserReport
35-
# TODO: this logic should be extracted to a shim_to_userreport function which returns a report dict. After that this function can be removed and the store task can directly call feedback ingest functions.
38+
# TODO: this logic should be extracted to a shim_to_userreport function
39+
# which returns a report dict. After that this function can be removed
40+
# and the store task can directly call feedback ingest functions.
3641
feedback_context = fixed_event_data["contexts"]["feedback"]
3742
associated_event_id = feedback_context.get("associated_event_id")
3843

0 commit comments

Comments
 (0)