-
Notifications
You must be signed in to change notification settings - Fork 80
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
Development: Create registration API #24
Comments
@mtreacy002 please let me know if you have questions about this. cc: @isabelcosta |
Ok. Will work on it, @ramitsawhney27. But should I open a PR first to merge the code for the database schema and mock data I've done on issue#19? |
@mtreacy002 you will see a lot of issues like this coming up, but before this one it comes the one you already created #19 :) This is for the coding phase which has not started yet ;) |
I see.... 😂. I've just opened my 1st PR to issue#19 😊. Hopefully that's ok (starting before the official coding phase starts 😀) |
All good @mtreacy002 :P |
Update: Environment: Now I'm in the process of creating BIT API using user_extension DAO and adding model to namespace. I come across first issue. Can anyone help me with suggestion on how to get around this? One of the solution I can think of atm is to have BIT POST /register taking the exact same input as per MS POST /register. Then when user first login, the first page they would see is the user's update profile page that they must fill in before they can go to their member homepage (since the values on the 2nd form (additional information) will determine their navbar type: with organization or without and time offset for dates related data). Please feel free to share your thoughts. |
According to my understanding, you want to register a user to BIT. Questions: When a user register to BIT, does it mean there are registered to MS too? For a user registered in MS, when that person logs in, does he/she have to register (new profile) to BIT or does he/she update BIT profile based on the pre-existing MS profile? |
The ideal answer is yes, user have one data for both BIT and MS. But it's not achievable in this GSoC. For now, the BIT user will login using the MS schema, which at initial stage of GSoC is going to be kept inside MS db. But at the later stage, we want MS and BIT to have the same DB end (one DB). Does this answer your question? |
So for GSoc, we have two tables, one for BIT and one for MS. And post GSoC we make one table that can be the source of truth for all users? Is that correct? |
But if we make it as the option I mentioned in the previous post
then, I think we'll cover both new or existing MS user (coz there will be no difference coz they both will be able to access BIT) |
No, actually the tables are just one, but we have 2 schemas, BIT and MS.
and in BIT we have
|
Sorry... I'll explain to you further tomorrow. I need to get to sleep now, almost 2am here 😂 |
Sure, please take care @mtreacy002 |
Please take of validations at the API level, details of the validations are in here - anitab-org/bridge-in-tech-web#8 |
@mtreacy002 your above suggestion seems fine. Please go ahead with that. |
Can I confirm this. You mean we should do the validation on the Frontend UI, right? for backend, it needs to be done from the mentorship-system backend (need to open an issue and handle this backend validation there). Coz BIT is only using the MS API, but cannot alter the backend code. We can try to do it at BIT API level, but then it would still allow someone to bypass entering directly to MS API. |
Description
As a student,
I need have a basic setup, create and populate data models classes and user registration functionality
so that users able to use BIT.
Mocks
NA
Acceptance Criteria
Create basic setup and an API for user registration for the BIT backend. The API would create a new user, and link it with the relevant MS user (if one exists).
Alternatives for testing the API: CuRL/Python requests
Update [Required]
Enhancement to Update [Optional]
Definition of Done
Estimation
1 week
The text was updated successfully, but these errors were encountered: