-
Improvement
-
Resolution: Fixed
-
Major
-
2.0.3, 2.3.3, 2.4.6, 2.5.2
-
MOODLE_20_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
wip-
MDL-28463-master -
-
Basically the use case is, the student has already logged in and the condition_info::get_cached_grade_score function has already cached the student's grade information. Then, the student's grade changes (maybe the teacher manually edits their grade in the gradebook), then any availability conditions that the new grade would satisfy will not be released to the student due to the caching. The student must logout/in.
Since the grade can change during another user's session (like the teacher editing the grade), the solution to this problem is somewhat tricky. The cache probably has to be moved out of the user's session.
Replication steps:
- Log in as admin/teacher in one browser
- Log in as a student in another browser
- Create two assignments
- In the second, create a condition that relies on a grade value in the first
- Go to the first assignment and mark an assignment for the student (there is no need for a student submission)
- As the student, refresh the page and check if the second assignment is accessible
- As the student, log out and log in again
- As the student, check if the second assignment is accessible
Expected result: The second assignment should be accessible after the grade is set, even before logging in again
Actual result: The second assignment is not accessible until logging in again
- blocks
-
MDLQA-6180 CLONE - A teacher can set grade conditions to restrict availability of a section
-
- Passed
-
- has a non-specific relationship to
-
MDL-25290 MUC Stage 1: Implement some core caching architecture (MUC)
-
- Closed
-
- has been marked as being related by
-
MDL-43331 Completion Cache can be missing updates
-
- Closed
-
- is duplicated by
-
MDL-36414 Conditional grade check on an assignment requires an assignment submission
-
- Closed
-
-
MDL-37042 Activity still locked after prerequisites completion
-
- Closed
-
-
MDL-33371 Conditionally active activity not becoming active once conditions are met until browser is closed then reopened.
-
- Closed
-
-
MDL-39381 External tool grades don't trigger conditional activities until user logs out
-
- Closed
-
-
MDL-41404 Conditional activities are not displayed/removed until next login
-
- Closed
-
-
MDL-42567 Conditionlib stores grades in $SESSION
-
- Closed
-