Skip to content
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

Only group_discard chat rooms if user is authenticated during disconnect. #5

Merged
merged 5 commits into from Jun 7, 2022

Conversation

gibsonbailey
Copy link
Contributor

@ mention of reviewers

@ckcollab

A brief description of the purpose of the changes contained in this PR.

These errors pop up everywhere we use this if a user opens a connection to the websocket, but fails to authenticate. Overflows the logging buffer on Heroku.

image

Misc. comments

We might look more into the future why these users are unauthenticated, but this django app should handle the case that they fail to authenticate without killing a server worker.

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • Ready to merge

Copy link
Contributor

@ckcollab ckcollab left a comment

Choose a reason for hiding this comment

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

looks beautiful to me, thanks for improving this. we could also change the user profile serializer to not reference chat rooms/such, if user is anon?

@gibsonbailey gibsonbailey merged commit f75db37 into master Jun 7, 2022
@gibsonbailey gibsonbailey deleted the fix-disconnect-error-for-unauthed-user branch June 7, 2022 00:52
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.

None yet

2 participants