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

Details

    • MOODLE_400_STABLE
    • MDL-74901-400
    • 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 pull https://github.com/snake/moodle.git MDL-74901-master-testing
        

        400:

        git pull https://github.com/snake/moodle.git MDL-74901-400-testing
        

      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 pull https://github.com/snake/moodle.git MDL-74901-master-testing 400: git pull https://github.com/snake/moodle.git MDL-74901-400-testing 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jaked Jake Dallimore
              abgreeve Adrian Greeve
              Stevani Andolo Stevani Andolo
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2 days, 40 minutes
                  2d 40m