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

Fixed calculation of max_pts for problems which are not attempted yet #196

Conversation

amir-qayyum-khan
Copy link

Background

connected to #190

  • In existing code while calculating grades if your did not attempt problem then courseware set his grades like graded_total = Score(0.0, 1.0, True, section_name, None)
    https://github.com/edx/edx-platform/blob/master/lms/djangoapps/courseware/grades.py#L461
  • This case an issue when we show non-normalize data on legacy dashboard. In this case the grades of students appear like score/max-score and for students who did not attempted the same problem the score will be 0/1.
  • 0/1 looks like normalize grade, and whole grade sheet look like mixture of normalize and non-normalize grades.

screen shot 2016-02-03 at 5 04 32 pm

What is done in this PR

Studio Updates: None
LMS Updates:

  • Now grades of problems which are not attempted will be 0/max score.

cc @pdpinch @pwilkins
@pdpinch as we discussed yesterday. you told me to create Pr for ormsbee. So that you can discuss with him.

After solution:
  • Not Normalize
    screen shot 2016-02-03 at 4 43 16 pm
  • Normalize
    screen shot 2016-02-03 at 4 42 54 pm

@amir-qayyum-khan amir-qayyum-khan changed the title Fixed grades for problems which are not attempted yet Fixed grade calculation for problems which are not attempted yet Feb 3, 2016
@amir-qayyum-khan amir-qayyum-khan force-pushed the fix/aq/max_points_grades_mitocw#147 branch from b6796a4 to 25f401c Compare February 3, 2016 12:10
@amir-qayyum-khan amir-qayyum-khan self-assigned this Feb 3, 2016
@pdpinch pdpinch changed the title Fixed grade calculation for problems which are not attempted yet Fixed calculation of max_pts for problems which are not attempted yet Feb 4, 2016
@pdpinch
Copy link
Member

pdpinch commented Feb 4, 2016

I made some edits to the title & description

@pdpinch
Copy link
Member

pdpinch commented Feb 4, 2016

The diff is a lot larger than I expected. Is it being compared to the right branch?

@amir-qayyum-khan
Copy link
Author

@pdpinch I compare it to my branch, the same branch against which @pwilkins was reviewing my PR #190.

Plus I verified code to make sure it is not change on edx master https://github.com/edx/edx-platform/blob/master/lms/djangoapps/courseware/grades.py#L385-L403

@amir-qayyum-khan amir-qayyum-khan force-pushed the fix/aq/max_points_grades_mitocw#147 branch 3 times, most recently from 149150c to c338d8b Compare February 4, 2016 17:25
@amir-qayyum-khan amir-qayyum-khan force-pushed the enhancement/aq/add_normalization_info_lagacy_dashboard_remote_gradebook_mitocw#147 branch from 71fd151 to 4328dbb Compare February 8, 2016 21:39
@pdpinch
Copy link
Member

pdpinch commented Feb 9, 2016

Dave explained that this was done this way for performance reasons. He suggested we look at how this is handled in the progress_summary instead.

@pdpinch pdpinch closed this Feb 9, 2016
emZubair pushed a commit that referenced this pull request Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants