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

🪲 Always return empty JSON object on successful response, fixes #6160 #6161

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

confiks
Copy link
Contributor

@confiks confiks commented Feb 5, 2025

Fixes #6160, and potentially similar bugs as well.

⚠️ I changes all occurrences of '', 200 in make_response, but I only tested that join_class works as intended and #6160 is fixed. I don't know enough about the application to test the other occurrences effectively. This should be tested for the other functionality as well by a maintainer.

@confiks confiks force-pushed the return-json-on-success branch from 0cdac0c to 58e0e78 Compare February 5, 2025 12:15
@AnneliesVlaar AnneliesVlaar added the teacher-happiness Features that make teachers happier label Feb 5, 2025
Copy link
Collaborator

@boryanagoncharenko boryanagoncharenko left a comment

Choose a reason for hiding this comment

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

Thank you so much for your contribution. When we adopted make_response, we introduced a bunch of bugs caused by the string response. We addressed most of them but, unfortunately, some slipped. I tested all scenarios you changed and they all work great.

Copy link
Contributor

mergify bot commented Feb 6, 2025

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 126b753 into hedyorg:main Feb 6, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
teacher-happiness Features that make teachers happier
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

🪲 Students joining a class via link succeeds with an error message
3 participants