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

Convert JS to AMD ES6 modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.11
    • Fix Version/s: None
    • Component/s: Other
    • Labels:

      Description

      Description

      The Javascript included in the plugin is written using the Shifted YUI format which has been deprecated and is no longer accepted for new code included in core.

      Severity

      High. Moodle LMS is actively working to remove older Javascript with the aim to remove support for it in a future release.

      Proposed solution

      The Javascript code located in yui/src should be rewritten as ES6 modules which are located in amd/src. This body of work has several side benefits as it will allow for removal of old and unused, code, and improved consistency with other interactions in core.

      Difficulty

      Medium. Whilst this activity may be potentially time-consuming, it should not be a difficult task.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dobedobedoh Andrew Nicols
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 minutes
                6m