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

Upgrade loglevel library to 1.4.0 for Moodle 3.0 release

    XMLWordPrintable

    Details

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

      Create this template:

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

      in lib/templates/test.mustache

      Set debugging on.

      Go to the Template Library admin tool and view the test template with your javascript console open. You should see "Could not parse json example context for template." with a stack trace etc.

      Set the loglevel to "None". Repeat the test. There should be no message in the javascript console.

      Show
      Create this template: {{! @template core/test Testing template. Example context (json): { "messa"ge": "Your pants are on fire!" } }} <div class="alert alert-success">{{{message}}}</div> in lib/templates/test.mustache Set debugging on. Go to the Template Library admin tool and view the test template with your javascript console open. You should see "Could not parse json example context for template." with a stack trace etc. Set the loglevel to "None". Repeat the test. There should be no message in the javascript console.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51539-master

      Description

      Library loglevel
      Current version 1.2.0
      Latest version 1.4.0
      https://github.com/pimterry/loglevel

        Attachments

          Activity

            People

            Assignee:
            damyon Damyon Wiese
            Reporter:
            dmonllao David Monllaó
            Peer reviewer:
            Jun Pataleta Jun Pataleta
            Integrator:
            Dan Poltawski Dan Poltawski
            Tester:
            Ryan Wyllie Ryan Wyllie
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              16/Nov/15