-
Notifications
You must be signed in to change notification settings - Fork 14
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 canvas terms info on the database #6969
Conversation
8ffb6e4
to
d262688
Compare
d262688
to
a862000
Compare
a862000
to
1b3020d
Compare
e0d995d
to
5da01a0
Compare
1b3020d
to
73c2e4b
Compare
@@ -26,6 +29,13 @@ def __init__(self, v11: dict, v13: dict | None = None): | |||
def v11(self): | |||
return self | |||
|
|||
def get_datetime(self, key: str) -> datetime | None: |
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.
We were doing this same thing for course dates.
Generalize it a bit and move it to LTIParams.
@@ -431,22 +441,6 @@ def _get_copied_from_course(self, lti_params) -> Course | None: | |||
|
|||
return None | |||
|
|||
def _get_course_dates( |
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.
Moved to LTIParams.
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.
Looks good
5da01a0
to
88d64e4
Compare
73c2e4b
to
6d3a54e
Compare
88d64e4
to
0e0768d
Compare
While we'll only get this information from some Canvas installs the new table and service code are LMS agnostic. We'll store the Canvas data for a while before exploring how to integrate other LMSes
6d3a54e
to
5c4f3f1
Compare
We'll start storing this data based on launches that contain the lastest Canvas configuration, which includes variables about terms.
This will allow us to build a backlog of courses with start and end dates.
We recently did a similar job to store course dates, which in Canvas means courses that don't belong to a term. In combination this commit this should give us coverage of all LTI1.3 courses for schools that have the most recent configuration.
See: #6941
Testing
https://hypothesis.instructure.com/courses/125/assignments/1833
Everything looks good, nothing gets created on the DB.
Launch an assignment that does send term information
https://hypothesis.instructure.com/courses/319/assignments/3308