Skip to content

Commit

Permalink
Model changes for assignment.lti_v13_resource_link_id
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Sep 2, 2024
1 parent 4c654a2 commit 72ed26a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lms/models/assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,19 @@ class Assignment(CreatedUpdatedMixin, Base):

id: Mapped[int] = mapped_column(autoincrement=True, primary_key=True)

resource_link_id = sa.Column(sa.Unicode, nullable=False)
resource_link_id: Mapped[str] = mapped_column(sa.Unicode)
"""The resource_link_id launch param of the assignment."""

lti_v13_resource_link_id: Mapped[str | None] = mapped_column(sa.Unicode)
"""
The LTI1.3 resource_link_id of the assignment.
This will be often the same as value as resource_link_id but it might be different in:
- LTI1.1 launches. Where this will be null.
- Upgraded instances from LTI1.1 where we prefer the LTI1.1 value (if exposed by the LMS).
In those cases resource_link_id will be the 1.1 value and we'll store here the 1.3 version.
"""

tool_consumer_instance_guid = sa.Column(sa.Unicode, nullable=False)
"""
The tool_consumer_instance_guid launch param of the LMS.
Expand Down

0 comments on commit 72ed26a

Please sign in to comment.