Skip to content

As a developer, I would like the profile page only makes one API call to get all relevant data #195

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

Open
5 tasks
esparr opened this issue Nov 14, 2023 · 0 comments

Comments

@esparr
Copy link
Collaborator

esparr commented Nov 14, 2023

The front end is currently making too many calls to the backend for the profile page. We need to consolidate the profile page information into one endpoint.

Acceptance Criteria:

  • the response JSON has 5 fields:
    - [ ] myProfile (JSON)
    - [ ] mentorInfo (JSON)
    - [ ] menteeInfo (JSON)
    - [ ] sessions (list)
    - [ ] notificationSettings (JSON)

  • if mentorInfo has data, then menteeInfo is empty (and vice-versa)

  • sessions is ordered by start date

  • build off of UserProfile viewclass

  • change UserProfile serializer_class after checking for self.request.version

@esparr esparr added this to Momentors Nov 14, 2023
@esparr esparr converted this from a draft issue Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant