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

New course format level setting to enable/disable course indentation in 4.0 and 4.1 (backport of MDL-76991)

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76994-401
    • Hide

      Main feature covered by behats.

      Test for both Topics and Weeks format courses.

      UI changes - Manual testing

      1. As admin create a new site.
      2. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing. 
      3. Confirm the 'Use indentation' setting value is Yes by default.
      4. Create a course using the format you are testing with at least 2 activities.
      5. Open action menu for first activity and Move Right.
      6. Confirm the first activity has a bigger margin on the left and has no border anymore.
      7. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing 
      8. Disable 'Use indentation' setting and Save changes.
      9. Go to the course.
      10. Confirm the first activity has a border and the same left margin as the rest of the activities.

      Upgrading from 3.11 - Manual testing

      1. Create a new 3.11 instance.
      2. Upgrade to this patch.
      3. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing 
      4. Confirm the 'Use indentation' setting value is Yes.

      Upgrading from 4.0 - Manual testing

      1. Create a new 4.0 instance.
      2. Upgrade to this patch.
      3. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing 
      4. Confirm the 'Use indentation' setting value is No.

      Web services for mobile

      1. As an admin create a course using the format you are testing (remember the COURSE_ID)
      2. Enable "Enable web services for mobile devices": Site administration ► General ► Advanced features
      3. Create a Token for any user on the site
        Click on Site administration ► Web services ► Manage tokens
      4. Next, you can do a CURL REST call simulating a WS client with the user token.
      5. You need to replace the $wstoken and the MOODLE_URL of your moodle instance

        curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=core_course_get_courses_by_field&field=id&value=COURSE_ID&wstoken=$wstoken' | python -m json.tool

      1. Confirm that you see an entry for the "indentation" setting with the correct value (1 if enabled, 0/empty otherwise)
      Show
      Main feature covered by behats. Test for both Topics and Weeks format courses. UI changes - Manual testing As admin create a new site. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing.  Confirm the 'Use indentation' setting value is Yes by default. Create a course using the format you are testing with at least 2 activities. Open action menu for first activity and Move Right. Confirm the first activity has a bigger margin on the left and has no border anymore. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing  Disable 'Use indentation' setting and Save changes. Go to the course. Confirm the first activity has a border and the same left margin as the rest of the activities. Upgrading from 3.11 - Manual testing Create a new 3.11 instance. Upgrade to this patch. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing  Confirm the 'Use indentation' setting value is Yes. Upgrading from 4.0 - Manual testing Create a new 4.0 instance. Upgrade to this patch. Go to Site administration > Plugins > Course format > Topics format or Weeks format depending on the format you are testing  Confirm the 'Use indentation' setting value is No. Web services for mobile As an admin create a course using the format you are testing (remember the COURSE_ID) Enable "Enable web services for mobile devices": Site administration ► General ► Advanced features Create a Token for any user on the site Click on Site administration ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user token. You need to replace the $wstoken and the MOODLE_URL of your moodle instance curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=core_course_get_courses_by_field&field=id&value=COURSE_ID&wstoken=$wstoken' | python -m json.tool Confirm that you see an entry for the " indentation " setting with the correct value (1 if enabled, 0/empty otherwise)
    • 1
    • HQ 2023 Sprint i1.3 Moppies

      As indentation was removed for 4.0, we want to recover it for 4.0 and 4.1

        1. UI changes.png
          UI changes.png
          221 kB
        2. Upgrading from 311.png
          Upgrading from 311.png
          345 kB
        3. Upgrading from 4.png
          Upgrading from 4.png
          345 kB
        4. Web services for mobile.png
          Web services for mobile.png
          171 kB

            amaia Amaia Anabitarte
            amaia Amaia Anabitarte
            Carlos Escobedo Carlos Escobedo
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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