Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
E2115: Mentor Management #1957
E2115: Mentor Management #1957
Changes from all commits
3f3b9df
399e0ee
9d47e7d
04854dd
cb4127b
126249b
b3e6dae
914441d
9378d35
af6e907
049a16c
6e593fc
9350eaa
6cee6ac
712f5e8
c85fa4f
78e1157
0fd80cd
f34441f
5917222
e72e4ae
0903436
c614020
e5f82fd
26cabfb
b003d0f
3e7238d
5380b71
91c24d5
e0ffb06
8086994
6262124
fa5125d
3254b69
6b7799d
6644181
f4c3cd5
7235ab1
e1a1a51
cf567f7
b994fa6
a0de1b0
717dba1
9e1bb2a
7911544
57aed24
e16233a
463a51a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
why arent you using the def self.user_a_mentor?(user) function here?
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.
Fair point!
user_a_mentor?
checks whether there's a corresponding entry inParticipant
for a givenUser
with thementor
duty. So we could equivalently do:An advantage I can think of for the way it exists currently is that we avoid a bunch of database calls.
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.
i think this looks cleaner.