Skip to content

Sudheesh-Student Profile Educational Progress#1908

Open
SudheeshTD wants to merge 13 commits intodevelopmentfrom
Sudheesh-Student-Profile-Educational-Progress
Open

Sudheesh-Student Profile Educational Progress#1908
SudheeshTD wants to merge 13 commits intodevelopmentfrom
Sudheesh-Student-Profile-Educational-Progress

Conversation

@SudheeshTD
Copy link
Contributor

@SudheeshTD SudheeshTD commented Nov 19, 2025

Description

image image image

Related PRS (if any):

This Backend PR is related to the #4420 Frontend PR.
To test this feature you need to checkout both backend and frontend PR #4420.

Main changes explained:

  1. • GET /student/profile
  2. • PUT /student/profile
  3. • GET /student/profile/subject/:id

How to test:

  1. check into current branch and the frontend branch #4420

  2. do npm install and ... to run this PR locally

  3. Clear site data/cache

  4. Log in as the user specified in video, or message me in the slack, for details. Use only that user to see data in the student profile page.

  5. Follow the frontend PR to follow along in testing.

Screenshots or videos of changes:

video2260393348.mp4

Note:

Include the information the reviewers need to know.

@SudheeshTD SudheeshTD changed the title chore: WIP for student profile educational progress Sudheesh-Student-Profile-Educational-Progress Nov 19, 2025
@SudheeshTD SudheeshTD marked this pull request as ready for review November 22, 2025 05:11
@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Nov 27, 2025
Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Sudeesh,

I have reviewed your PR locally, few comments:
1 - it would be great if you could mention under what are they stored in the db as one of them was Tasks in requirement and you have stored it in studenttask and couldn't locate Students and StudentProgress in DB.
2 - i was not able to retrieve any response for all subject id's except '68def3a5f0844c6916607a94' in the API call: ../student/profile/subject/:id
Screenshot 2025-11-27 at 1 08 09 AM
Screenshot 2025-11-27 at 1 18 27 AM

@SudheeshTD
Copy link
Contributor Author

Hi @Anusha-Gali,
Can you please elaborate your first comment? I could not understand it. For this task I had manually added 3 users 1 for student, one for teacher one for member. And interlinked them such that when we login using that userid, all the details would be visible, or else it will just view the basic details that your current account has.

@Anusha-Gali
Copy link

Hi @Anusha-Gali, Can you please elaborate your first comment? I could not understand it. For this task I had manually added 3 users 1 for student, one for teacher one for member. And interlinked them such that when we login using that userid, all the details would be visible, or else it will just view the basic details that your current account has.

Hi Sudheesh, i was talking about the point - "DB Fields required", i couldn't find them in mongoDB and the one's i found have different name when compared to the suggested one's

@SudheeshTD
Copy link
Contributor Author

SudheeshTD commented Dec 13, 2025

Hi @Anusha-Gali, Can you please elaborate your first comment? I could not understand it. For this task I had manually added 3 users 1 for student, one for teacher one for member. And interlinked them such that when we login using that userid, all the details would be visible, or else it will just view the basic details that your current account has.

Hi Sudheesh, i was talking about the point - "DB Fields required", i couldn't find them in mongoDB and the one's i found have different name when compared to the suggested one's

Hi @Anusha-Gali ,
For the DB fields required, I have not created a new models for everything as the core models that was created initially for the student profile had all the required details. And the requirement didn't specify the relationships of the models with other modals, so I did not create a new one.

And for reference, Student is taken from the UserProfile Model, subjects is taken from subjects model from Database, Student tasks is taken from educationtasks model, and the student progress is within the Get Student profile controller.

Can you test the feature now, I have updated the code for getSubjectDetails.
image

Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Sudeesh,

I ran the PR again and this is what i am getting in the terminal and postman. Do let me know why am i not getting the same result as you are.
Screenshot 2025-12-27 at 1 21 29 AM
Screenshot 2025-12-27 at 1 21 36 AM

@SudheeshTD
Copy link
Contributor Author

Hi @Anusha-Gali ,

Can you please check now, the previous commit didn't have the changes, so you were not able to see the modifications. Can you Please check now.
image

@SudheeshTD SudheeshTD requested a review from Anusha-Gali January 3, 2026 21:23
@Anusha-Gali
Copy link

  1. 4420

This is the only thing i get in postman when i requested the response on the same student id you used
Screenshot 2026-01-15 at 12 33 03 AM

@SudheeshTD
Copy link
Contributor Author

SudheeshTD commented Feb 13, 2026

  1. 4420

This is the only thing i get in postman when i requested the response on the same student id you used

Hello @Anusha-Gali ,

I am able to test it still without any issue, after doing a fresh pull. I wanted to check if the pull you did was the most recent one.
Would you mind doing a fresh pull and test again?

image
video1067019561.mp4

Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi @SudheeshTD ,

Thank you so much for the video. Please find attached the video of me testing and i am still not able to. I can maybe try cloning directly and testing but in the mean time, i think it's best if someone else also tries to review the PR.

1908.mp4

@SudheeshTD
Copy link
Contributor Author

Hi @SudheeshTD ,

Thank you so much for the video. Please find attached the video of me testing and i am still not able to. I can maybe try cloning directly and testing but in the mean time, i think it's best if someone else also tries to review the PR.

Hi @Anusha-Gali,

There is a small changes you have to do when logging in.
Please use the student@test.com user and its corresponding password as shown in video.
This feature currently works for that user itself, as I have added that user with the student permission.
Please let me know once you login using that user.

@SudheeshTD SudheeshTD force-pushed the Sudheesh-Student-Profile-Educational-Progress branch from 850edde to e2612de Compare February 24, 2026 05:54
@SudheeshTD SudheeshTD changed the title Sudheesh-Student-Profile-Educational-Progress Sudheesh-Student Profile Educational Progress Feb 24, 2026
@sonarqubecloud
Copy link

Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Sudheesh,

Thank you for looking into the code and helping me out. I am now able to receive the API responses.

Image Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants