-
Notifications
You must be signed in to change notification settings - Fork 1
Use instructor_tasks for canvas work #183
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
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.
One thing I noticed: the output shows status "Incomplete" for tasks that appear to have completed, and I also see "0 out of 0" in the last column.
I also think it might be helpful to show how long ago the task executed in minutes if it was within the last 6 hours or so (e.g.: "30 minutes ago" instead of the ISO timestamp)
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.
LGTM! 👍
* Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time
* Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time
* Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Canvas Commits (#223) * Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]> * Reimplemented legacy dashboard enrollment data functionality (60a6ddc) * Fix syntax error in import statement * Cherry-Picked: Enrolment commits (#228) * Adding enrollment restriction for users based on social auth providers In order to prevent users outside of MIT creating a collaborator account and self-enrolling in courses we need to be able to restrict self-enrollment to users who authenticate using the MIT Kerberos SAML backend. This adds filtering of self-enrollment based on a feature flag that sets the allowed provider ids. (cherry picked from commit a4c53a1) * Bugfix for collaborator account access check Co-authored-by: Tobias Macey <[email protected]> * Fixing import path for canvas_integration plugin * Fix import namespace for relative imprts edX requires the full namespace for imports so importing e.g. `remote_gradebook.tasks` is no longer valid. Instead it requires `from lms.djangoapps.remote_gradebook import tasks`. * #229 change submission type and published state on canvas (#232) - Change submission type to "None" - Change published state to "False" * Fixing encoding of header row for posting to remote gradebook Posting to the remote gradebook via lmod proxy was failing due to a key error when parsing the CSV content. This was due to erroneously encoding a string object. This commit adds a check for the type of the header value to prevent double encoding it. * fix the imports * address feedback Co-authored-by: Asad Iqbal <[email protected]> Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]> Co-authored-by: sar <[email protected]> Co-authored-by: Arslan Ashraf <[email protected]> Co-authored-by: Tobias Macey <[email protected]>
* Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]>
* Canvas Commits (#223) * Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]> * Reimplemented legacy dashboard enrollment data functionality (60a6ddc) * Fix syntax error in import statement * Cherry-Picked: Enrolment commits (#228) * Adding enrollment restriction for users based on social auth providers In order to prevent users outside of MIT creating a collaborator account and self-enrolling in courses we need to be able to restrict self-enrollment to users who authenticate using the MIT Kerberos SAML backend. This adds filtering of self-enrollment based on a feature flag that sets the allowed provider ids. (cherry picked from commit a4c53a1) * Bugfix for collaborator account access check Co-authored-by: Tobias Macey <[email protected]> * Fixing import path for canvas_integration plugin * Fix import namespace for relative imprts edX requires the full namespace for imports so importing e.g. `remote_gradebook.tasks` is no longer valid. Instead it requires `from lms.djangoapps.remote_gradebook import tasks`. * #229 change submission type and published state on canvas (#232) - Change submission type to "None" - Change published state to "False" * Fixing encoding of header row for posting to remote gradebook Posting to the remote gradebook via lmod proxy was failing due to a key error when parsing the CSV content. This was due to erroneously encoding a string object. This commit adds a check for the type of the header value to prevent double encoding it. * fix the imports * address feedback Co-authored-by: Asad Iqbal <[email protected]> Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]> Co-authored-by: sar <[email protected]> Co-authored-by: Arslan Ashraf <[email protected]> Co-authored-by: Tobias Macey <[email protected]>
* Canvas Commits (#223) * Sync canvas enrollments * Added instructor dashboard button to push edX grades to Canvas * Fixed canvas grade syncing JS * Changed 'edX' reference to 'MITx' * Use EDIT_COURSE_ACCESS permission instead of is_staff * Use OVERRIDE_GRADES rule instead * Use instructor_tasks for canvas work (#183) * Add per_page to paginated requests * Static method * Fix email lowercase mismatch * Use instructor_tasks to handle canvas work * Fix transaction error * Decorator needs to be at the top * Attempt to fix polling of tasks * More task bug fixes * Fix typo * Fix course key bug * Update message for push edx grades command * Use course_key so sync_canvas_enrollments uses the same message * Format the submitted time * Don't return output to prevent task output max size error (#189) Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]> * Reimplemented legacy dashboard enrollment data functionality (60a6ddc) * Fix syntax error in import statement * Cherry-Picked: Enrolment commits (#228) * Adding enrollment restriction for users based on social auth providers In order to prevent users outside of MIT creating a collaborator account and self-enrolling in courses we need to be able to restrict self-enrollment to users who authenticate using the MIT Kerberos SAML backend. This adds filtering of self-enrollment based on a feature flag that sets the allowed provider ids. (cherry picked from commit a4c53a1) * Bugfix for collaborator account access check Co-authored-by: Tobias Macey <[email protected]> * Fixing import path for canvas_integration plugin * Fix import namespace for relative imprts edX requires the full namespace for imports so importing e.g. `remote_gradebook.tasks` is no longer valid. Instead it requires `from lms.djangoapps.remote_gradebook import tasks`. * #229 change submission type and published state on canvas (#232) - Change submission type to "None" - Change published state to "False" * Fixing encoding of header row for posting to remote gradebook Posting to the remote gradebook via lmod proxy was failing due to a key error when parsing the CSV content. This was due to erroneously encoding a string object. This commit adds a check for the type of the header value to prevent double encoding it. * fix the imports * address feedback Co-authored-by: Asad Iqbal <[email protected]> Co-authored-by: George Schneeloch <[email protected]> Co-authored-by: Gavin Sidebottom <[email protected]> Co-authored-by: sar <[email protected]> Co-authored-by: Arslan Ashraf <[email protected]> Co-authored-by: Tobias Macey <[email protected]>
per_page
to API calls using pagination, to increase the page size from 10 to 100