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

!voice random picker assigns members without Yes Theory role #393

Closed
mvarendorff opened this issue Aug 5, 2021 · 3 comments
Closed

!voice random picker assigns members without Yes Theory role #393

mvarendorff opened this issue Aug 5, 2021 · 3 comments
Labels
bug Something isn't working needs arch input Needs input from the architects regarding specifics needs infos This issue needs more information to define what the issue is.

Comments

@mvarendorff
Copy link
Member

The random assignment might assign someone who doesn't have the Yes Theory role so they cannot manipulate the room.

There are two ways of approaching this:

  • Narrowing down the list of members who may randomly be picked to only those with the role
  • Assigning the role to the randomly picked member

Each comes with its pros and cons; narrowing down the list might leave us with noone which would mean that room must be closed but would avoid more complex logic to cover that edge case; assigning the role poses the same questions as #200.

@mvarendorff mvarendorff added bug Something isn't working needs arch input Needs input from the architects regarding specifics needs infos This issue needs more information to define what the issue is. labels Aug 5, 2021
@hasanlatch007
Copy link
Contributor

Why not use both ideas? If it comes to None then we could assign the role?

@joshtrivedi
Copy link
Contributor

Check if the person picked for the random assignment has the role, if not, just give it to them, because they were already in a call hence yes theory role condition is satisfied.

  • however this may be exploited as a loophole and people would start joining 2 person calls and leave from one to get the role, so ethical hotfix can be checking if the random person has the yes theory role, if not, shuffle again.
  • the problem with the above fix would be is the call might have to get dropped if no one with the yes theory role is found.

@mvarendorff
Copy link
Member Author

Yeah, currently the room is just dropped. From what I know, this hasn't happened in the two years since I wrote the OP (at least nobody complained) so don't fix what nobody knows is broken 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs arch input Needs input from the architects regarding specifics needs infos This issue needs more information to define what the issue is.
Projects
None yet
Development

No branches or pull requests

3 participants