Skip to content
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

Changing user/me route to include all home info #165

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YashRavipati1
Copy link
Contributor

Tracking Info

Resolves #163

Changes

What changes did you make?

Added a new route (user/me) to get all of the necessary info for the user's home page.

Testing

How did you confirm your changes worked?

I used postman to ensure that the route was working for both a mentor and mentee user.

Confirmation of Change

Upload a screenshot, if possible. Otherwise, please provide instructions on how to see the change.

Mentor:
Screenshot 2023-10-17 at 1 00 29 PM

Mentee:
Screenshot 2023-10-17 at 1 01 12 PM

Copy link
Member

@adhi0331 adhi0331 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment about one minor thing. Not sure if its already been resolved but if it has been then I think its good to merge.

mentorUniversity: mentor?.college ?? "N/A",
mentorCareer: mentor?.career ?? "N/A",
upcomingSessionId: upcomingSessionId ?? "N/A",
pastSessionId: pastSessionId ?? "N/A",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's good that we're returning both the upcoming session id and past session id. I was just wondering if in the session document we store some field to state whether a session was canceled or rescheduled. I only ask because on Frontend we have to update the session card based on whether a session is scheduled, canceled, or rescheduled for the mentee home page. If you think that we can implement that feature on the Home Page with the current route as it stands then I think its good to merge. Otherwise, it might be useful to look into changing the sessions route to reflect whether a session was canceled, rescheduled, or no changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider and implement a route to return all information for home page
2 participants