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
guest: Add a model field for the guest user and add guest user to populate_db. #9173
guest: Add a model field for the guest user and add guest user to populate_db. #9173
Conversation
This adds new field `is_guest` to UserProfile model and is meant for the new type of user i.e. "Guest Users". (Part of zulip#8385).
The purpose of this user is to act as a guest. (This is a preliminary step in adding the guest type of user and is a part of zulip#8385.)
f958515
to
e48d5a6
Compare
@shubhamdhama I think the test failures are related to your changes; probably a test that needs updating. |
I merged the first commit, since it still passes tests. |
@eeshangarg do you understand why |
Oh, I think I know what's happening. Adding
|
The fix is to add this hunk, which results in Polonius not being auto-subscribed to any streams:
I think that's what we want (guests should not have a random set of subscriptions like other users), but we should also add code to subscribe him specifically to a stream (probably Denmark, thematically). |
Merged that second commit as 26d2ffa |
Ahh, I wasn't aware of this, now I got what was happening here, thanks for helping (I don't think I could figure out this easily) |
Yeah, this was a pretty subtle thing; the reason I took the lead on debugging this was because it seemed from the error situation like something that was very likely to be subtle and requiring some obscure knowledge :). |
I've added a new guest user by name Polonius.
[edit] I've no idea why tests are failing now, any help is welcomed.