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

[Task] User roles #12

Open
skrix opened this issue Aug 26, 2019 · 2 comments
Open

[Task] User roles #12

skrix opened this issue Aug 26, 2019 · 2 comments

Comments

@skrix
Copy link
Contributor

skrix commented Aug 26, 2019

Brief: User should be able to choose a role mentor/mentee
Description:
First Scenario:
- User sign-in/up via GitHub account
- User clicks on the profile settings icon
- User redirected to settings page with select role dropdown on the top of it
- User clicks on the dropdown and sees the options mentor/mentee below it
- User choose a role which he wants
P.S. For roles recommend to use rollify gem

Second Scenario:
- User go to the sign-up page and see two buttons here "Sign up as mentor" and "Sign up as mentee"
- User clicks on a button which he/she choose
- User sign-up via GitHub account
- User redirected to the home page
- Role of this user is already set
P.S. For this kind of flow use STI with type for devise models and custom sign-up devise controller

@andrzejkrzywda
Copy link
Member

@skrix Thanks for the description!

I think we will ship live even without this working (see the MVP milestone), but just after that I'd be happy to discuss the details of your suggestions (overall looks fine!).

@oxanayoxana
Copy link
Contributor

This is kind of fixed in these two ones https://github.com/arkency/find-open-source-mentor/pulls

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

No branches or pull requests

3 participants