Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: LTI 1.3 reusable configuration #390
feat: LTI 1.3 reusable configuration #390
Changes from 6 commits
a28dcc1
681abaf
1a9ca9a
3c20fab
f15a78c
0af3753
c8031eb
8087346
c9a2521
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Something odd happens when I try to use the external configuration directly from the XBlock. When I set the
Configuration Type
toReusable Configuration
and provide a validLTI Reusable Configuration ID
, the XBlock break withError: (1048, "Column 'version' cannot be null")
. The relevant part of the traceback is: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.
This is because the external ID set on the XBlock is not found, this is either because the reusable configuration feature is not properly setup or the external configuration doesn't exist. If you check this specific line you can notice that if no config is found the "version" value will return None, once this value is sent to the
_get_or_create_local_lti_config
function, when it tries to save the new values to theLtiConfiguration
it fails since "version" value cannot be null. This could be fixed by adding an extra validation to any required field from the external config on_get_lti_config_for_block
but I think it's out of the scope of this PR, an issue about this should be created.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.
Created #420.