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

Adding a new external backpack is not checking the values added are unique

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.4, 3.10.1
    • Fix Version/s: None
    • Component/s: Badges
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE

      Description

      'badge_external_backpack' table has two unique index:

      • backpackapiurl
      • backpackweburl

      Before inserting a new backpack in the database we should check the values don't exist.

      Steps to reproduce:

      1. Go to site administration > Badges > Manage backpacks
      2. Add a new backpack
      3. Backpack API URL = https://api.badgr.io/v2 and Backpack URL = https://badgr.io
      4. Save changes
      5. Add a new backpack
      6. Backpack API URL = https://api.badgr.io/v2 and/or Backpack URL = https://badgr.io
      7. Save changes

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            amaia Amaia Anabitarte
            Participants:
            Component watchers:
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: