-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
5.0
-
None
-
MOODLE_500_STABLE
-
5
MDL-84415 created a placement + its associated config, for all existing tools as part of site upgrade. The upgrade doesn't handle creation of placements for new tools though. That's what this issue is scoped with.
Note: We don't yet have a UX design for the configuration of tool placements, so this issue is an interim step. We'll use the existing form controls to control the 'mod_lti:activityplacement' directly. This will eventually be replaced by a full fledged placement management UI.
For now, let's use the same logic as the upgrade code in 84415 in determining when and how to configure the placement when saving the tool configuration form (via site admin > lti > manage tools).
The following logic is what was used in the upgrade and should also be used on form save.
- If 'coursevisible' ("Tool configuration usage") is set to "Do not show", then DO NOT create any placement, placement_config, placement_status records. The tool is hidden and placements don't apply.
- If 'coursevisible' is set to "Show as preconfigured tool", then:
- create a placement
- create placement_config
- 'default_usage' config should be set to 'disabled'
- If 'coursevisible' is set to "Show in activity chooser and as a preconf. tool" then:
- create placement
- create placement_config:
- 'default_usage' config should be set to 'enabled'
- If the state of 'coursevisible' is changed, make sure to adjust the placement + config as necessary, or, in the case of "Do not show", delete the placement + placement_config + placement_status
- will be (partly) resolved by
-
MDL-85357 Enable placement configuration during LTI tool creation
-
- Waiting for peer review
-