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

mod assign displays assignments on my moodle inconsistant with other core modules.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3.2
    • 2.3.1
    • Assignment
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide

      You will need a course with a student.

      1. Add an assignment with a due date in the future, and prevent late submission set to Yes - name "Future Prevent".
      2. Add an assignment with a due date in the future, and prevent late submission set to No - name "Future".
      3. Add an assignment with a due date in the past, and prevent late submission set to Yes - name "Past Prevent".
      4. Add an assignment with a due date in the past, and prevent late submission set to No - name "Past".
      5. Add an assignment with no due date - name "No Date".
      6. Login as student and go to the My Moodle page.
      7. You should see 'You have assignments that need attention'. Click to expand it.
      8. You should see the assignments "Future Prevent", "Future", and "Past". You should not see "Past Prevent" and "No Date".
      Show
      You will need a course with a student. Add an assignment with a due date in the future, and prevent late submission set to Yes - name "Future Prevent". Add an assignment with a due date in the future, and prevent late submission set to No - name "Future". Add an assignment with a due date in the past, and prevent late submission set to Yes - name "Past Prevent". Add an assignment with a due date in the past, and prevent late submission set to No - name "Past". Add an assignment with no due date - name "No Date". Login as student and go to the My Moodle page. You should see 'You have assignments that need attention'. Click to expand it. You should see the assignments "Future Prevent", "Future", and "Past". You should not see "Past Prevent" and "No Date".

      This is a followup to MDL-34272:

      The current implementation of assign_print_overview() is unusable to hybrid classes (classes that meet both in person and online) with large numbers of assignments. If you have a course with 16 topics and 5 assignments per topic, the course overview block will automatically display all 80 assignments. Currently the only way to not have them display in the course overview block is to change the visibility of each of the individual instances, or make them not able to be submitted (set a available date in the future, or a due date in the past with and not allow late submissions).

      This behavior seems inconstant with the other modules in Moodle core.

      For example, in Moodle 2.2 and earlier using mod assignment, assignments would only be displayed in the course overview block if:

      1. The assignment had a due date AND
      2. The student could submit a file / response to that specific assignment (It was not outside of the date restriction, and prevent late submissions was not set)

      Assignments without a due date would not be displayed on the my moodle page. This allowed the course overview block on the my moodle page to work as an agenda of sorts showing just the items that had been assigned.

      In the new mod assign all assignments in a course appear as long as they are able to be submitted (whether there is a due date or not) This seems inconsistent with the other core modules. (It effectively displays the same information as the assignment overview page (http://localhost:8888/moodle23/mod/assign/index.php?id=5)

      Looking through the moodle codebase. mod_assignment, mod_chat, mod_lesson, and mod_quiz all behave where the activity needs to have both a due date and be able to submit / participate in order to have the item displayed.

      mod_forum and mod_assign are the only two that do not behave this way.

      Is it possible that mod_assign could either:

      A. Change the logic to be similar to the rest of the core modules.

      or

      B. implement a global configuration variable for mod_assign (something like $CFG->showallassignmentsonmymoodle ) that would allow us to change the behavior of mod_assign allowing it only to display assignments that are both submittable and have a due date.

            emerrill Eric Merrill
            sbourget Stephen Bourget
            Damyon Wiese Damyon Wiese
            Dan Poltawski Dan Poltawski
            Tim Barker Tim Barker
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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