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

Sync course index and course content when an element is dragged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for integration review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: Course
    • Testing Instructions:
      Hide
      1. Login as admin and create a course with some sections and activities
      2. Access the course and turn editing on
      3. Open the course index (you probably need to close the main drawer before) and uncollapse the sections with activities (or at least the sections with the activities you want  to test)
      4. Drag an activity from the course index
        1. Check the same element in the course content is displayed dimmed while you drag the element
        2. Check that both elements in the course index and the course content returns to the normal display when you stop dragging it (you can drop on an invalid screen region like the top page tool nav)
      5. Repeat step 4 for one section from the course index, one activity from the course content, and one section from the course content.
      Show
      Login as admin and create a course with some sections and activities Access the course and turn editing on Open the course index (you probably need to close the main drawer before) and uncollapse the sections with activities (or at least the sections with the activities you want  to test) Drag an activity from the course index Check the same element in the course content is displayed dimmed while you drag the element Check that both elements in the course index and the course content returns to the normal display when you stop dragging it (you can drop on an invalid screen region like the top page tool nav) Repeat step 4 for one section from the course index, one activity from the course content, and one section from the course content.
    • Affected Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      MDL-71727-master-v03
    • Sprint:
      Moppies Kanban

      Description

      Course index and course content can drag elements from one to another. The same elements (activities, sections) are present in both lists, however, when the user drags one element from one of them, the same element in the other does not change its appearances.

      It would be great if when the user drags from the course index, the same element in the course gets dimmed as well (and viceversa).

      The solution will add a new "dragging" attribute to the course state to dim the element.

      To do is so the best approach is to create a new attribute to the cm/section state that indicates if the element is dragged and then add a watcher to both components. This attribute will be the first attribute handled entirely by the frontend, and the first mutation that won't call any webservice to process an updates message.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 5 hours, 30 minutes
                  4d 5h 30m