Skip to content

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

Merged
merged 13 commits into from
Sep 9, 2020
Merged

Conversation

noisecapella
Copy link

@noisecapella noisecapella commented Sep 3, 2020

@gsidebo gsidebo self-assigned this Sep 4, 2020
Copy link

@gsidebo gsidebo left a 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.

ss 2020-09-04 at 16 51 48

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)

@noisecapella
Copy link
Author

How does this look for a message?
Screenshot from 2020-09-09 09-05-09

@noisecapella
Copy link
Author

Screenshot from 2020-09-09 14-48-02

Copy link

@gsidebo gsidebo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@noisecapella noisecapella merged commit 6d5ed89 into mitx/juniper Sep 9, 2020
@noisecapella noisecapella deleted the gs/canvas_tasks branch September 9, 2020 19:24
shaidar pushed a commit that referenced this pull request Sep 15, 2020
* 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
asadiqbal08 pushed a commit that referenced this pull request Nov 19, 2020
* 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
asadiqbal08 pushed a commit that referenced this pull request Nov 19, 2020
* 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
blarghmatey pushed a commit that referenced this pull request Nov 19, 2020
* 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]>
blarghmatey pushed a commit that referenced this pull request Dec 9, 2020
* 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]>
blarghmatey pushed a commit that referenced this pull request Jan 25, 2021
* 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]>
blarghmatey pushed a commit that referenced this pull request Feb 8, 2021
* 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]>
blarghmatey pushed a commit that referenced this pull request Feb 18, 2021
* 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]>
umarmughal824 pushed a commit that referenced this pull request Apr 15, 2021
* 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]>
umarmughal824 pushed a commit that referenced this pull request Apr 20, 2021
* 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]>
blarghmatey pushed a commit that referenced this pull request Jun 3, 2021
* 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]>
blarghmatey added a commit that referenced this pull request Sep 7, 2021
* 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]>
arslanashraf7 added a commit that referenced this pull request Oct 29, 2021
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants