-
Notifications
You must be signed in to change notification settings - Fork 11
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
Create DAO and New Endpoints for New Program Mentorship Relationship #19
Comments
Now we are using Program.end_date as end_date_datetime (See line 17 of this gist) instead of taking the end date from the mentor itself. |
@decon-harsh , can you please follow the issue template in particular the first two sections ("Is your feature request related to a problem?" and "Describe the solution you'd like")? The other 2 sections of the template can be optional.
We have to remember the difference in the BIT and MS mentorship relation:
I suggest to keep mentorship_relation.py DAO untouched so that Mentorship System can function as intended independent of BIT. You just need to create a separate DAO "mentoring_program_relation.py" for BIT call that will take the Program.end_date as the end_date (ignoring the max and min time constraint for mentoring relation of Mentorship System). Does this make sense? PS: please create a separate file for this BIT call under app/api/resources and app/api/model for clarity. This way developer can see a different section on Swagger UI if they want to check API endpoints relevant to BIT on MS backend. |
Yes I am creating a new DAO and for this I copied the skeleton code of normal create request method and then modified things. Can I ask one more thing can a program send request to mentee first and then mentor? And Can Mentee send a request to program first? |
@decon-harsh , the program rep can send the request to user regardless of their role , so it can be either to mentor first then mentee, or to mentee first then mentor. The 1st scenario in the first gist is an example program send request to mentor first. But the logic should allow either of them to be first.
yes, the same applies here, the logic should allow either of mentor or mentee to apply to program first. Since this is quite a big issue, would you like me to divide this task into 2 subtasks, one for when program send request to a mentor/mentee, the other task can be for when a mentor/mentee send request to a program. Because either ways, you would have to create a separate API endpoint for each one of these tasks. |
@mtreacy002 no i am good , as this is a big task , i might be troubling you with some more questions. 😁 , bear me please 🙏 I am quite excited to solve this issue. Update: Almost done (Program sends request to mentor or vice versa) |
That's ok, I'm excited myself to see how this will unfold. Ask me anything anytime, I would be happy to brainstorm with you 😉. |
@mtreacy002 Update: Currently made a DAO and two endpoints(one to send initial request and one to accept it ), email logics. For now ,
Database instance gets created, following the gist. Then mentor/mentee/org_rep_user can accept it. Moreover, as this is a cross project issue I am trying to minimize the code spread(i.e making more endpoints or DAO) Now I will create an endpoint that will take mentorship_relation id (as a parameter) and mentor/mentee_id (through request body) and then extend the relation (the second part). I am looking forward to complete this in a day or two. |
Thanks for the update, @decon-harsh 👍
Please make sure to keep BIT relevant task on BIT backend side (like this next one to create the mentorship_relation_extension instance from bitschema should be done through adding BIT DAO not MS DAO).
take your time, just keep me updated on your approach just like what you've done here 👍. |
PS: to test the first flow as I described above, you need to use the existing issue # 161 with PR # 185 to create the relevant logic. We will test this feature (sending initial request for mentoring program relation) by running this PR branch as MS backend server and the relevant BIT backend PR branch as BIT backend server. |
@mtreacy002 I will start working on the BIT part asap! |
Is your feature request related to a problem? Please describe.
Create DAO and New Endpoint so that a mentorship relationship can be created b/w Program , Mentor and Mentee.
Describe the solution
I will create a DAO and new endpoints, that will allow creating a mentorship relation b/w Program, Mentor & Mentee.
Following this gist1 & gist2
The text was updated successfully, but these errors were encountered: