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

Course index on activity view page

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-71795-master
    • Hide

      General feature tested by the behat test: course/format/tests/behat/course_courseindex.feature

      Manual participants page type test

      1. Create a course and access the participants page
      2. Inspect the page
        1. Check the body ID is "page-course-view-participants"
        2. Check that the course index is NOT available in that page

      Manual course index cache test

      1. Open Chrome (this test requires the chrome debug panel)
      2. Make sure you have all the caches enabled. If you use mdk you can execute "mdk run undev.php"
      3. Open the chrome debug panel (F12 key usually, or right click on an element and "inspect").
      4. Login into the instance
      5. Open the "Application" tab and click on Storage -> Session storage -> htpp://localhost (the localhost can change depending on your server configuration)
      6. Login into the instance and access the course without editing mode
      7. Check the Application Session Storage from the page has those entries (XXX means some integer):
        1. "XXX/course/XXX/courseindex" with value like "{"stateKey:...."
        2. "XXX/course/XXX/stateKey" with a number (note it down, you need to compare later)
        3. "XXX/course/XXX/staticState" with something like "{"course:..."
      8. Reload the page keeping the Application tab opened
        1. Check the values from step 7 remains the same
      9. Turn editing on and modify the course (change the name of section/activity, move some activity to another topic... anything that alters the course structure)
      10. Turn editing off with the Application tab still open
        1. Check that "XXX/course/XXX/stateKey" has now a different number
      Show
      General feature tested by the behat test: course/format/tests/behat/course_courseindex.feature Manual participants page type test Create a course and access the participants page Inspect the page Check the body ID is "page-course-view-participants" Check  that the course index is NOT available in that page Manual course index cache test Open Chrome (this test requires the chrome debug panel) Make sure you have all the caches enabled. If you use mdk you can execute "mdk run undev.php" Open the chrome debug panel (F12 key usually, or right click on an element and "inspect"). Login into the instance Open the "Application" tab and click on Storage -> Session storage -> htpp://localhost (the localhost can change depending on your server configuration) Login into the instance and access the course without editing mode Check the Application Session Storage from the page has those entries (XXX means some integer): "XXX/course/XXX/courseindex" with value like "{"stateKey:...." "XXX/course/XXX/stateKey" with a number ( note it down, you need to compare later) "XXX/course/XXX/staticState" with something like "{"course:..." Reload the page keeping the Application tab opened Check the values from step 7 remains the same Turn editing on and modify the course (change the name of section/activity, move some activity to another topic... anything that alters the course structure) Turn editing off with the Application tab still open Check that "XXX/course/XXX/stateKey" has now a different number
    • Moppies Kanban

    Description

      As a user
      I want to be able to see the whole structure of a course while working on an activity
      so I can get a better overview of the course.

       

      Course index will be available in activity view pages for all users in view mode.

       

        

       

      Prototype:

       

      Acceptance criteria:

      1. The course index is available for all users in all activity pages for all users.
      2. The section contains the current activity is expanded in the course index.
      3. If the section was collapsed in the course index when the user visits the activity, the section will be expanded while the user works with the activity, but will be collapsed when the user goes back to course page. If the section has not been expanded actively by the user, the status of that section is not saved as user preference. 
      4. The activity is marked as 'active' in the course index.
      5. The course index is always on view mode.
      6. Drag&drop options are not available for teachers in any of the activity pages. 

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              amaia Amaia Anabitarte
              Carlos Escobedo Carlos Escobedo
              Andrew Lyons Andrew Lyons
              Gladys Basiana Gladys Basiana
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days
                  4d