# Implementing the manage mentees functionality in ScholarX

**URL:** <https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202>\
**Category:** ScholarX\
**Created:** [November 2, 2020, 9:49am UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202 "2020-11-02T09:49:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gimhan\_minion](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gimhan_minion/32/109_2.png) [@Gimhan\_minion](https://sef.discourse.group/u/Gimhan_minion)\
**Post date:** [November 2, 2020, 9:49am UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/1 "2020-11-02T09:49:17Z")

</div>

Hi all,  
I was assigned to manage the mentees of a mentor. So basically there are 3 states that this view depends on.

1. Mentee Apply Period
2. Mentee Verification Period
3. Ongoing Program

During the Mentee Apply Period, the mentor will be able to see all the mentees who applied for him/her.  
But mentors can’t approve or reject in this stage. So according to the wireframes, it looks like this.

 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/85d56aca6044c03e3b200394e43b51a51f8170f7.png)

The next stage would be the Mentee Verification Period. During this stage, the mentor can approve or reject the mentees. According to the wireframe, the view would be something similar to this.

 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/798f09d5da212690ea487ce12886027d8f3b4e8b.png)

The last state is the Ongoing stage. In this stage, mentors can view his approved mentees. But there are no action buttons for the mentor,

 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/7bdca7126073db7bf54252058942d21700941f01.png)

I’ll start working on this and meanwhile update this thread regarding this.

---

<div class="post-metadata">

**Author:** ![jaye](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/jaye/32/810_2.png) [@jaye](https://sef.discourse.group/u/jaye)\
**Post date:** [November 2, 2020, 3:32pm UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/2 "2020-11-02T15:32:39Z")

</div>

Hi @Gimhan_minion. Thanks for creating the thread! 🤗

Finetune the thread with the following suggestions,

- The requirement is not only to load the mentees. Listing the mentees will be a subtask of the requirement.
- Explain the whole scenario, non-technically as possible. (You have to consider about the lifecycle states as well)
- Later-on or in the same thread, you can devide the task to sub tasks
- There should be a link to view the mentee’s application
- Change the title with actually what you are going to do. ex: You are not going to Manage Mentees of a mentor; but to implement that UI functionality. You can use something like, “Implementing the manage mentees functionality in ScholarX” (note the “ScholarX” part)

cc: [@EngTeam](https://sef.discourse.group/groups/engteam)

---

<div class="post-metadata">

**Author:** ![Gimhan\_minion](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gimhan_minion/32/109_2.png) [@Gimhan\_minion](https://sef.discourse.group/u/Gimhan_minion)\
**Post date:** [November 10, 2020, 12:47pm UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/3 "2020-11-10T12:47:05Z")

</div>

I created a draft PR for this requirement

> <https://github.com/sef-global/scholarx-frontend/pull/48>

But there is an issue with the API (GET mentees of a specific mentor). As soon as I’ll make the necessary changes.

Thank you!

---

<div class="post-metadata">

**Author:** ![jaye](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/jaye/32/810_2.png) [@jaye](https://sef.discourse.group/u/jaye)\
**Post date:** [November 10, 2020, 6:41pm UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/4 "2020-11-10T18:41:14Z")

</div>

Thanks for the update @Gimhan_minion!  
Is that issue has been resolved?

Btw,  
Update the thread with the requested changes. Some have not been fixed yet.

> [@jaye](#):
>
> Finetune the thread with the following suggestions,
> 
> - The requirement is not only to load the mentees. Listing the mentees will be a subtask of the requirement.
> - Explain the whole scenario, non-technically as possible. (You have to consider about the lifecycle states as well)
> - Later-on or in the same thread, you can devide the task to sub tasks
> - There should be a link to view the mentee’s application

---

<div class="post-metadata">

**Author:** ![Gimhan\_minion](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gimhan_minion/32/109_2.png) [@Gimhan\_minion](https://sef.discourse.group/u/Gimhan_minion)\
**Post date:** [November 16, 2020, 7:40am UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/5 "2020-11-16T07:40:37Z")

</div>

> <https://github.com/sef-global/scholarx-frontend/pull/51>

I created a pull request for the above functionality. But couldn’t figure out the issue in APPROVE and REJECT buttons. The PUT requests don’t seem to work with postman either. can you please look into this too. @piumal1999 🤗

And according to the [API doc](https://docs.google.com/document/d/1pUfcvqtR9I9YqPe79jGm8j8MCWp3Yvr2RwTaOHRSKD8/edit?usp=sharing) a mentor can only approve or reject a mentee in `PENDING` state. But shouldn’t he be able to reject already `APPROVED` mentor?

---

<div class="post-metadata">

**Author:** ![jaye](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/jaye/32/810_2.png) [@jaye](https://sef.discourse.group/u/jaye)\
**Post date:** [November 16, 2020, 10:25am UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/6 "2020-11-16T10:25:27Z")

</div>

Thanks for the update @Gimhan_minion. Yes, you are correct; It should allow rejecting an already approved mentor and vise versa. @piumal1999 @YohanAvishke please fix it. This is applicable to the mentors too.

@Gimhan_minion Could you please add some screenshots to the thread?

---

<div class="post-metadata">

**Author:** ![Gimhan\_minion](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gimhan_minion/32/109_2.png) [@Gimhan\_minion](https://sef.discourse.group/u/Gimhan_minion)\
**Post date:** [November 16, 2020, 7:29pm UTC](https://sef.discourse.group/t/implementing-the-manage-mentees-functionality-in-scholarx/202/7 "2020-11-16T19:29:31Z")

</div>

![Screencast from 11-17-2020 12_40_56 AM](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/456288aa1031efdaf71eba68b5b237be44079568.gif)

Here’s a screen recording instead of screenshots. Hope it’ll be easier to understand 😋 @jaye
