When the user creates a link with deep linking via the editor button
placement (in the RCE), that link may now create custom parameters and
add a resource_link_lookup_id to the link (this work was done in a
recent commit by Wagner).
This commit is the other half of the story: it sends those link-level
custom parameters in LTI launches that happen when a user clicks those
links created by deep linking from the editor button.
closes INTEROP-6316
flag=none
Test plan:
- Make editor button deep links with custom params in a course context
(such as text entry submission) and in an account context (e.g.
a new outcome description -- under Admin -> Outcomes). One of the
custom parameters should contain a variable expansion
- For each link, click it and make sure custom parameters are given,
and expanded as necessary.
- Try removing the resource_link_lookup_id from the URL and make sure
the launch still happens, but without the link-specific custom params.
- Try triggering a normal (old) "Couldn't find settings for this link"
error, such as by changing the account/course ID in the link URL, and
make sure that error still happens.
- Temporarily change the context_id in the ResourceLink and make sure
that causes an error "Couldn't find valid settings for this link:
Resource link not found"
- Temporarily change the context_external_tool_id in the ResourceLink to
something that has a different developer_key_id and make sure you get
an error "Couldn't find valid settings for this link: Resource link
not valid for tool"
- Try changing the resource_link_lookup_id in the URL to something
invalid and make sure you get an error "Couldn't find valid settings for
this link: Resource link not found"
- Make sure the Assignment deep linking still works (see test plan for
723118c4)
Change-Id: Ia72d5488677f520e5790db81001e9573c4be6be5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256188
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Wagner Goncalves <wagner.goncalves@instructure.com>
Product-Review: Evan Battaglia <ebattaglia@instructure.com>