-
Notifications
You must be signed in to change notification settings - Fork 9
GitHub Login test #444
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
GitHub Login test #444
Conversation
Signed-off-by: Amol Sontakke <[email protected]>
Signed-off-by: Amol Sontakke <[email protected]>
lukaszgryglicki
left a comment
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.
/lgtm
| }, | ||
| { | ||
| path: 'cla/project/:projectId/user/:userId', | ||
| path: 'cla/project/:projectId', |
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.
Please do not remove the old route which is our default route for almost all flows.
You should add a new route (without uuid) instead and for that route you should call /v2/user-from-session API and when you get user UUID from that API - redirect back to "old" route with that user UUID just returned from api, so:
On cla/project/:projectId call /v2/user-from-session to get user. Get this user's UUID and route to cla/project/:projectId/user/:userId. cc @thakurveerendras @amolsontakke3576 @mlehotskylf
| import { ClaContributorService } from 'src/app/core/services/cla-contributor.service'; | ||
| import { ProjectModel } from 'src/app/core/models/project'; | ||
| import { UserModel } from 'src/app/core/models/user'; | ||
| import { UserFromSessionModel, UserFromTokenModel } from 'src/app/core/models/user'; |
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.
Similar here - I think you need to add two new models but don't remove the already exiting one...
No description provided.