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

Upgrade loglevel.js to 1.6.2

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.8
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65757-master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Mihail Geshoski
              Integrator:
              Andrew Nicols
              Tester:
              Janelle Barcega
              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:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/19

                  Time Tracking

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