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

extend_navigation_frontpage now relies on the user having course:update capabilites to view the secondary navigation

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74901-master
    • Hide

      Note: Please use a freshly installed site for all testing

      Regression test frontpage

      1. Make sure you're logged out
      2. Go to site home, e.g. http://YOURSITE/
      3. Verify you don't see any secondary navigation
      4. Log in as a user s1 - just an authenticated user, i.e no system roles
      5. Go to site home
      6. Verify you don't see any secondary navigation
      7. Log out
      8. Log in as the admin user
      9. Go to the site home
      10. Verify you see the following items in the secondary navigation:
        • Home
        • Settings
        • Participants
        • Reports
        • Question bank
        • More
      11. Verify that 'Home' is highlighted
      12. Expand 'More' and Verify you see the following items:
        • Content bank
        • Filters
        • Course reuse
      13. Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu):
        • Backup
        • Restore

      Regression test course

      1. Log in as an admin user
      2. Create a course
      3. Go to the course home
      4. Verify you see the following items in the secondary navigation:
        • Course
        • Settings
        • Participants
        • Grades
        • Reports
        • More
      5. Verify that 'Course' is highlighted
      6. Expand 'More' and Verify you see the following items:
        • Question bank
        • Content bank
        • Course completion
        • Badges
        • Competencies
        • Filters
        • Unenrol me from ...
        • Accessibility toolkit
        • Course reuse
      7. Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu):
        • Import
        • Backup
        • Restore
        • Copy course
        • Reset

      Callback test frontpage

      1. Pull in the testing commit, which just adds items using the course and frontpage nav callbacks.
        Master:

        git fetch https://github.com/snake/moodle.git MDL-74901-master-testing && git merge --no-ff FETCH_HEAD
        

        400:

        git fetch https://github.com/snake/moodle.git MDL-74901-400-testing && git merge --no-ff FETCH_HEAD
        

      2. Log in to the site as an admin user
      3. Go to site home (frontpage)
      4. Verify you see the following items in the secondary navigation:
        • Home
        • Settings
        • Participants
        • Reports
        • Question bank
        • More
      5. Verify that 'Home' is highlighted
      6. Expand 'More' and Verify you see the following items:
        • Content bank
        • Filters
        • My custom nav item
        • Course reuse
      7. Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu):
        • Backup
        • Restore
      8. Log out. You should be on site home now.
      9. Verify you see the following items in the secondary navigation:
        • Home
        • My custom nav item
      10. Verify that 'Home' is highlighted
      11. Now, log in as the user s1
      12. Go to site home (frontpage)
      13. Verify you see the following items in the secondary navigation:
        • Home
        • My custom nav item
      14. Verify that 'Home' is highlighted

      Callback test course

      1. Log in as an admin user
      2. Go to the course you created earlier
      3. Verify you see the following items in the secondary navigation:
        • Course
        • Settings
        • Participants
        • Grades
        • Reports
        • More
      4. Verify that 'Course' is highlighted
      5. Expand 'More' and Verify you see the following items:
        • Question bank
        • Content bank
        • Course completion
        • Badges
        • Competencies
        • Filters
        • Unenrol me from ...
        • Accessibility toolkit
        • AAAAA Course nav callback item
        • Course reuse
      6. Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu):
        • Import
        • Backup
        • Restore
        • Copy course
        • Reset
      Show
      Note: Please use a freshly installed site for all testing Regression test frontpage Make sure you're logged out Go to site home, e.g. http://YOURSITE/ Verify you don't see any secondary navigation Log in as a user s1 - just an authenticated user, i.e no system roles Go to site home Verify you don't see any secondary navigation Log out Log in as the admin user Go to the site home Verify you see the following items in the secondary navigation: Home Settings Participants Reports Question bank More Verify that 'Home' is highlighted Expand 'More' and Verify you see the following items: Content bank Filters Course reuse Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu): Backup Restore Regression test course Log in as an admin user Create a course Go to the course home Verify you see the following items in the secondary navigation: Course Settings Participants Grades Reports More Verify that 'Course' is highlighted Expand 'More' and Verify you see the following items: Question bank Content bank Course completion Badges Competencies Filters Unenrol me from ... Accessibility toolkit Course reuse Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu): Import Backup Restore Copy course Reset Callback test frontpage Pull in the testing commit, which just adds items using the course and frontpage nav callbacks. Master: git fetch https://github.com/snake/moodle.git MDL-74901-master-testing && git merge --no-ff FETCH_HEAD 400: git fetch https://github.com/snake/moodle.git MDL-74901-400-testing && git merge --no-ff FETCH_HEAD Log in to the site as an admin user Go to site home (frontpage) Verify you see the following items in the secondary navigation: Home Settings Participants Reports Question bank More Verify that 'Home' is highlighted Expand 'More' and Verify you see the following items: Content bank Filters My custom nav item Course reuse Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu): Backup Restore Log out. You should be on site home now. Verify you see the following items in the secondary navigation: Home My custom nav item Verify that 'Home' is highlighted Now, log in as the user s1 Go to site home (frontpage) Verify you see the following items in the secondary navigation: Home My custom nav item Verify that 'Home' is highlighted Callback test course Log in as an admin user Go to the course you created earlier Verify you see the following items in the secondary navigation: Course Settings Participants Grades Reports More Verify that 'Course' is highlighted Expand 'More' and Verify you see the following items: Question bank Content bank Course completion Badges Competencies Filters Unenrol me from ... Accessibility toolkit AAAAA Course nav callback item Course reuse Go to "Course reuse" and Verify you now see the following items in the tertiary navigation (the select menu): Import Backup Restore Copy course Reset
    • 1
    • Team Hedgehog 4.1 sprint 0.1, Team Hedgehog 4.1 sprint 0.2

      In 4.0 we added the secondary navigation. We also added a capability check (course:update) to view the secondary navigation.

      This means that by default, only administrators can see the secondary navigation on the frontpage, and this callback has lost usefulness. It also means that navigation that was possible for all users has been taken away.

      Perhaps we can check to see if there are any items after this call back and show the secondary navigation to everyone if there is.

        1. 10_MDL-74901_master.png
          27 kB
          John Edward Pedregosa
        2. 10_MDL-74901_v400.png
          27 kB
          John Edward Pedregosa
        3. 13_MDL-74901_master.png
          18 kB
          John Edward Pedregosa
        4. 13_MDL-74901_v400.png
          26 kB
          John Edward Pedregosa
        5. 24_MDL-74901_master.png
          45 kB
          John Edward Pedregosa
        6. 24_MDL-74901_v400.png
          44 kB
          John Edward Pedregosa
        7. 27_MDL-74901_master.png
          42 kB
          John Edward Pedregosa
        8. 27_MDL-74901_v400.png
          31 kB
          John Edward Pedregosa
        9. 3_MDL-74901_master.png
          9 kB
          John Edward Pedregosa
        10. 3_MDL-74901_v400.png
          8 kB
          John Edward Pedregosa
        11. 34_MDL-74901_master.png
          31 kB
          John Edward Pedregosa
        12. 34_MDL-74901_v400.png
          30 kB
          John Edward Pedregosa
        13. 37_MDL-74901_master.png
          25 kB
          John Edward Pedregosa
        14. 37_MDL-74901_v400.png
          25 kB
          John Edward Pedregosa
        15. 39_MDL-74901_master.png
          7 kB
          John Edward Pedregosa
        16. 39_MDL-74901_v400.png
          13 kB
          John Edward Pedregosa
        17. 43_MDL-74901_master.png
          10 kB
          John Edward Pedregosa
        18. 43_MDL-74901_v400.png
          16 kB
          John Edward Pedregosa
        19. 53_MDL-74901_master.png
          31 kB
          John Edward Pedregosa
        20. 53_MDL-74901_v400.png
          46 kB
          John Edward Pedregosa
        21. 56_MDL-74901_master.png
          25 kB
          John Edward Pedregosa
        22. 56_MDL-74901_v400.png
          31 kB
          John Edward Pedregosa
        23. 6_MDL-74901_master.png
          12 kB
          John Edward Pedregosa
        24. 6_MDL-74901_v400.png
          11 kB
          John Edward Pedregosa

            jaked Jake Dallimore
            abgreeve Adrian Greeve
            Stevani Andolo Stevani Andolo
            Ilya Tregubov Ilya Tregubov
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours, 11 minutes
                2d 2h 11m

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