-
Notifications
You must be signed in to change notification settings - Fork 8
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
Invitation Code Bug #170
Comments
@AliSchlereth could you help explain this one too? Why is inviting to a closed cohort invalid? |
@srt32 can you remind me what the cohort statuses can be? If I recall, the status is marked "closed" after the cohort has completed Turing. It would not really make sense to add new Students to a cohort that's finished right? We want to add new students to active cohorts. Alumni can be members of completed cohorts. |
Cohorts now live in Enroll and can be open or closed - https://github.com/turingschool/enroll/blob/master/app/models/cohort.rb#L13 You're right it doesn't make business process sense to invite someone to a closed cohort but I'm not sure why we'd need to encode that rule. Have we had issues in the past? |
Maybe @AliSchlereth has a better reason, I vaguely remember the customer (Jeff ) asking for better feedback/protection when people are invited. |
@srt32 I believe I wrote invalid in the case that someone had selected the wrong cohort or role. I believe currently if you invite someone as student to a closed cohort they get an error on login. I would want to be able to invite someone with a role of mentor and a closed cohort since alumni pre 1608 are not in Census but would likely want to be able to group all students past and present by cohort. I think it was intended that Mentorship would use Census and therefore we need mentor functionality. |
Is a work around to this issue to invite mentor users without a cohort and have them assign themselves a cohort by editing their profile once they've logged in (is that possible)? Another option, since invites happen by admins, perhaps we should give them the power to invite to a closed cohort since they (probably) know what they are doing? |
I can't remember more of the details right now, I'd have to go back and re-create. I believe it broke when someone who was invited to a closed cohort tried to log in. I can't remember what broke, but it might be as simple as adjusting the role someone from a closed cohort would get or updating permissions. I might have some time tomorrow to try to reproduce this bug and see what the logs say. It might help us figure out how best to solve it. |
As and admin
When I invite a new user as a Student
And the cohort is 'finished'
Then the invitation is invalid
Then I see a red flash message telling me why the invitation is invalid.
The text was updated successfully, but these errors were encountered: