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

Course editor: Migrate duplicate activity course tools to the new reactive actions.

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_402_STABLE
    • MDL-74987-master
    • Hide

      General duplicate features are covered by automated tests.

      Manual test: drag+ALT to duplicate

      1. Create a course with some activities (at least 2 in topic 1) and some sections (at least 2 topics).
      2. Login as teacher/admin into the course and enable edit mode
      3. Start dragging the first activity from the page content
      4. Press ALT key while dragging the activity and drop it under the other activity in the course content.
        1. Check the activity is duplicated instead of moved.
      5. Drag the first activity again, but this time from the course index.
      6. Press ALT key while dragging the activity and drop it under the other activity in the course index.
        1. Check the activity is duplicated instead of moved.
      7. Drag the first activity again, but this time from content.
      8. Press ALT key while dragging the activity and drop it over the section 2 title in the course index.
        1. Check the activity is duplicated instead of moved.
      9. Drag the first activity again but this time from the course index.
      10. Press ALT key while dragging the activity and drop it over the section 2 title in the course content.
        1. Check the activity is duplicated instead of moved.
      Show
      General duplicate features are covered by automated tests. Manual test: drag+ALT to duplicate Create a course with some activities (at least 2 in topic 1) and some sections (at least 2 topics). Login as teacher/admin into the course and enable edit mode Start dragging the first activity from the page content Press ALT key while dragging the activity and drop it under the other activity in the course content. Check the activity is duplicated instead of moved. Drag the first activity again, but this time from the course index . Press ALT key while dragging the activity and drop it under the other activity in the course index. Check the activity is duplicated instead of moved. Drag the first activity again, but this time from content . Press ALT key while dragging the activity and drop it over the section 2 title in the course index. Check the activity is duplicated instead of moved. Drag the first activity again but this time from the course index . Press ALT key while dragging the activity and drop it over the section 2 title in the course content. Check the activity is duplicated instead of moved.
    • 3
    • HQ Sprint 1.2 Moppies

    Description

      Since Moodle 4.0 the course editor frontend part uses two main modules to handle the edition tools:

      • core_course/actions: responsible for handling all non-reactive tools and the legacy formats
      • core_courseformat/courseeditor: the new reactive library that updates the course index and the course content

      Since the reactive implementation starts, the final goal is to replace all legacy actions with the new ones as soon as possible. The most complex ones like moving elements, deleting, and creating sections are already migrated and others like indent are just deprecated (or leave it to third-party plugins).

      In this issue the visibility tools will be migrated to the new module:

      • Duplicate activity

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              tusefomal Ferran Recio
              Laurent David Laurent David
              Amaia Anabitarte Amaia Anabitarte
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours, 6 minutes
                  1d 5h 6m