Skip to content

Fix 500 on default aaq topic selection#7289

Open
emilghittasv wants to merge 1 commit into
mozilla:mainfrom
emilghittasv:fix-500-on-default-aaq-topic-selection
Open

Fix 500 on default aaq topic selection#7289
emilghittasv wants to merge 1 commit into
mozilla:mainfrom
emilghittasv:fix-500-on-default-aaq-topic-selection

Conversation

@emilghittasv

Copy link
Copy Markdown
Collaborator

No description provided.

):
topic_id = request.GET.get("category")
if not topic_id:
return HttpResponse(status=204)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are getting a validation error that instead of the topic id which we need to retrieve it form the db (and it's an integer) we are getting an empty string. The proposed response will silence the error but it's not fixing the underlying problem

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @akatsoulas, could you please elaborate on what underlying problem you meant above? Did you mean that we need to validate that topic_id is an integer here, or that we shouldn't send a hx-request at all when the category is empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants