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

Move classes and functions in badges/lib/awardlib.php to separate and namespaced files

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Badges
    • MOODLE_500_STABLE
    • MDL-83902-master
    • Hide

      Testing scenario 1. 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

      Testing scenario 2. 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 3. 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
      Show
      Testing scenario 1. 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 Testing scenario 2. 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 3. 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
    • Hide

      Code verified against automated checks.

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

      More information about this report

      Built on: Wed Feb 26 06:16:25 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83902 using repository: https://github.com/ngtrdai/moodle main (0 errors / 0 warnings) [branch: MDL-83902-master | CI Job ] More information about this report Built on: Wed Feb 26 06:16:25 AM UTC 2025
    • 2
    • C->HQ 2025 Sprint I2.2 Moppies

      • Classes:
        • badge_award_selector_base
        • badge_potential_users_selector
        • badge_existing_users_selector
      • Functions:
        • process_manual_award
        • process_manual_revoke

            ngtrdai Dai Nguyen Trong
            sarjona Sara Arjona (@sarjona)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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

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