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

Improve section and activity settings form to load access restrictions

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-78607-master
    • Hide

      Setup

      1. Login as administrator
      2. Create a course with at least one section
        1. Add access restrictions to the section
      3. Create an Assignment activity
        1. Add access restrictions to the assignment

      Test

      1. Go to the course main page
      2. Click on the Edit settings in the restrictions area of the section.
      3. Confirm that a loading spinner appears while the restrictions are loading
      4. Click on save changes and go back to the course
      5. Click on the Edit settings in the restrictions area of the assignment.
      6. Confirm that a loading spinner appears while the restrictions are loading

      Note: If the loading time is too fast to appreciate the loading spinner, you can add these lines to the config.php file to slow the site:

      if (defined('AJAX_SCRIPT')) {
          sleep(5);
      }
      

      Show
      Setup Login as administrator Create a course with at least one section Add access restrictions to the section Create an Assignment activity Add access restrictions to the assignment Test Go to the course main page Click on the Edit settings in the restrictions area of the section. Confirm that a loading spinner appears while the restrictions are loading Click on save changes and go back to the course Click on the Edit settings in the restrictions area of the assignment. Confirm that a loading spinner appears while the restrictions are loading Note: If the loading time is too fast to appreciate the loading spinner, you can add these lines to the config.php file to slow the site: if (defined('AJAX_SCRIPT')) { sleep(5); }
    • HQ 2023 Sprint I3.2 Moppies

      When editing section or activity settings, the 'Access restrictions' field shows a JSON object in a textarea input that is "rendered" as a form using YUI code. This was not a problem because 'Restrict access' settings group is collapsed by default, so usually the YUI code is executed before the user sees it.

      But after changes done in MDL-78288 the issue is more obvious. We decided to hide the textarea while rendering the information in an understandable way for the user in MDL-78288, but this should be improved.

      This issue is about adding a loading option while the 'Access restrictions' field is totally ready to be shown to the user.

      Link to the Figma design

        1. (1) 3 Passed -- (Master)MDL-78607.png
          49 kB
          Kim Jared Lucas
        2. (1) 6 Passed -- (Master)MDL-78607.png
          42 kB
          Kim Jared Lucas
        3. Edit restrictions.png
          60 kB
          Sabina Abellan

            mikelmartíncorrales Mikel Martín Corrales
            amaia Amaia Anabitarte
            Carlos Escobedo Carlos Escobedo
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            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 - 4 hours, 50 minutes
                4h 50m

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