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

Deprecate unused backpack js functions

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • MOODLE_311_STABLE
    • MDL-69792-master
    • Hide

      Requirements

      • 2 different Badgr.io US accounts
      • Outgoing server configured (mailcacher or similar)
      • ngrok or similar (for having a public URL in your Moodle instance).
      • Enable Moodle debugging (DEVELOPER MODE).

       Setup backpack

      1. In "Site administration / Badges / Manage backpacks", edit "https://badgr.io" backpack and:
        1. Enable "Include authentication details with the backpack".
        2. Set the Badge issuer email address and password with one of the Badgr accounts.

      Testing scenario 1: Create badges

      1. Login as admin.
      2. Go to "Site administration | Badges | Add a new badge" and create a badge at site level ("Badge 1").
      3. Check no deprecation warning is displayed.
      4. Add criteria to the badge so it can be manually issued by role.
      5. Go to "Site administration | Badges | Add a new badge" and create another badge at site level ("Badge 2").
      6. Add criteria to the badge so it can be manually issued by role.
      7. Enable both badges.
      8. Issue the badges to the admin user.
      9. Go to "Site administration | Badges | Manage badges".
      10. Check no deprecation warning is displayed.

      Testing scenario 2: List badges

      1. Go to "Dashboard / Preferences / Badges / Backpack settings"
      2. Connect to Badgr using account 2 (you'll need to check the email to verify the account).
      3. Check the state is set to "Connected" in the "Dashboard / Preferences / Badges / Backpack settings" page.
      4. Access to admin profile page.
      5. Check "Badge 1" and "Badge 2" are displayed in the "Badges" section.
      6. Access to "Badge 1".
      7. Check no deprecation warning is displayed.
      8. Check the "Add to backpack" button is displayed.
      9. Go to "Dashboard / Preferences / Badges / Manage badges".
      10. Check no deprecation warning is displayed.
      11. Check "Badge 1" and "Badge 2" are displayed and they have the "Add to backpack" icon.

       

      Show
      Requirements 2 different Badgr.io US accounts Outgoing server configured (mailcacher or similar) ngrok or similar (for having a public URL in your Moodle instance). Enable Moodle debugging (DEVELOPER MODE).  Setup backpack In "Site administration / Badges / Manage backpacks", edit "https://badgr.io" backpack and: Enable "Include authentication details with the backpack". Set the Badge issuer email address and password with one of the Badgr accounts. Testing scenario 1: Create badges Login as admin. Go to "Site administration | Badges | Add a new badge" and create a badge at site level ("Badge 1"). Check no deprecation warning is displayed. Add criteria to the badge so it can be manually issued by role. Go to "Site administration | Badges | Add a new badge" and create another badge at site level ("Badge 2"). Add criteria to the badge so it can be manually issued by role. Enable both badges. Issue the badges to the admin user. Go to "Site administration | Badges | Manage badges". Check no deprecation warning is displayed. Testing scenario 2: List badges Go to "Dashboard / Preferences / Badges / Backpack settings" Connect to Badgr using account 2 (you'll need to check the email to verify the account). Check the state is set to "Connected" in the "Dashboard / Preferences / Badges / Backpack settings" page. Access to admin profile page. Check "Badge 1" and "Badge 2" are displayed in the "Badges" section. Access to "Badge 1". Check no deprecation warning is displayed. Check the "Add to backpack" button is displayed. Go to "Dashboard / Preferences / Badges / Manage badges". Check no deprecation warning is displayed. Check "Badge 1" and "Badge 2" are displayed and they have the "Add to backpack" icon.  
    • Moppies Kanban

      Deprecate backpack.js functions and file that were deprecated in 3.7.  

       

      Another point to note is that badges_check_backpack_accessibility would need to be deprecated as well considering it's only used in badges/ajax.php which in turn is only called from backpack.js

            sarjona Sara Arjona (@sarjona)
            peterdias Peter Dias
            Carlos Escobedo Carlos Escobedo
            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 - 6 hours, 35 minutes
                6h 35m

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