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

Move class in badges/lib/bakerlib.php to separate and namespaced file

XMLWordPrintable

    • MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-83886-master
    • Hide

      Setup. Creating a New Badge

      1. Login as admin user
      2. Navigate to Site Administration > Badges > Add a new badge
      3. Fill in the required badge details:
        1. Name: "Test Achievement Badge"
        2. Description: "This is a test badge for verification purposes"
        3. Image: Upload a test badge image (PNG format)
      4. Click "Create badge"
      5. On the next screen, set badge criteria:
        1. Click "Add badge criteria"
        2. Select "Manual issue by role"
        3. Choose "Manager" or "Teacher" role
        4. Save criteria
      6. Enable the badge:
        1. Click "Enable access" under Badge status
        2. Confirm the enabling action

      Setup. Awarding the Badge

      1. Still as admin:
        1. Go to Site Administration > Badges > Manage badges
        2. Find your "Test Achievement Badge"
        3. Click on "Recipients" (0)
        4. Click "Award badge"
      2. In the award screen:
        1. Search for your test user
        2. Select the user
        3. Click "Award badge"

      Testing scenario. Verifying and Downloading Badge

      1. Logout from admin account
      2. Login as the test user
      3. Navigate to profile menu > Badges or directly to badges/mybadges.php
      4. Verify:
        1. The awarded badge is visible
        2. Badge details are correct
      5. Test download:
        1. Click on the badge
        2. Click "Download" button
        3. Verify the badge file downloads successfully
      6. Open the badge with a text editor.
      7. Confirm that there is a JSON with the badge information at the end of the badge.
      Show
      Setup. Creating a New Badge Login as admin user Navigate to Site Administration > Badges > Add a new badge Fill in the required badge details: Name: "Test Achievement Badge" Description: "This is a test badge for verification purposes" Image: Upload a test badge image (PNG format) Click "Create badge" On the next screen, set badge criteria: Click "Add badge criteria" Select "Manual issue by role" Choose "Manager" or "Teacher" role Save criteria Enable the badge: Click "Enable access" under Badge status Confirm the enabling action Setup. Awarding the Badge Still as admin: Go to Site Administration > Badges > Manage badges Find your "Test Achievement Badge" Click on "Recipients" (0) Click "Award badge" In the award screen: Search for your test user Select the user Click "Award badge" Testing scenario. Verifying and Downloading Badge Logout from admin account Login as the test user Navigate to profile menu > Badges or directly to badges/mybadges.php Verify : The awarded badge is visible Badge details are correct Test download: Click on the badge Click "Download" button Verify the badge file downloads successfully Open the badge with a text editor. Confirm that there is a JSON with the badge information at the end of the badge.
    • Hide

      Code verified against automated checks.

      Checked MDL-83886 using repository: https://github.com/ngtrdai/moodle

      More information about this report

      Built on: Fri Feb 28 06:47:49 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83886 using repository: https://github.com/ngtrdai/moodle main (0 errors / 0 warnings) [branch: MDL-83886-master | CI Job ] More information about this report Built on: Fri Feb 28 06:47:49 UTC 2025
    • 2

      Class: PNG_MetaDataHandler (only used in lib/badgeslib.php)

        1. MDL-83886.png
          683 kB
          Ron Carl Alfon Yu

            ntdat1904 Dat Nguyen
            sarjona Sara Arjona (@sarjona)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 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, 37 minutes
                6h 37m

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