-
Notifications
You must be signed in to change notification settings - Fork 5
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
JS error checking for badge #20
Comments
Hi @bryanlandia, Firstly apologies, the link to the commit in the Badgr Xblock readme doesn't exist anymore unfortunately. But there are a few changes you would have to implement in the https://github.com/proversity-org/edx-platform/blob/master/lms/djangoapps/grades/api/views.py#L79 I'll try find the original commit showing all the changes to all files in the |
Hi @lidijarad Thanks for the quick response! I'll give that a try. Is that commit something you have tried to push upstream? |
Hello @bryanlandia, I have the same JS error. I copied all the files from api folder from the link that gave @lidijarad and compiled them using the py_compile command. Then I restarted the platform but the lms displays Internal error. Did you manage to fix the error and how? |
I get the following JS error when checking for section completion and earning a badge:
The error is with these lines
badgr-xblock/badgr/static/js/src/badgr.js
Lines 17 to 19 in 7077d49
No data for
section_scores
is returned in the JSON from a GET request to /api/grades/v0/course_grade/course-v1:Appsembler+002+2018_Q3/users/?username=bryanlandiawhat is returned is:
Were you using a custom branch of edx-platform for this? I don't see any
section_scores
returned by the view method herehttps://github.com/edx/edx-platform/blob/edx_master/lms/djangoapps/grades/api/views.py#L164-L186
The text was updated successfully, but these errors were encountered: