Skip to content

Commit 56def5b

Browse files
ref(feedback): remove cache for categories endpoint (#97819)
1 parent d1870a7 commit 56def5b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/sentry/feedback/endpoints/organization_feedback_categories.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,15 @@ def get(self, request: Request, organization: Organization) -> Response:
141141

142142
categories_cache = cache.get(categorization_cache_key)
143143
if categories_cache:
144-
return Response(
145-
{
146-
"categories": categories_cache["categories"],
147-
"success": True,
148-
"numFeedbacksContext": categories_cache["numFeedbacksContext"],
149-
}
150-
)
144+
# TODO(vishnupsatish): the below was commented only to be able to iterate on the prompt fast. Uncomment when releasing to Sentry.
145+
# return Response(
146+
# {
147+
# "categories": categories_cache["categories"],
148+
# "success": True,
149+
# "numFeedbacksContext": categories_cache["numFeedbacksContext"],
150+
# }
151+
# )
152+
pass
151153

152154
recent_feedbacks = query_recent_feedbacks_with_ai_labels(
153155
organization_id=organization.id,

0 commit comments

Comments
 (0)