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

Store VS assignments on the DB #3341

Merged
merged 4 commits into from
Nov 12, 2021

Conversation

marcospri
Copy link
Member

@marcospri marcospri commented Nov 5, 2021

For #3329

Handles VitalSource assignments like any other type of assignment on Canvas.

Testing as #3126 but using VS assignments as well.

@marcospri marcospri force-pushed the ext_lti_assignment_id-column-frontend branch 3 times, most recently from c68e341 to cdb1992 Compare November 9, 2021 12:10
@marcospri marcospri force-pushed the vs-assignments-db branch 2 times, most recently from 422fae8 to 513d42c Compare November 9, 2021 12:19
@@ -235,7 +235,7 @@ export default function BasicLTILaunchApp() {
}

// Don't report a submission until the URL has been successfully fetched.
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure how to rephrase this comment "... until the content has been configured"?

Copy link
Member

Choose a reason for hiding this comment

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

I suggest something like "Don't report a submission until we have the data needed to display the assignment content".

self.store_lti_data()
self.context.js_config.maybe_enable_grading()
self.context.js_config.add_vitalsource_launch_config(
self.request.params["book_id"], self.request.params.get("cfi")
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need to send any params to SpeedGrader as we can read the information from the DB assignment.

@@ -186,13 +186,6 @@ def __call__(self, context, request):
return ("canvas_file" in request.params) == self.value


class VitalSourceBook(Base):
Copy link
Member Author

Choose a reason for hiding this comment

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

VitalSource assignments become regular DB-Configured ones.

@marcospri marcospri merged commit 4422ddc into ext_lti_assignment_id-column-frontend Nov 12, 2021
@marcospri marcospri deleted the vs-assignments-db branch November 12, 2021 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants