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

Migrate moodle- YUI modules to use shifter

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4
    • Fix Version/s: DEV backlog
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      Generic Notes

      These testing instructions should be carried out twice (once with jsrev = -1, once without) to confirm that the correct versions of JS are used and work as expected.

      Tip: Open your browser's developer toolkit, open the 'Network' activity tab, and restrict to 'Scripts'.

      Note: You may find that the script you're looking for is included with a number of other scripts - this is because of our combo loading.
      You can turn off comboloading to make it easier to check the relevant script by setting

      $CFG->yuicomboloading = false;

      , but you should check that functionality works with combo loading enabled.

      To test the minified code:

      Required settings:

      // Ensure you aren't overriding $CFG->jsrev
      $CFG->debug = 0;
      

      Notes

      Check that the minified version of this module is loaded.
      It will have -min.js in the filename but please ensure content is also be minified

      and to test the non-minified code:

      Required settings:

      $CFG->jsrev = -1;
      $CFG->debug = (E_ALL | E_STRICT);
      

      Notes

      Check that the non-minified version of this module is loaded.
      It will have -debug.js in the filename and the file content should not be minified.

      Module-specific test instructions

      Show
      Generic Notes These testing instructions should be carried out twice (once with jsrev = -1, once without) to confirm that the correct versions of JS are used and work as expected. Tip : Open your browser's developer toolkit, open the 'Network' activity tab, and restrict to 'Scripts'. Note : You may find that the script you're looking for is included with a number of other scripts - this is because of our combo loading. You can turn off comboloading to make it easier to check the relevant script by setting $CFG->yuicomboloading = false; , but you should check that functionality works with combo loading enabled. To test the minified code: Required settings: // Ensure you aren't overriding $CFG->jsrev $CFG->debug = 0; Notes Check that the minified version of this module is loaded. It will have -min.js in the filename but please ensure content is also be minified and to test the non-minified code: Required settings: $CFG->jsrev = -1; $CFG->debug = (E_ALL | E_STRICT); Notes Check that the non-minified version of this module is loaded. It will have -debug.js in the filename and the file content should not be minified. Module-specific test instructions
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      Move all of our YUI modules to use shifter. We have modules currently located in:
      ./backup/util/ui/yui
      ./blocks/community/yui
      ./blocks/navigation/yui
      ./calendar/yui
      ./course/yui
      ./enrol/cohort/yui
      ./enrol/manual/yui
      ./enrol/yui
      ./filter/glossary/yui
      ./grade/grading/yui
      ./lib/editor/tinymce/yui
      ./lib/form/yui
      ./lib/yui

        Attachments

          Issue Links

          1.
          Rebuild moodle-core-tooltip Sub-task Closed Andrew Nicols
          2.
          Migrate moodle-editor_tinymce-collapse to Shifter Sub-task Closed Andrew Nicols
          3.
          Migrate moodle-core-notification to shifter Sub-task Closed Andrew Nicols
          4.
          Migrate moodle-core-popuphelp to Shifter Sub-task Closed Andrew Nicols
          5.
          Migrate moodle-core-chooserdialogue to use Shifter Sub-task Closed Andrew Nicols
          6.
          Migrate moodle-block_navigation-navigation to use Shifter Sub-task Closed Andrew Nicols
          7.
          Migrate moodle-core-blocks to use Shifter Sub-task Closed Andrew Nicols
          8.
          Migrate moodle-core-chooserdialogue to use Shifter Sub-task Closed Andrew Nicols
          9.
          Migrate moodle-core-formautosubmit to use Shifter Sub-task Closed Andrew Nicols
          10.
          Migrate moodle-core-formchangechecker to use Shifter Sub-task Closed Andrew Nicols
          11.
          Migrate moodle-calendar-eventmanager to use Shifter Sub-task Closed Andrew Nicols
          12.
          Migrate moodle-filter_glossary-autolink to use Shifter Sub-task Closed Andrew Nicols
          13.
          Migrate moodle-core-dragdrop to use Shifter Sub-task Closed Andrew Nicols
          14.
          Migrate moodle-form-shortforms to use Shifter Sub-task Closed Andrew Nicols
          15.
          Migrate moodle-form-showadvanced to use Shifter Sub-task Closed Andrew Nicols
          16.
          Migrate moodle-course-toolboxes to use Shifter Sub-task Closed Andrew Nicols
          17.
          Migrate moodle-backup-confirmcancel to Shifter Sub-task Closed Andrew Nicols
          18.
          Migrate moodle-backup-backupselectall to use Shifter Sub-task Closed Andrew Nicols
          19.
          Migrate moodle-block_community-comments to use Shifter Sub-task Open Unassigned
          20.
          Migrate moodle-block_community-imagegallery to use Shifter Sub-task Open Unassigned
          21.
          Migrate moodle-course-dragdrop to use Shifter Sub-task Closed Andrew Nicols
          22.
          Migrate moodle-course-formatchooser to use Shifter Sub-task Closed Andrew Nicols
          23.
          Migrate moodle-course-modchooser to use Shifter Sub-task Closed Andrew Nicols
          24.
          Migrate moodle-course-coursebase to use Shifter Sub-task Closed Andrew Nicols
          25.
          Migrate moodle-enrol_manual-quickenrolment to use Shifter Sub-task Open Unassigned
          26.
          Migrate moodle-enrol-otherusersmanager to use Shifter Sub-task Open Unassigned
          27.
          Migrate moodle-enrol-rolemanager to use Shifter Sub-task Open Unassigned
          28.
          Migrate moodle-form-checkboxcontroller to use Shifter Sub-task Open Unassigned
          29.
          Migrate moodle-form-dateselector to use Shifter Sub-task Open Unassigned
          30.
          Migrate moodle-form-listing to use Shifter Sub-task Open Unassigned
          31.
          Migrate moodle-form-passwordunmask to use Shifter Sub-task Closed Andrew Nicols
          32.
          Migrate moodle-form-shortforms to use Shifter Sub-task Closed Andrew Nicols
          33.
          Migrate moodle-form-showadvanced to use Shifter Sub-task Closed Andrew Nicols
          34.
          Migrate moodle-core_grading-manage to use Shifter Sub-task Open Unassigned
          35.
          Migrate moodle-mod_assign-history to use Shifter Sub-task Closed Andrew Nicols

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dobedobedoh Andrew Nicols
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: