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

Enable drag & drop from course index to course content and viceversa.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: Course
    • Testing Instructions:
      Hide

      Manual testing:

      1. Login as admin and create a topic format course with some activities and sections
      2. Access the course and enable edition.
      3. Display the course index and uncollapse some of the topics with activities (you probably need to close the main drawer to display the course index)
      4. Start dragging an activity from the course content:
        1. Check the element is dimmed in the course content while you drag it 
        2. Check when you move over other course content activities a black line appears indicating the drop position.
        3. Check when you move over a section title it highlights the section title as a dropzone
        4. Check when you move over a course index activity it shows a black line representing the drop position
        5. Check when you move over a course index section title it highlights as a dropzone.
      5. Drop the element in the page-top bar (where the instance title is)
        1. Check that the element is not dimmed anymore.
      6. Drag&drop the activity from the content to somewhere in the course index
        1. Check that a few seconds later the activity has changed its position in both course content and course index.
      7. Repeat the same test but with an activity from the course index (and drop it on the course content)
      Show
      Manual testing: Login as admin and create a topic format course with some activities and sections Access the course and enable edition. Display the course index and uncollapse some of the topics with activities (you probably need to close the main drawer to display the course index) Start dragging an activity from the course content: Check the element is dimmed in the course content while you drag it  Check when you move over other course content activities a black line appears indicating the drop position. Check when you move over a section title it highlights the section title as a dropzone Check when you move over a course index activity it shows a black line representing the drop position Check when you move over a course index section title it highlights as a dropzone. Drop the element in the page-top bar (where the instance title is) Check that the element is not dimmed anymore. Drag&drop the activity from the content to somewhere in the course index Check that a few seconds later the activity has changed its position in both course content and course index. Repeat the same test but with an activity from the course index (and drop it on the course content)
    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      MDL-71664-master-v04
    • Sprint:
      Moppies Kanban, Moppies Kanban

      Description

      The new moodle 4.0 Course editor implements a course index that has drag&drop features. However, the content drag&drop and the course Index use incompatible JS modules and cannot communicate. 

       

      This implementation will replace the current YUI drag and drop module in all formats compatible with the new UI components and the course state. Course formats that do not override "$format->supports_components" won't be able to use drag&drop in the course index and will continue using the YUI drag and drop module.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tusefomal Ferran Recio
              Reporter:
              tusefomal Ferran Recio
              Peer reviewer:
              Ilya Tregubov Ilya Tregubov
              Integrator:
              Jun Pataleta Jun Pataleta
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Dec/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 1 day
                  1w 1d