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

Add a dialogue message warning that the importation, backup and restore process of a course can be long and prevent clicking twice on the import

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1, 2.2, 2.5
    • Fix Version/s: None
    • Component/s: Backup, JavaScript
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Log in as a teacher in a course
      2. Begin the import steps
      3. At the last step, that of confirmation, click on the button "Perform import"
      4. A confirm dialogue should appear
      5. If the "Cancel" or the "Close" button is clicked, the confirm dialogue is closed (this should also work with the Escape and Return keys)
      6. If the "Perform backup" is clicked, the confirm dialogue is closed and a progress bar dialogue is displayed with this properties:
        1. No "Close" button, so impossible to close it.
        2. The animated gif of the progress bar should be animated on all browser
        3. The progress bar dialogue should be always centered on the screen when we scroll or resize it.
      7. Repeat the steps for backup and restore step. The only differences should be on the backup, restore and import strings.
      8. Test this on all supported browsers.
      Show
      Log in as a teacher in a course Begin the import steps At the last step, that of confirmation, click on the button "Perform import" A confirm dialogue should appear If the "Cancel" or the "Close" button is clicked, the confirm dialogue is closed (this should also work with the Escape and Return keys) If the "Perform backup" is clicked, the confirm dialogue is closed and a progress bar dialogue is displayed with this properties: No "Close" button, so impossible to close it. The animated gif of the progress bar should be animated on all browser The progress bar dialogue should be always centered on the screen when we scroll or resize it. Repeat the steps for backup and restore step. The only differences should be on the backup, restore and import strings. Test this on all supported browsers.
    • Workaround:
      Hide

      Tell users to not click many times on the button

      Show
      Tell users to not click many times on the button
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-31403-master

      Description

      Currently, if we click twice on the button that performs the import, the modules can import as many times as there are clicks.

      In addition, there is no mention that indicates the time that this process can take. Indeed, when importing a large course, the process can take several minutes.

      It should therefore either add a message with a flag indicating that the loading process can be long while disabling the import button after clicking either implemented the progress bar used for example when importing language packs.

      Please note that the same kind of improvement should be made during the backup.

      To Reproduce:

      1. Log in as a teacher in a course
      2. Begin the import steps
      3. At the last stage, that of confirmation, click several times on the button "Perform import"
      4. The course modules to be imported will be included several times

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  6 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: