When a mentorship admin creates a new mentor via the admin portal, the gender flag and the mentor's chosen mentorship availability (long-term, ad-hoc, or both) are not captured/persisted. The saved record always reports isWomen: false and an empty menteeSection with no longTerm block and an empty adHoc list — so the mentor cannot be matched in either cycle.
Steps to reproduce
- Log in to the admin portal as MENTORSHIP_ADMIN.
- Go to "Create mentor".
- Fill in all mandatory fields and select one or more mentorship types.
- Submit.
- GET the new mentor via the API.
Expected response
{
"id": 6,
"fullName": "Mentor",
"email": "test@example.com",
"isWomen": true,
"menteeSection": {
"idealMentee": "Eager to learn and ask questions",
"additional": "Additional information",
"longTerm": { "numMentee": 2, "hours": 6 },
"adHoc": [
{ "month": "MAY", "hours": 4 },
{ "month": "JUNE", "hours": 2 }
]
}
}
Actual response
{
"id": 6,
"fullName": "Mentor",
"email": "test@example.com",
"isWomen": false,
"menteeSection": {
"idealMentee": "Eager to learn and ask questions",
"additional": "Additional information",
"adHoc": []
}
}
Differences vs. expected:
- isWomen always false — no form control exists to set it.
- menteeSection.longTerm missing entirely.
- menteeSection.adHoc always [].
Impact:
High. Every mentor created through the admin portal is created without a usable cycle preference and with the gender flag forced to false. They appear in the public list but are excluded by ?mentorshipTypes=AD_HOC and ?mentorshipTypes=LONG_TERM, so the Apply button on the website never enables and the mentor is effectively unmatchable.
Workaround
None in the admin UI. Records can only be corrected via direct database edits.
When a mentorship admin creates a new mentor via the admin portal, the gender flag and the mentor's chosen mentorship availability (long-term, ad-hoc, or both) are not captured/persisted. The saved record always reports isWomen: false and an empty menteeSection with no longTerm block and an empty adHoc list — so the mentor cannot be matched in either cycle.
Steps to reproduce
Expected response
Actual response
Differences vs. expected:
Impact:
High. Every mentor created through the admin portal is created without a usable cycle preference and with the gender flag forced to false. They appear in the public list but are excluded by ?mentorshipTypes=AD_HOC and ?mentorshipTypes=LONG_TERM, so the Apply button on the website never enables and the mentor is effectively unmatchable.
Workaround
None in the admin UI. Records can only be corrected via direct database edits.