Added legacy grade export functionality to the instructor dashboard #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
Closes mitocw#74
What's this PR do?
Adds legacy grade export functionality back into the instructor dashboard (was removed after the dogwood releases)
Where should the reviewer start?
Probably
lms/templates/instructor/instructor_dashboard_2/grade_export.html
andlms/static/js/instructor_dashboard/grade_export.js
.How should this be manually tested?
ENABLE_INSTRUCTOR_GRADE_EXPORT
feature toTrue
REMOTE_GRADEBOOK_URL
feature value - you can ask me or Peter for the proper setting hereExport Grades
tab for some course (eg:http://localhost:8000/courses/course-v1:edX+DemoX+Demo_Course/instructor#view-grade_export
- make sure you have staff/admin privileges)Any background context you want to provide?
This grade exporting functionality last existed in the dogwood releases (eg: dogwood.3-3) in something called the legacy instructor dashboard. As such there is a lot of functionality that was lifted out of the codebase as it existed then. I made several changes to match the patterns that currently exist in the instructor dashboard (the buttons make AJAX requests instead of submitting a general HTML form, etc.), but I tried to be careful not to overdo it with optimizing legacy code.
A few key files from the dogwood release that contained the legacy dashboard functionality: