canvas-lms/app/services
Ryan Hawkins 89ce4e66d7 Modify Pandata LTI Launch Data Schema
why:
- Impact has requested some additional fields to help them enhance their
  analytics offerings, as well as moving global ids to local ids to make
  querying on their end much easier.

fixes INTEROP-8597

flag=lti_log_launches

flag=lti_log_launches_site_admin

test-plan:
- This plan is similar to the initial testing for the LTI Logging
  commit.
- First, enable the lti_log_launches flag for your root account and the
  lti_log_launches_site_admin flag.
- set up a small local server that can accept POST requests
(You can this one-liner:
ruby -e 'require "sinatra"; post("/") { puts "===", request.body.read }'
)
* configure PandataEvents in config/dynamic_settings.yml:
```yml
enabled_for_canvas: true
url: '<your server url>'
```
- restart your docker containers
- test the connection with:
`PandataEvents.send_event(:test, {foo: 'bar'})`
- your server should receive a message that includes the foo:bar payload
and some other metadata
- launch an LTI tool from the course sidebar
- your server should receive a message that includes the course, user,
  tool, and account *local* ids. You should also see a root_account_uuid
  and shard id.
- validate that when launching from an account placement or from a group
  placement you also get the same data. Note that the
  account_id will likely be the local id of your root account,
  unless you put the course and thus it's group in a subaccount.

Change-Id: Ie4a8d6d0f7a410bb0556f4d090da44ca57102e29
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/346667
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
2024-05-13 16:13:17 +00:00
..
checkpoints reset fields after checkpoint deletion 2024-04-19 15:14:35 +00:00
course_pacing use more idiomatic ruby for PaceService 2023-12-05 21:50:45 +00:00
inbox Create GraphQL API for Inbox Settings 2024-04-30 19:27:27 +00:00
k5 Remove k5_font_selection flag 2023-06-22 23:34:00 +00:00
lti Modify Pandata LTI Launch Data Schema 2024-05-13 16:13:17 +00:00
application_service.rb aggregate checkpoint submissions' grade attrs 2023-10-23 16:11:29 +00:00
video_caption_service.rb fix typo in VideoCaptionService auth token lookup 2024-03-19 17:54:10 +00:00