-
-
Notifications
You must be signed in to change notification settings - Fork 199
Record organisers’ overrides #2004
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
Record organisers’ overrides #2004
Conversation
9fb64a0
to
43dec15
Compare
Comparing with the right class will make sure the button that should be there will actually appear.
Students need a tutorial for this, but it makes no sense if an organiser is manually adding a person.
This will allow us to record the ID of the last organiser that overrode a WorkshopInvite. I gave it a thought about this and tried a few different approaches, but this seemed the best compromise. I’ve looked into keeping track of every change through a few gems, but this would only grow the DB without much advantage, I believe. I don’t think we need (at the moment, at least) a detailed record of all the changes. At its core, I’m just interested in knowing if a WorkshopInvitation has been “tampered with”. This should help us with that.
86a71cf
to
6563a13
Compare
6563a13
to
4b42153
Compare
Now the admin page of a workshop will display a different icon and message if an invite has been manually edited by an organiser.
This action no longer triggers an error, so let’s update the test.
4b42153
to
4bfb17e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gnclmorais code looks good overall, noticed two small typos. Going to check the changes out and test locally before I approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gnclmorais I've reviewed this locally and all looks good! Once those two typos are fixed this is good to ship 🚢
Thanks for fixing the typos! Sorry it took me a while to get back to this… |
As an organiser, I’ve ran into situations where I believe an invite or two has been edited by another organiser, but I don’t have a way to know. I’ve also had a student or two telling me they’ve received the attendance email, but their names are not on the list.
Hopefully, this PR will help with it. Now, whenever an organiser adds/removes a person from a workshop, we record their ID so we can connect that editing with their action. This is not the most exact method, but it saves us from recording every single change or creating a table just for this.
Bonus: this PR also addresses a few other things I found:
better_errors
gem to work its magic