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

block_myoverview: Hide completion progress bar for teachers

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Make sure that completion tracking is enabled (Site administration > Advanced features - Enable completion tracking).
      2. Create or update a course and make sure that 'Completion tracking - Enable completion tracking' is set to yes.
      3. Have at least a couple of activities in the course.
      4. Enrol four people into the course.
        • Make the first user a teacher.
        • Make the second user a non-editing teacher.
        • Make the third a student.
        • Make the fourth both a teacher and a student.
      5. Log in as the teacher.
      6. Go to the Dashboard.
      7. Check That there is no progress bar for the course in the course overview.
      8. Login in as the non-editing teacher.
      9. Go to the Dashboard.
      10. Check That there is no progress bar for the course.
      11. Login as the student.
      12. Go to the Dashboard.
      13. Check That there is progress bar for the course.
      14. Login as the student that is also a teacher.
      15. Go to the Dashboard.
      16. Check That there is progress bar for the course.
      Show
      Make sure that completion tracking is enabled (Site administration > Advanced features - Enable completion tracking). Create or update a course and make sure that 'Completion tracking - Enable completion tracking' is set to yes. Have at least a couple of activities in the course. Enrol four people into the course. Make the first user a teacher. Make the second user a non-editing teacher. Make the third a student. Make the fourth both a teacher and a student. Log in as the teacher. Go to the Dashboard. Check That there is no progress bar for the course in the course overview. Login in as the non-editing teacher. Go to the Dashboard. Check That there is no progress bar for the course. Login as the student. Go to the Dashboard. Check That there is progress bar for the course. Login as the student that is also a teacher. Go to the Dashboard. Check That there is progress bar for the course.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-64898-progress-teachers

      Description

      block_myoverview displays a completion progress bar for a particular course as soon as
      1. Course completion is enabled in the course settings
      2. There is at least one activity in the course which uses course completion (regardless if the activity will be completed automatically based on a rule or manually by the student)

      This is generally fine for students.
      But, unfortunately, the progress bar is also shown for teachers who often don't participate actively in a course (like a student does) and who will most probably have all of their progress bars be stuck at 0%.

      Thus, I would propose to add a mechanism to hide the completion progress bar for teachers.

      The simplest approach would be a capability to control if a user sees the progress bar or not.
      Perhaps the existing capability moodle/course:isincompletionreports can be used, otherwise a new capability is needed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmitriim Dmitrii Metelkin
              Reporter:
              abias Alexander Bias
              Peer reviewer:
              Víctor Déniz Falcón
              Integrator:
              Adrian Greeve
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m