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

Upgrade loglevel.js to 1.5.1 for Moodle 3.4 release

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide

      Testing instructions stolen from MDL-56010

      1. Create this test template in lib/templates/test.mustache

        {{!                                                                                                                                 
            @template core/test                                                                                                             
                                                                                                                                            
            Testing template.                                                                                                               
                                                                                                                                            
            Example context (json):                                                                                                         
            { "messa"ge": "Your pants are on fire!" }                                                                                       
        }}                                                                                                                                  
        <div class="alert alert-success">{{{message}}}</div>
        

      2. Set debugging to 'Developer'.
      3. Go to the Template Library admin tool and view the test template with your javascript console open. Confirm that you see "Could not parse json example context for template." with a stack trace etc.
      4. Set the loglevel to "None". You may need to force a cache reload. Repeat the test. Confirm that you don't see any message in the javascript console this time.
      Show
      Testing instructions stolen from MDL-56010 Create this test template in lib/templates/test.mustache {{! @template core/test Testing template. Example context (json): { "messa"ge": "Your pants are on fire!" } }} <div class="alert alert-success">{{{message}}}</div> Set debugging to 'Developer'. Go to the Template Library admin tool and view the test template with your javascript console open. Confirm that you see "Could not parse json example context for template." with a stack trace etc. Set the loglevel to "None". You may need to force a cache reload. Repeat the test. Confirm that you don't see any message in the javascript console this time.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-60285-master
    • Sprint:
      3.4 Sprint 5

      Description

      loglevel.js
      /lib/amd/src/loglevel.js
      1.4.1 -> 1.5.0
      https://github.com/pimterry/loglevel

        Attachments

          Activity

            People

            Assignee:
            abgreeve Adrian Greeve
            Reporter:
            marina Marina Glancy
            Peer reviewer:
            David Mudrák (@mudrd8mz)
            Integrator:
            David Monllaó
            Tester:
            David Monllaó
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Nov/17