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

Better way to select user when millions of user are in the database

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.2, 3.8.2
    • Fix Version/s: None
    • Component/s: Forms Library, Web Services
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as admin
      2. Create two new users
        1. Barbara Broccoli
        2. Charlie Cheese
      3. Navigate to Plugins > Web services > Manage tokens in Site administration
      4. Press Add
      5. In the User autocomplete field enter "Charlie"
      6. Click on Charlie Cheese
      7. Press Save changes
      8. Confirm new token is issued to selected user
      Show
      Login as admin Create two new users Barbara Broccoli Charlie Cheese Navigate to Plugins > Web services > Manage tokens in Site administration Press Add In the User autocomplete field enter "Charlie" Click on Charlie Cheese Press Save changes Confirm new token is issued to selected user
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_38_STABLE
    • Pull Master Branch:

      Description

      For Administration > Plugins > Web services > Manage token > Add, we implemented a username/userid text box when the user total > 500. It's because a select box reach out of memory.

      I suggest to get an autocompletion text box a la Facebook. I created this one (you can see it when adding a token):
      https://github.com/mouneyrac/moodle/tree/wip-MDL-30140

      It needs small refactoring to have a generic version, testing, and overwritting the no-javascript work.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              jerome Jérôme Mouneyrac
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h