Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32476 Course page improvements for 2.3
  3. MDL-32508

Add paging support to weekly and topics course formats

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.3
    • 2.2
    • Course
    • None
    • MOODLE_22_STABLE
    • MOODLE_23_STABLE
    • MDL-32508-wip
    • Hide

      Test social format

      1. Create a course with format set to social
      2. Ensure the social format is working as expected

      Test scorm format

      1. Create a course with format set to scorm
      2. Upload a packaegthe social format is working as expected

      Test single page

      Setup:

      1. Create a course with course display setting set to 'single page'

      Topics:

      1. Set course format to topics
      2. Disable course ajax in Admin > Appearance > Ajax and Javascript
      3. Verify that the course appears as before change visually
      4. Turn editting on/off with the button in top right and verify you are returned to where you were
      5. Turn editting on/off with the button in the settings menu and verify you are returned to where you were
      6. Try adding a resource to a section (and you are returned to where you were)
      7. Try moving a resource between sections (and you are returned to where you were)
      8. Try indenting a section (and you are returned to where you were)
      9. Try editing a resource (and you are returned to where you were)
      10. Try hiding a resource (and you are returned to where you were)
      11. Try deleting a resource (and you are returned to where you were)
        # Try duplicating a resource (and you are returned to where you were)
      12. Try moving a section
      13. Try hiding a section
      14. Try setting a setting a section as the current topic and verify it has been marked visually
      15. Turn AJAX back on
      16. Try moving a resource between sections (turn editing off to verify this action has been completed)
      17. Try indenting a section (turn editing off to verify this action has been completed)
      18. Try hiding a resource (turn editing off to verify this action has been completed)
      19. Try deleting a resource (turn editing off to verify this action has been completed)
      20. Try moving a section around (turn editing off to verify this action has been completed successfully)
      21. Try setting a setting a section as the current topic and verify it has been marked visually (turn editing off to verify this action has been completed successfully)
      22. Try editing a section name and verify the section name appears on the main page
      23. Try increasing adding a section at the bottom of the course page when editting is on and verify the section is added

      Weeks:

      1. Set course format to topics
      2. Disable course ajax in Admin > Appearance > Ajax and Javascript
      3. Verify that the course appears as before change visually
      4. Turn editting on/off with the button in top right and verify you are returned to where you were
      5. Turn editting on/off with the button in the settings menu and verify you are returned to where you were
      6. Try adding a resource to a section (and you are returned to where you were)
      7. Try moving a resource between sections (and you are returned to where you were)
      8. Try indenting a section (and you are returned to where you were)
      9. Try editing a resource (and you are returned to where you were)
      10. Try hiding a resource (and you are returned to where you were)
      11. Try deleting a resource (and you are returned to where you were)
        # Try duplicating a resource (and you are returned to where you were)
      12. Try moving a section
      13. Try hiding a section
      14. Verify that the current week is highlighted
      15. Turn AJAX back on
      16. Try moving a resource between sections (turn editing off to verify this action has been completed)
      17. Try indenting a section (turn editing off to verify this action has been completed)
      18. Try hiding a resource (turn editing off to verify this action has been completed)
      19. Try deleting a resource (turn editing off to verify this action has been completed)
      20. Try moving a section around (turn editing off to verify this action has been completed successfully)
      21. Try editing a section name and verify the section name appears on the main page
      22. Try increasing the number of sections in the course settings and verify the section is added
      23. Try increasing adding a section at the bottom of the course page when editting is on and verify the section is added

      Test multiple page

      Setup:

      1. Create a course with course display setting set to 'multiple page'

      Topics:

      1. Set course format to topics
      2. Disable course ajax in Admin > Appearance > Ajax and Javascript
      3. Verify that the main course page lists a summary of sections
      4. Visit each section and navigate between them with the next/previous links
      5. Attempt to navigate to past the last sections and before the first section with the next/previous links
      6. Verify that the navigation links work correctly to go to search section

      For the following tests, verify on both section page and index page

      1. Turn editting on/off with the button in top right and verify you are returned to where you were
      2. Turn editting on/off with the button in the settings menu and verify you are returned to where you were
      3. Try adding a resource to a section (and you are returned to where you were)
      4. Try moving a resource between sections (and you are returned to where you were)
      5. Try indenting a section (and you are returned to where you were)
      6. Try editing a resource (and you are returned to where you were)
      7. Try hiding a resource (and you are returned to where you were)
      8. Try deleting a resource (and you are returned to where you were)
        # Try duplicating a resource (and you are returned to where you were)
      9. Try hiding a section
      10. Try setting a setting a section as the current topic and verify it has been marked visually

      Verify that you can do these actions in the 'index page' but not on single section page:

      1. Try moving a section.
      2. Turn AJAX back on

      For the following tests, verify on both section page and index page

      1. Try moving a resource between sections (the general section on section page) (turn editing off to verify this action has been completed)
      2. Try indenting a section (turn editing off to verify this action has been completed)
      3. Try editing a resource (turn editing off to verify this action has been completed)
      4. Try hiding a resource (turn editing off to verify this action has been completed)
      5. Try deleting a resource (turn editing off to verify this action has been completed)
        # Try duplicating a resource (turn editing off to verify this action has been completed)
      6. Try hiding a section (turn editing off to verify this action has been completed)
      7. Try setting a setting a section as the current topic and verify it has been marked visually (turn editing off to verify this action has been completed)

      Weeks:

      1. Set course format to weeks
      2. Disable course ajax in Admin > Appearance > Ajax and Javascript
      3. Verify that the main course page lists a summary of sections
      4. Visit each section and navigate between them with the next/previous links
      5. Attempt to navigate to past the last sections and before the first section with the next/previous links
      6. Verify that the navigation links work correctly to go to search section

      For the following tests, verify on both section page and index page

      1. Turn editting on/off with the button in top right and verify you are returned to where you were
      2. Turn editting on/off with the button in the settings menu and verify you are returned to where you were
      3. Try adding a resource to a section (and you are returned to where you were)
      4. Try moving a resource between sections (and you are returned to where you were)
      5. Try indenting a section (and you are returned to where you were)
      6. Try editing a resource (and you are returned to where you were)
      7. Try hiding a resource (and you are returned to where you were)
      8. Try deleting a resource (and you are returned to where you were)
        # Try duplicating a resource (and you are returned to where you were)
      9. Try hiding a section
      10. Verify the current week is marked visually

      Verify that you can do these actions in the 'index page' but not on single section page:

      1. Try moving a section.
      2. Turn AJAX back on

      For the following tests, verify on both section page and index page

      1. Try moving a resource between sections (the general section on section page) (turn editing off to verify this action has been completed)
      2. Try indenting a section (turn editing off to verify this action has been completed)
      3. Try editing a resource (turn editing off to verify this action has been completed)
      4. Try hiding a resource (turn editing off to verify this action has been completed)
      5. Try deleting a resource (turn editing off to verify this action has been completed)
        # Try duplicating a resource (turn editing off to verify this action has been completed)
      6. Try hiding a section (turn editing off to verify this action has been completed)

      Section Links Block:

      1. Try adding the section links block and verify that the section links are working correctly

      Run phpunit tests

      1. There should be no failures.
      Show
      Test social format Create a course with format set to social Ensure the social format is working as expected Test scorm format Create a course with format set to scorm Upload a packaegthe social format is working as expected Test single page Setup: Create a course with course display setting set to 'single page' Topics: Set course format to topics Disable course ajax in Admin > Appearance > Ajax and Javascript Verify that the course appears as before change visually Turn editting on/off with the button in top right and verify you are returned to where you were Turn editting on/off with the button in the settings menu and verify you are returned to where you were Try adding a resource to a section (and you are returned to where you were) Try moving a resource between sections (and you are returned to where you were) Try indenting a section (and you are returned to where you were) Try editing a resource (and you are returned to where you were) Try hiding a resource (and you are returned to where you were) Try deleting a resource (and you are returned to where you were) # Try duplicating a resource (and you are returned to where you were) Try moving a section Try hiding a section Try setting a setting a section as the current topic and verify it has been marked visually Turn AJAX back on Try moving a resource between sections (turn editing off to verify this action has been completed) Try indenting a section (turn editing off to verify this action has been completed) Try hiding a resource (turn editing off to verify this action has been completed) Try deleting a resource (turn editing off to verify this action has been completed) Try moving a section around (turn editing off to verify this action has been completed successfully) Try setting a setting a section as the current topic and verify it has been marked visually (turn editing off to verify this action has been completed successfully) Try editing a section name and verify the section name appears on the main page Try increasing adding a section at the bottom of the course page when editting is on and verify the section is added Weeks: Set course format to topics Disable course ajax in Admin > Appearance > Ajax and Javascript Verify that the course appears as before change visually Turn editting on/off with the button in top right and verify you are returned to where you were Turn editting on/off with the button in the settings menu and verify you are returned to where you were Try adding a resource to a section (and you are returned to where you were) Try moving a resource between sections (and you are returned to where you were) Try indenting a section (and you are returned to where you were) Try editing a resource (and you are returned to where you were) Try hiding a resource (and you are returned to where you were) Try deleting a resource (and you are returned to where you were) # Try duplicating a resource (and you are returned to where you were) Try moving a section Try hiding a section Verify that the current week is highlighted Turn AJAX back on Try moving a resource between sections (turn editing off to verify this action has been completed) Try indenting a section (turn editing off to verify this action has been completed) Try hiding a resource (turn editing off to verify this action has been completed) Try deleting a resource (turn editing off to verify this action has been completed) Try moving a section around (turn editing off to verify this action has been completed successfully) Try editing a section name and verify the section name appears on the main page Try increasing the number of sections in the course settings and verify the section is added Try increasing adding a section at the bottom of the course page when editting is on and verify the section is added Test multiple page Setup: Create a course with course display setting set to 'multiple page' Topics: Set course format to topics Disable course ajax in Admin > Appearance > Ajax and Javascript Verify that the main course page lists a summary of sections Visit each section and navigate between them with the next/previous links Attempt to navigate to past the last sections and before the first section with the next/previous links Verify that the navigation links work correctly to go to search section For the following tests, verify on both section page and index page Turn editting on/off with the button in top right and verify you are returned to where you were Turn editting on/off with the button in the settings menu and verify you are returned to where you were Try adding a resource to a section (and you are returned to where you were) Try moving a resource between sections (and you are returned to where you were) Try indenting a section (and you are returned to where you were) Try editing a resource (and you are returned to where you were) Try hiding a resource (and you are returned to where you were) Try deleting a resource (and you are returned to where you were) # Try duplicating a resource (and you are returned to where you were) Try hiding a section Try setting a setting a section as the current topic and verify it has been marked visually Verify that you can do these actions in the 'index page' but not on single section page: Try moving a section. Turn AJAX back on For the following tests, verify on both section page and index page Try moving a resource between sections (the general section on section page) (turn editing off to verify this action has been completed) Try indenting a section (turn editing off to verify this action has been completed) Try editing a resource (turn editing off to verify this action has been completed) Try hiding a resource (turn editing off to verify this action has been completed) Try deleting a resource (turn editing off to verify this action has been completed) # Try duplicating a resource (turn editing off to verify this action has been completed) Try hiding a section (turn editing off to verify this action has been completed) Try setting a setting a section as the current topic and verify it has been marked visually (turn editing off to verify this action has been completed) Weeks: Set course format to weeks Disable course ajax in Admin > Appearance > Ajax and Javascript Verify that the main course page lists a summary of sections Visit each section and navigate between them with the next/previous links Attempt to navigate to past the last sections and before the first section with the next/previous links Verify that the navigation links work correctly to go to search section For the following tests, verify on both section page and index page Turn editting on/off with the button in top right and verify you are returned to where you were Turn editting on/off with the button in the settings menu and verify you are returned to where you were Try adding a resource to a section (and you are returned to where you were) Try moving a resource between sections (and you are returned to where you were) Try indenting a section (and you are returned to where you were) Try editing a resource (and you are returned to where you were) Try hiding a resource (and you are returned to where you were) Try deleting a resource (and you are returned to where you were) # Try duplicating a resource (and you are returned to where you were) Try hiding a section Verify the current week is marked visually Verify that you can do these actions in the 'index page' but not on single section page: Try moving a section. Turn AJAX back on For the following tests, verify on both section page and index page Try moving a resource between sections (the general section on section page) (turn editing off to verify this action has been completed) Try indenting a section (turn editing off to verify this action has been completed) Try editing a resource (turn editing off to verify this action has been completed) Try hiding a resource (turn editing off to verify this action has been completed) Try deleting a resource (turn editing off to verify this action has been completed) # Try duplicating a resource (turn editing off to verify this action has been completed) Try hiding a section (turn editing off to verify this action has been completed) Section Links Block: Try adding the section links block and verify that the section links are working correctly Run phpunit tests There should be no failures.

      This describes the bare minimum we can do to improve things in 2.3 without refactoring course formats (as there isn't time).

      It describes how to improve the weekly and topics formats once the course setting in MDL-32504 is implemented.

      Main course page

      The main course main page should start with the General section (section 0) IFF it contains anything. If it is empty, don't show it.

      Next, show a nicely-formatted list of sections below it with the current one highlighted. For each topic/week there is:

      • the section name (as a link to the separate page, i.e. course/view.php?id=12&topic=3 or course/view.php?id=2&week=3 or course/view.php?id=2&section=3 are all synonyms)
      • the section summary (truncated if it's too long)
      • a completion summary (if applicable, 1/3, 30%, ?)
      • controls to hide/show that section, as usual
      • Ajax drag controls (or arrows for non-JS) to change the order by dragging

      The "zoom" boxes that control 'Show one/all weeks/topics' are no longer needed and should be removed.

      More sections can be added by a big "plus" icon at the bottom, and old ones can be deleted if they are empty.

      Section pages

      Section pages use the same course blocks as the main page.

      The navigation bar at the top should show the section name as a sub page and be selected. It's thus very easy to "go back" one level to the main course page.

      There should also be nav buttons to prev/next sections in the top and bottom of the page.

      The General section (section 0) can be displayed IFF it contains anything. If it is empty, don't show it.

      The section is displayed normally, same as 2.2.

      We need a new interface for copying activities to/from this page. I like this: add select checkboxes to select activities, and then two buttons: [Copy activities] (enabled only when things are checked) and [Paste activities] (enabled only when things have been copied). A small clipboard in user preferences would keep track of those activities that are being copied (per course).

      In 2.3 this would only work within a course, but the same interface would work later across courses.

      Navigation links

      If in paged mode, then the section links are exactly as they are now: course/view.php?id=12&topic=3

      If in scrolling mode (all sections on one page) then the links should be course/view.php?id=12#topic-3

      Check for regressions in modules caused by course assumptions

      For example, make sure that "return to course" actually returns to the appropriate section. Forum module does something like that when you add a new post from the Latest News block. Also editing module settings has a "Save and return to course" button. etc.

            poltawski Dan Poltawski
            dougiamas Martin Dougiamas
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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