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

Model changes to add lms_user.lti_v13_user_id #6670

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lms/models/lms_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ class LMSUser(CreatedUpdatedMixin, Base):
lti_user_id: Mapped[str] = mapped_column(index=True)
"""ID of this user in the LMS, via LTI"""

lti_v13_user_id: Mapped[str | None] = mapped_column(sa.Unicode)
"""
The LTI1.3 ID of the user.

This will be often the same value as lti_user_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 lti_user_id will be the 1.1 value and we'll store here the 1.3 version.
"""

h_userid: Mapped[str] = mapped_column(unique=True, index=True)
"""The userid value in H. This is calculated hashing tool_consumer_instance_guid and lti_user_id together."""

Expand Down
Loading