canvas-lms/lib/lti
Jonathan Guardado 5407fe6b5d LTI icon shows as a 'bomb' instead of the tool's icon
When adding the icons for the LTIs in the RCE, there is a parse
error trying to assign an object when a string is expected, the
provided fix is to validate the parameter before the assignation.
For fixing the second problem about blocking the possibility to add
an LTI with ‘Editor button’ placement inactive to the RCE, some
callbacks and validations were added when the placement is set
to active/inactive.

fixes LS-1940
flag=none
 
Test Plan: 
Issue 1:

- Having a course with RCE Enhancements enabled
- Go to your account configuration and add one LTI to RCE
- Set at least one of the placements for the added LTI to inactive
- Create or edit a course to display the RCE
- Then the LTI icon should be rendered in the toolbar

Issue 2:

- Go to your account configuration and add another LTI to the RCE
- Set the ‘Editor Button’ placement for the added to inactive
- Then the toggle button is removed from the UI
- Change the ‘Editor Button’ placement to active
- Then the toggle button is added back to the UI
- Add a LTI to RCE and then set the ‘Editor Button’ placement to
inactive
- Then the LTI will be removed from the favorite apps list and
the toggle button will be removed from the UI

Change-Id: I83599f6a6d3feff2ef403b9fcd18e7d0b5626a51
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/260197
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Product-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
2021-03-12 17:58:07 +00:00
..
errors add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
ims add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
membership_service add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
messages part 3: change lookup_id and resource_link_id to UUID datatype 2021-02-11 18:02:20 +00:00
oauth2 add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
api_service_helper.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
app_collator.rb LTI icon shows as a 'bomb' instead of the tool's icon 2021-03-12 17:58:07 +00:00
app_launch_collator.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
app_util.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
asset.rb Add public course LTI 1.3 support 2020-12-10 20:13:12 +00:00
capabilities_helper.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
content_item_converter.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
content_item_response.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
content_item_selection_request.rb standard LTI error handling for invalid content placement 2020-12-22 03:47:05 +00:00
content_item_util.rb update all invocations of send_later and friends to new syntax 2020-10-30 19:13:54 +00:00
deep_linking_util.rb Persist deep linking custom params: module items 2021-01-15 18:31:02 +00:00
errors.rb fail gracefully on a bad tool launch url 2021-01-14 15:48:28 +00:00
external_tool_name_bookmarker.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
external_tool_tab.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
key_storage.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
logging.rb log oauth base string when LTI API signature fails 2021-01-26 20:25:06 +00:00
message_authenticator.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
message_handler_name_bookmarker.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
permission_checker.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
plagiarism_subscriptions_helper.rb Change plagiarism subscriptions to be tool proxy guid 2020-12-11 22:32:19 +00:00
privacy_level_expander.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
re_reg_constraint.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
redis_message_client.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
security.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
substitutions_helper.rb Show SysAdmin LTI roles for Site Admins 2021-01-20 20:55:14 +00:00
tool_proxy_name_bookmarker.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
tool_proxy_validator.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
variable_expander.rb Fix sectionNames LTI expansion variable to return a string 2021-02-17 17:31:55 +00:00
variable_expansion.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00