Skip to content
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

feat: Added Canvas support #274

Merged
merged 1 commit into from
Dec 3, 2021
Merged

feat: Added Canvas support #274

merged 1 commit into from
Dec 3, 2021

Conversation

arslanashraf7
Copy link

@arslanashraf7 arslanashraf7 commented Nov 3, 2021

Related Ticket:

mitodl/open-edx-plugins#6

Side Note 1: Once this PR is merged we'll be adding only that code which would be part of this PR(and probably future cherry-picks) instead of this whole chunk

What's this PR do?

  • It removes the remote_gradebook and its dependencies
  • It extracts the canvas_integration into a separate plugin
  • Keeps only canvas_integration plugin supporting counterpart(Mostly instructor functionality that the canvas depended upon)

How to test?

This might need a counterpart a plugin to completely test. The counterpart to test this PR with is currently a WIP (mitodl/open-edx-plugins#8). Once that PR is finalized we can test this one:

  • Setup this branch of the platform
  • Install the plugin from feat: add canvas integration plugin open-edx-plugins#8 (e.g. put that plugin inside dir in /src dir & then move to make lms-shell & then pip install /edx/src/dist/<plugin>) OR any other way suitable
  • make dev.provision.lms/make lms-restart
  • Open any course as Admin & open instructor tab
  • You should see a Canvas tab under the instructor tab
  • Clicking Canvas tab should enable you to test the canvas functionality

@arslanashraf7
Copy link
Author

@gsidebo This also requires your review if possible, This is the corresponding PR for ol-openedx-canvas-integration

@gsidebo gsidebo self-assigned this Dec 2, 2021
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 comment in addition to the docstring code comment: this PR does not appear to be "removing Remote gradebook & canvas_integration Django apps". Given the branch you're merging into, it's not removing anything. It's just adding Canvas support. If that sounds right to you, can you change your commit message and the title of this PR to something like "Added Canvas plugin support"?

Once that's done, feel free to merge! 👍

@@ -68,6 +69,34 @@ def get_running_instructor_tasks(course_id):
return instructor_tasks.order_by('-id')


def _get_filtered_instructor_tasks(course_id, user, task_types):
"""
Returns a filtered query of InstructorTask to use for listing canvas tasks
Copy link

Choose a reason for hiding this comment

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

This was probably moved over directly, but this docstring isn't really accurate

Suggested change
Returns a filtered query of InstructorTask to use for listing canvas tasks
Returns a filtered query of InstructorTasks based on the course, user, and desired task types

@arslanashraf7 arslanashraf7 changed the title refactor!: Remove Remote gradebook & canvas_integration Django apps feat: Added Canvas support Dec 3, 2021
@arslanashraf7 arslanashraf7 merged this pull request into mitx/maple Dec 3, 2021
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