-
Notifications
You must be signed in to change notification settings - Fork 1
feat: new event to track LTI Launches via LTI Provider #320
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
Changes from all commits
a4df83a
f4903f8
a3229a4
2c43451
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <p> | ||
| <h2><%- title %></h2> | ||
| <table class="stat_table"><tr> | ||
| <%_.forEach(header, function (h) {%> | ||
| <th><%- h %></th> | ||
| <%})%> | ||
| </tr> | ||
| <%_.forEach(data, function (row) {%> | ||
| <tr> | ||
| <%_.forEach(row, function (value) {%> | ||
| <td><%- value %></td> | ||
| <%})%> | ||
| </tr> | ||
| <%})%> | ||
| </table> | ||
| </p> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,3 +168,5 @@ elasticsearch==7.9.1 | |
| # https://github.com/openedx/edx-platform/issues/36425 | ||
| xmlsec==1.3.14 | ||
| social-auth-core==4.5.4 | ||
|
|
||
| openedx-events @ git+https://github.com/open-craft/openedx-events.git@kshitij/lti-launch-event | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change pins |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -801,8 +801,9 @@ openedx-django-require==2.1.0 | |
| # via -r requirements/edx/kernel.in | ||
| openedx-django-wiki==2.1.0 | ||
| # via -r requirements/edx/kernel.in | ||
| openedx-events==10.2.0 | ||
| openedx-events @ git+https://github.com/open-craft/openedx-events.git@kshitij/lti-launch-event | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change pins |
||
| # via | ||
| # -c requirements/edx/../constraints.txt | ||
| # -r requirements/edx/kernel.in | ||
| # edx-enterprise | ||
| # edx-event-bus-kafka | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1358,8 +1358,9 @@ openedx-django-wiki==2.1.0 | |
| # via | ||
| # -r requirements/edx/doc.txt | ||
| # -r requirements/edx/testing.txt | ||
| openedx-events==10.2.0 | ||
| openedx-events @ git+https://github.com/open-craft/openedx-events.git@kshitij/lti-launch-event | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change pins |
||
| # via | ||
| # -c requirements/edx/../constraints.txt | ||
| # -r requirements/edx/doc.txt | ||
| # -r requirements/edx/testing.txt | ||
| # edx-enterprise | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -972,8 +972,9 @@ openedx-django-require==2.1.0 | |
| # via -r requirements/edx/base.txt | ||
| openedx-django-wiki==2.1.0 | ||
| # via -r requirements/edx/base.txt | ||
| openedx-events==10.2.0 | ||
| openedx-events @ git+https://github.com/open-craft/openedx-events.git@kshitij/lti-launch-event | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change pins |
||
| # via | ||
| # -c requirements/edx/../constraints.txt | ||
| # -r requirements/edx/base.txt | ||
| # edx-enterprise | ||
| # edx-event-bus-kafka | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1030,8 +1030,9 @@ openedx-django-require==2.1.0 | |
| # via -r requirements/edx/base.txt | ||
| openedx-django-wiki==2.1.0 | ||
| # via -r requirements/edx/base.txt | ||
| openedx-events==10.2.0 | ||
| openedx-events @ git+https://github.com/open-craft/openedx-events.git@kshitij/lti-launch-event | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change pins |
||
| # via | ||
| # -c requirements/edx/../constraints.txt | ||
| # -r requirements/edx/base.txt | ||
| # edx-enterprise | ||
| # edx-event-bus-kafka | ||
|
|
||
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.
The assertion for
extra_paramsis currentlyextra_params={}. However, based on thebuild_launch_requestfunction (which populates the initial LTI parameters for the test) and the logic inlti_provider.views.lti_launch(which processes these parameters), several non-OAuth, non-explicitly-popped parameters should remain and be collected intoextra_params.Specifically,
build_launch_requestincludes:lis_result_sourcedid: 'test_sourcedid'lis_outcome_service_url: 'test_url'tool_consumer_instance_guid: 'test_guid'These parameters are not OAuth parameters and are not among those explicitly popped (
course_key,usage_key,roles,context_id,user_id) before constructingextra_paramsin the view. Therefore, they should be present in theextra_paramsdictionary.Could you update the assertion to reflect the expected
extra_params? This would make the test more accurately verify the behavior of theextra_paramscollection.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.
build_launch_requesttakes anextra_post_dataif that is blank then no extra params will be added and extra_params will be empty as it is in the reviewed code.