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

Create section with "New section" name and stop using the auto-renaming for the topics course format

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-80460-main
    • Hide

      Setup

      1. In a Moodle site without the patch, create a course with the topics format. Rename one of the sections (not the General).
      2. Create another course with the weeks format. Rename one of the sections (not the General).
      3. Apply the patch and run the upgrading process.

      Testing scenario

      1. Go to the course with the topics format.
      2. Check that all the sections but General and the renamed one are "Topic x".
      3. Enable edit mode.
      4. Create a new section. Check it's named "New section".
      5. Access to the New section page.
      6. Check the page title starts with "Edit Section: New section |".
      7. Disable edit mode.
      8. Check the page title starts with "Section: New section".
      9. Go to the course with the weeks format.
      10. Check that all the sections but General and the renamed are still the week dates.
      11. Create a new week. Check it's named with the proper week dates.
      12. Access to the New week page.
      13. Check the page title starts with "Edit Week: [week date] |".
      14. Disable edit mode.
      15. Check the page title starts with "Week: New section".
      Show
      Setup In a Moodle site without the patch, create a course with the topics format. Rename one of the sections (not the General). Create another course with the weeks format. Rename one of the sections (not the General). Apply the patch and run the upgrading process. Testing scenario Go to the course with the topics format. Check that all the sections but General and the renamed one are "Topic x". Enable edit mode. Create a new section. Check it's named "New section". Access to the New section page. Check the page title starts with "Edit Section: New section |". Disable edit mode. Check the page title starts with "Section: New section". Go to the course with the weeks format. Check that all the sections but General and the renamed are still the week dates. Create a new week. Check it's named with the proper week dates. Access to the New week page. Check the page title starts with "Edit Week: [week date] |". Disable edit mode. Check the page title starts with "Week: New section".
    • 5
    • HQ2024 Sprint I1.1 Moppies

      This issue is part of the course hierarchy epic.

      Issue Goals

      • The default name for the topics format should be "New section" instead of "Topic x", where x is the section number. The current naming convention for the weeks' format should be retained (so "New section" will be used only for topics; weeks keep displaying the week date, like "10 February - 16 February").
      • Add a migration process that iterates over all section records for the courses using the topics format with null names and sets the name attribute to the result of executing the format get_section_name.
      • Review the page titles to guarantee they follow the expected format for each course format (for instance, it means replacing Topic with Section for the format_topics).
      • Probably, once this issue is fixed, we'll need to confirm if the "Custom" checkbox available in the Edit settings page for sections is still required (at least for the Custom sections course format). It can be fixed as a separate issue, but leaving a note here to remember to check it (based on MDL-80541 proposal). --> MDL-80923

      Future issues

      From now on, the default section name for the topics course format won't have the section number and won't be renamed when moved. All sections will be created as "New section" whether sections or subsections.

        1. app-tests-failure.png
          app-tests-failure.png
          24 kB
        2. app-tests-success.png
          app-tests-success.png
          20 kB
        3. MDL-80460.png
          MDL-80460.png
          1.25 MB
        4. RE-MDL-80460.png
          RE-MDL-80460.png
          982 kB

            sarjona Sara Arjona (@sarjona)
            tusefomal Ferran Recio
            Mikel Martín Corrales Mikel Martín Corrales
            Ferran Recio Ferran Recio
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours, 34 minutes
                2d 2h 34m

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