You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve the Blackboard LTI 1.3 upgrade management command
In the case that it's run after some users have already launched
upgraded LTI 1.3 links and so have new user accounts, it can merge them
with the original user accounts created by the LTI 1.1 consumer.
It takes the ID of the LTI 1.3 consumer as a required argument, to use
in the LTI_13_UserAlias objects.
Copy file name to clipboardExpand all lines: numbas_lti/management/commands/upgrade_blackboard_lti_13.py
+32-6Lines changed: 32 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
However, Blackboard seems to give the same user IDs under both protocols, so we can create LTI_13_UserAlias objects based on the LTI_11_UserAlias objects.
help='Migrate LTI user aliases from LTI 1.1 to LTI 1.3. This should only be necessary for Blackboard connections.'
19
19
20
20
defadd_arguments(self, parser):
21
-
parser.add_argument('--consumer', help='Key of the consumer to upgrade. If not given, data for all LTI 1.1 consumers is upgraded.')
21
+
parser.add_argument('to_consumer', help='ID of the LTI 1.3 consumer to upgrade to.')
22
+
parser.add_argument('--merge-accounts', action='store_true', help='Merge any user accounts created through LTI 1.3 with accounts created through LTI 1.1.')
23
+
parser.add_argument('--consumer', type=int, help='Key of the consumer to upgrade. If not given, data for all LTI 1.1 consumers is upgraded.')
0 commit comments