Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51814

Unable to cancel installation of a subplugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.0
    • Administration
    • None
    • MOODLE_30_STABLE

      As discovered by poltawski while reviewing MDL-49329 (the comment), there is no way to cancel installation of a subplugin.

      I ended up with with workshop evaluation method which could not be cancelled from installation

      My response was

      I see. Hmm. This is because core_plugin_manager::can_cancel_plugin_installation() returns false for all subplugins. I remember adding that because I was in another situation: I tried to install mod_hotpot which comes with many subplugins in its package. In that case, the subplugins coming as a part of the parent plugin must not be cancellable because the parent module can implicitly require them to work properly.

      We would somehow need to recognize that the subplugin is being installed independently and not as a part of the parent plugin. Not sure at the moment how to do that reliably...

      Well, we could at least cover the scenario that (1) the parent plugin is a standard one and (2) the subplugin is additional. In that case, it is reasonable to expect that the subplugin's installation can be safely cancelled.

            Unassigned Unassigned
            mudrd8mz David Mudrák (@mudrd8mz)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.