Remove courses and sessions from userService.getUserProfile and refactor module imports #721
Labels
complexity: advanced
Time needed to do this ticket will be large e.g. 2-3+ days
help-wanted
Extra attention is needed
refactor
state: blocked
Task is blocked.
Milestone
Overview
After implementing the new
/courses_user
endpoint (Issue #720 ) and updating the frontend to use it (frontend Issue #1223), we need to refactor theuserService.getUserProfile
function to no longer include courses and sessions data. This will reduce unnecessary data fetching and optimize the profile retrieval process. Additionally, we will need to clean up module imports to ensure that we aren't importing unnecessary modules or creating circular dependencies.Blocked by #720 and this frontend issue: chaynHQ/bloom-frontend#1223
Action Items
courses
andsessions
data from theuserService.getUserProfile
function to avoid pulling unnecessary data in user profile requests.courses
andsessions
are no longer included by default when fetching the user profile.courses
andsessions
data are no longer being returned in the profile response./courses_user
endpoint is still functional and properly providingcourses
andsessions
data for course and session pages.Resources
The text was updated successfully, but these errors were encountered: