-
Notifications
You must be signed in to change notification settings - Fork 42
Feat: Validate minimum of 2 hours/month for long-term mentor #479
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
Feat: Validate minimum of 2 hours/month for long-term mentor #479
Conversation
src/test/java/com/wcc/platform/service/MentorshipServiceTest.java
Outdated
Show resolved
Hide resolved
dricazenck
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.
🚀
For long-term they don't submit months. So no need for check for the the months. The months are for ad-hoc sessions, usually long-term mentors should be available from the months of the cycle: April/November. But also flexible to discuss the availability with the mentee ;) |
|
I notice a gap, in the mentor registration design, which is the number of mentees the mentor can accept in the cycle long-term. For example: "menteeSection": {
"numMentee": 3,
"mentorshipType": ["Long-Term", "Ad-Hoc" ],
"availability": [ { "month": "APRIL", "hours": 2 }, {"month": "MAY", "hours": 4 } , {"month": "JULY", "hours": 5 }],
"idealMentee": "string",
"additional": "string"
}The attribute and This case for example would be invalid, because the mentor says can take 3 mentees, but he will be available for only 1 hour. "menteeSection": {
"numMentee": 3,
"mentorshipType": ["Long-Term", "Ad-Hoc" ],
"availability": [ { "month": "APRIL", "hours": 1 }, {"month": "MAY", "hours": 3 } , {"month": "JULY", "hours": 1 }],
}Or actually the best way would be to separated availability by Mentorship type: "menteeSection": {
"idealMentee": "string",
"additional": "string",
"LongTerm": { "numMentee": 2, "hours": 8 }, // Min 4
"AdHoc": [ { "month": "APRIL", "hours": 1 }, {"month": "MAY", "hours": 3 } , {"month": "JULY", "hours": 1 }],
}That will require migration and make the adjustments into the DTO and the queries, but I think would be a great improvement and give more context to mentorship team to know about the availability of the mentor, and also for the mentor, which will knows about the expectations in time and mentee. Could you create this issue and if you are up to the challenge to pickup next? 🙈 |
|
That sounds like a very good plan! Will create the issue tomorrow and yes, happy to pick it up next! 😄 |
Description
validateMentorCommitmentmethod that checks no month is < 2 hours for long term mentors.createandupdatemethod.Related Issue
Please link to the issue here
Closes #320
Change Type
Screenshots
Return 2xx for long term mentor with availability >= 2 hours:

Return 2xx for ad-hoc mentor with availability < 2 hours:

Return 4xx for long-term mentor with availability < 2 hours:

Pull request checklist
Please check if your PR fulfills the following requirements: