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

Fix bug so workshop admins who are also facilitators can see all facilitator survey results #25253

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

aoby
Copy link
Contributor

@aoby aoby commented Oct 5, 2018

and add tests

@aoby
Copy link
Contributor Author

aoby commented Oct 5, 2018

I extracted the namespace as a module in the test which indented most of the file and makes for a noisy diff. View with whitespace changes hidden for easier review:
image

@aoby
Copy link
Contributor Author

aoby commented Oct 5, 2018

@aoby aoby merged commit 259f859 into staging Oct 5, 2018
@aoby aoby deleted the fix-facilitator-survey-results-view branch October 5, 2018 04:44
@tanyaparker
Copy link
Contributor

Would this also fix it for a program manager who is also a facilitator?

@aoby
Copy link
Contributor Author

aoby commented Oct 5, 2018

Yes, and a workshop organizer. In fact that part was already done. Only workshop admin was missing.

Now, it works like this:

  1. Is the user any of: workshop admin, organizer, program manager? Show all results
  2. Is the user a facilitator? Show their results only
  3. raise an error for unexpected user type (honeybadger)

@tanyaparker
Copy link
Contributor

Yay! Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants