-
Notifications
You must be signed in to change notification settings - Fork 60
Fix various bugs found in QA #85
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
Conversation
5a1bc68 to
496f393
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this relate to the weight field above Is there a difference between score and grade?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Score vs grade: They are used interchangeably in the edX platform, but they are trying to move to a more consistent approach where "score" means a numeric result returned by an individual component such as an XBlock, and "grade" refers to the user's overall standing in a course (as a percentage and a letter grade or pass/fail). So the "grade" is a function of the user's scores plus the rules and weightings configured for the course.
If the user has not yet generated a score for this block:
- The
max_scoremethod, if defined, will result in '0/x' being displayed on the progress page for this block. As far as I know, the return value is not used directly, as the total possible score is scaled by the platform to the value ofweight. So ifweightis1, then the progress page will always display0/1.
If the user has generated a score for this block (which is done, confusingly, by publishing a grade XBlock event):
- Then the platform displays the user's score for this block as (
value / max_value * weight), whereweightis the field of the XBlock andvalue/max_valuecome from the event itself.
|
👍 Code looks good (I added a few questions, but that's probably just me not understanding the code). Manual testing went fine. During manual testing i noticed that Problem Builder works with neither of the two different (?) versions of xblock-utils configured in requirements/edx/github.txt and requirements/edx/custom.txt in the solutions fork of edx-platform. Switching to the master branch of xblock-utils made it work fine. |
…splay previous answers
…el, MCQ feedback not shown
d224857 to
b4ef868
Compare
|
Thanks @smarnach. I addressed your comments and rebased this since it was conflicting with a couple recent PRs. Will merge once the build passes. Regarding xblock-utils, that's strange. @e-kolpakov or @Kelketek do you have any insight and do you know why xblock-utils is listed twice? |
Fix various bugs found in QA
This fixes the following bugs:
has_scoreandmax_scoreattribute/method. I added them plus tests.hide_prev_answer: Trueto the template context when in Step Builder, and changed the various question templates so they wouldn't show the previous answer when that variable is set./static/.... Create a Step Builder with an MCQ and an MRQ. Edit each MxQ block and set the "Message (General feedback provided when submiting)" property in the XBlock settings to an HTML string containing the Studio URL:Set the Step Builder's
max_attemptsto1and enable extended feedback. As a student, complete the Step Builder. Then from the review screen, click on the link to review the each question.For the MCQ, no feedback will be visible.
For the MRQ, the feedback popup will be visible but the image won't load.
This fix should fix both of the above issues.
student_viewor similar), but instead passed directly to the template. As a result, the runtime doesn't get to wrap the output with methods that process the HTML. So I added some code that will call the runtime'sreplace_urlsmethod manually for such messages.