WIP: Asynchronous download button for ORA2 data - #11167
Conversation
b6ccc83 to
9f27b29
Compare
|
jenkins run js |
77dfab0 to
26ea576
Compare
|
@catong this is the current version of the code. The sandbox where this code is running is here: http://dianakhuang.sandbox.edx.org This code is not yet final. |
d520ab3 to
2034c00
Compare
|
@dianakhuang Given that most users won't know/care that our current ORA feature is "ORA2" (am I right?) I'd suggest that instead of referring to "ORA2" on the button and in the report name, we just go with "ORA". I wasn't sure of the best place to comment in the files view. What do you think? |
|
@catong I'm happy to switch that around. I have a few other naming things to clean up and then I'll do the switch from "ORA2" to "ORA" in user-facing strings. |
3c7d2c0 to
a157928
Compare
|
Thanks @dianakhuang. I guess in the absence of Product we can make the call :-) |
0ce089a to
b634451
Compare
|
@catong The sandbox has been updated with the latest version of the code. |
| except AlreadyRunningError: | ||
| already_running_status = _( | ||
| "An ORA data report generation task is already in " | ||
| "progress. Check the 'Pending Instructor Tasks' table " |
There was a problem hiding this comment.
This section is now called "Pending Tasks" in the UI (strike "Instructor").
There was a problem hiding this comment.
"Pending Instructor Tasks" also appears in other status messages below.
|
@dianakhuang Thanks for making the "ORA2" -> "ORA" changes. I have been able to start the report generation task as well as get the "already running" message in the Demo course in the sandbox, but have not yet been seen a completed report. If there are no peer responses are found in the course, should the report get returned with empty rows or a specific failure? |
|
@catong Could you try it with the Testing course while I figure out what's going on with the Demo course? |
d028e76 to
c173b9b
Compare
| else if e.target.name == 'problem-grade-report' | ||
| @$grades_request_response_error.text gettext("Error generating problem grade report. Please try again.") | ||
| else if e.target.name == 'ora2-response-btn' | ||
| @$grades_request_response_error.text gettext("Error generating ORA2 responses. Please try again.") |
There was a problem hiding this comment.
If this error msg is user-facing, can we also change text to: "Error generating the ORA data report. Please try again."
There was a problem hiding this comment.
@dianakhuang This is an old comment from @catong. Maybe you discussed this elsewhere?
|
@dianakhuang I also noticed that the file name for the report might still use ORA2, it also seems less readable than other report filenames? Ideally the report name should match the button label: "ORA data report" rather than "ORA2 responses". |
aae1875 to
b766907
Compare
|
@dianakhuang The readable headings look great! |
|
Thanks for that @catong ! I'll take a look to see why we might not be getting that information. |
4dbf85f to
8d279da
Compare
There was a problem hiding this comment.
I'm in favor of leaving this except in place, in case it's needed to diagnose prod issues.
Will this log the stack trace of the error? Is that easy/worthwhile to add?
There was a problem hiding this comment.
The line right below this logs the stack trace: TASK_LOG.exception will spit out the trace along with the error message.
There was a problem hiding this comment.
Cool. I figured it did since we found the bug earlier, just wanted to confirm.
|
jenkins run lettuce |
|
👍 Looks great! |
8d279da to
e76ab40
Compare
|
jenkins run bokchoy |
2689e98 to
918fb42
Compare
|
👍 Thanks. |
918fb42 to
fabc0a8
Compare
fabc0a8 to
bd7b266
Compare
Conflicts: lms/djangoapps/instructor/tests/test_api.py lms/djangoapps/instructor/utils.py lms/djangoapps/instructor/views/api.py lms/djangoapps/instructor/views/api_urls.py lms/djangoapps/instructor/views/instructor_dashboard.py lms/djangoapps/instructor_task/api.py lms/djangoapps/instructor_task/tasks.py lms/djangoapps/instructor_task/tasks_helper.py lms/djangoapps/instructor_task/tests/test_api.py lms/djangoapps/instructor_task/tests/test_tasks.py lms/djangoapps/instructor_task/tests/test_tasks_helper.py lms/envs/aws.py lms/envs/common.py lms/static/coffee/src/instructor_dashboard/data_download.coffee lms/templates/instructor/instructor_dashboard_2/data_download.html
bd7b266 to
2b1a7ee
Compare
|
jenkins run bokchoy |
WIP: Asynchronous download button for ORA2 data

Conflicts:
lms/djangoapps/instructor/tests/test_api.py
lms/djangoapps/instructor/utils.py
lms/djangoapps/instructor/views/api.py
lms/djangoapps/instructor/views/api_urls.py
lms/djangoapps/instructor/views/instructor_dashboard.py
lms/djangoapps/instructor_task/api.py
lms/djangoapps/instructor_task/tasks.py
lms/djangoapps/instructor_task/tasks_helper.py
lms/djangoapps/instructor_task/tests/test_api.py
lms/djangoapps/instructor_task/tests/test_tasks.py
lms/djangoapps/instructor_task/tests/test_tasks_helper.py
lms/envs/aws.py
lms/envs/common.py
lms/static/coffee/src/instructor_dashboard/data_download.coffee
lms/templates/instructor/instructor_dashboard_2/data_download.html