Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4408

Stop injecting addon/mod services to all site plugins

XMLWordPrintable

      Right now the app injects most services so site plugins can use them. This can have an impact on performance, and in general it doesn't make much sense that a plugin can access the functionalities of a certain activity.

      The only exception are subplugins. E.g. accessrules plugins should have access to the quiz services because they're a quiz subplugin.

      After this change, if a plugin still needs to do something with a certain activity they can always replicate the code in their JS.

      This would be the first step towards something that we've wanted to do for a while: decrease the number of services/functions injected to plugins, and have more control over it. This isn't only a problem in performance, it also makes it harder to maintain the code because any change in those services can potentially break plugins.

            Unassigned Unassigned
            dpalou Dani Palou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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