Moodle
  1. Moodle
  2. MDL-27541

Course reports not viewable by teachers

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide
      • Log in as admin in one course.
      • Go to the participants page and pick one user.
      • Look at picked user in the navigation block (Course -> Participants -> picked user -> Activity Reports
      • TEST: All the reports listed in next test should be shown.
      • Log in as teacher.
      • Go to the participants page and pick one user.
      • Look at picked user in the navigation block (Course -> Participants -> picked user -> Activity Reports
      • TEST: The navigation block show and grant access to the following reports ("Activity Reports" item), based on the corresponding capabilities:
        --> Outline and complete reports controlled by the 'coursereport/outline:view' capability.
        --> Today's log report, controlled by the 'coursereport/log:viewtoday' capability.
        --> Log report, controlled by the 'coursereport/log:view' capability.
        --> Stats report, controlled by the 'coursereport/stats:view' capability (note this requires also stats to be enabled in site)
        --> Also, the grades report should be show there, but this is not important for testing this, so ignore it.
      • TEST: Try changing perms for the teachers and the available reports in the navigation block above should change accordingly.
      Show
      Log in as admin in one course. Go to the participants page and pick one user. Look at picked user in the navigation block (Course -> Participants -> picked user -> Activity Reports TEST: All the reports listed in next test should be shown. Log in as teacher. Go to the participants page and pick one user. Look at picked user in the navigation block (Course -> Participants -> picked user -> Activity Reports TEST: The navigation block show and grant access to the following reports ("Activity Reports" item), based on the corresponding capabilities: --> Outline and complete reports controlled by the 'coursereport/outline:view' capability. --> Today's log report, controlled by the 'coursereport/log:viewtoday' capability. --> Log report, controlled by the 'coursereport/log:view' capability. --> Stats report, controlled by the 'coursereport/stats:view' capability (note this requires also stats to be enabled in site) --> Also, the grades report should be show there, but this is not important for testing this, so ignore it. TEST: Try changing perms for the teachers and the available reports in the navigation block above should change accordingly.
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      navigationlib_userreports
    • Rank:
      17210

      Description

      As mentioned in MDL-26704, to get to user outline report I have to login as admin then go to: Home ► Courses ► Features Demo ► Participants ► Sam Student ► Activity reports ► Outline report. I can't view outline reports at all when logged in as a teacher.

        Issue Links

          Activity

          Hide
          Helen Foster added a comment -

          Linking to another issue regarding outline report navigation.

          Show
          Helen Foster added a comment - Linking to another issue regarding outline report navigation.
          Show
          Eloy Lafuente (stronk7) added a comment - Cross-linking with related comment @ MDL-26704 : http://tracker.moodle.org/browse/MDL-26704?focusedCommentId=111072&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-111072
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Ho Sam, I've built the 2 integration branches and added your here as integrator for next week. Please take a look to it. Surely is not the perfect solution but at least it re-enables the "user reports" to teachers.

          For sure this needs refactor some day.

          Ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Ho Sam, I've built the 2 integration branches and added your here as integrator for next week. Please take a look to it. Surely is not the perfect solution but at least it re-enables the "user reports" to teachers. For sure this needs refactor some day. Ciao
          Hide
          Sam Hemelryk added a comment -

          Thanks Eloy quite right it would be much better if the course reports API allowed us to check with them independently however for the time being this is a good solution and has been integrated.
          Cheers
          Sam

          Show
          Sam Hemelryk added a comment - Thanks Eloy quite right it would be much better if the course reports API allowed us to check with them independently however for the time being this is a good solution and has been integrated. Cheers Sam
          Hide
          Michael de Raadt added a comment -

          All reports were shown as administrator.

          All reports were shown to administrator.

          Noted that All Logs chart appears as broken image (visible on Chrome, hidden in FF). May need to be created as separate bug. Sam, can you replicate this?

          Show
          Michael de Raadt added a comment - All reports were shown as administrator. All reports were shown to administrator. Noted that All Logs chart appears as broken image (visible on Chrome, hidden in FF). May need to be created as separate bug. Sam, can you replicate this?
          Hide
          Eloy Lafuente (stronk7) added a comment -

          This is now part of upstream. Many thanks!

          Show
          Eloy Lafuente (stronk7) added a comment - This is now part of upstream. Many thanks!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: