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

Upgrade loglevel.js to 1.6.2

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8
    • 3.8
    • Libraries
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-65757-master
    • Hide
      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 Site admin -> Development -> Debugging -> Debug messages to 'Developer'.
        Note: You can instead run mdk run mindev if you use mdk
      3. Open the developer tools in your browser (Hit F12, or right click => inspect element)
      4. View the "Console"
      5. Go to Site admin -> Development -> Template Library admin tool
      6. Search for the "test" template
      7. Select the template
        1. Confirm that you see "{{Could not parse json example context for template.{{" with a stack trace etc.
      8. Set Site admin -> Development -> Debugging -> Debug messages to 'None'.
        Note: You can instead run mdk run undev if you use mdk
      9. Go to Site admin -> Development -> Template Library admin tool
      10. Search for the "test" template
      11. Select the template
        1. Confirm that you do not see any new error messages in the Developer tools console
      Show
      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 Site admin -> Development -> Debugging -> Debug messages to ' Developer '. Note: You can instead run mdk run mindev if you use mdk Open the developer tools in your browser (Hit F12, or right click => inspect element) View the "Console" Go to Site admin -> Development -> Template Library admin tool Search for the " test " template Select the template Confirm that you see "{{Could not parse json example context for template.{{" with a stack trace etc. Set Site admin -> Development -> Debugging -> Debug messages to ' None '. Note: You can instead run mdk run undev if you use mdk Go to Site admin -> Development -> Template Library admin tool Search for the " test " template Select the template Confirm that you do not see any new error messages in the Developer tools console

      loglevel.js /lib/amd/src/loglevel.js 1.5.1 1.6.2 https://github.com/pimterry/loglevel

      Can be skipped, or can do this now so that we are on the latest release as the project hasn't seen any other upgrades for 18 months.

            lameze Simey Lameze
            dobedobedoh Andrew Lyons
            Mihail Geshoski Mihail Geshoski
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

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