-
Improvement
-
Resolution: Fixed
-
Major
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-44070-master -
I propose to make major improvements to the conditional availability system.
Key improvements:
- Support for OR and NOT conditions (current system only does AND) and condition trees.
- Improved user interface using JavaScript.
- Support for pluggable restrictions instead of the current hardcoded options (date, grade, etc).
- Tidy up 'grouping' feature - currently used both for grouped activities (to select a set of groups) and also as a restriction - to separate these functions.
- Behaviour is intended to be fully backward-compatible via database upgrade. I also intend for public API functions to continue working (although possibly with deprecation/name changes).
Out of scope:
- This enhancement is strictly related to conditional activity/section availability (the system controlled by $CFG->enableavailability). For example, there will be no changes to the activity or course completion system at this point.
Please see the attached Word document for a detailed explanation of planned changes.
- blocks
-
MDL-42109 Conditional availability: User field 'Country' check uses 2-letter code which isn't clear
- Open
-
MDL-42991 Conditional availability: Restrictions based on current language
- Closed
- caused a regression
-
MDL-45038 Serious performance issue with activity names filter
- Closed
-
MDL-45086 Missing redirect_if_major_upgrade_required() for availability
- Closed
-
MDL-46483 Documentation for Conditional activities has not been updated
- Closed
-
MDL-46991 Availability: Conditional dates are not updated on restore
- Closed
-
MDL-44992 Conditional availability tab focus bug
- Closed
-
MDL-45027 Availability API: Better handling of invalid data in GUI
- Closed
-
MDL-45409 Debug notices when viewing user posts
- Closed
-
MDL-46182 Inefficient query during Moodle upgrade on course_section table.
- Closed
-
MDL-47474 Incorrect permission check in calendar export
- Closed
-
MDL-50303 Cache: Remove old cache definition 'gradecondition'
- Closed
- Discovered while testing
-
MDL-45048 repository_wikimedia calls optional_param in constructor leading to warnings if param name clash
- Closed
- has a non-specific relationship to
-
MDL-80197 Datepicker popup in moodleform is not accessible with keyboard
- Closed
-
MDL-44725 Condition availability: Replace groupmembersonly
- Closed
- has been marked as being related by
-
MDL-44985 Conditional availability: Remove functions/classes deprecated in MDL-44070
- Closed
-
MDL-43868 Issue a warning when deleting an activity that has depencencies
- Closed
-
MDL-44814 Date selector popup: make available on dynamically created fields
- Closed
-
MDL-44983 Conditional availability: Grade condition should support scales
- Closed
- is blocked by
-
MDL-44141 Completion system updates data during restore
- Closed
-
MDL-44692 Assign: Remove use of groupmembersonly from new API
- Closed
-
MDL-44292 Add events for grade, grade item changes
- Closed
-
MDL-44681 Quiz: Remove groupmembersonly check on override page
- Closed
-
MDL-44683 Workshop: Remove groupmembersonly checks
- Closed
-
MDL-44891 Behat: Add step to check attribute
- Closed
- is duplicated by
-
MDL-26873 Conditional availability: support OR conditions, not just AND
- Closed
- will help resolve
-
MDL-41893 Restrict Access to section by time and date does not 'display greyed out, with restriction information'
- Closed
-
MDL-41895 Topics course no longer display the grouping if applied
- Closed
-
MDL-32927 Add conditional plugins
- Closed
-
MDL-26873 Conditional availability: support OR conditions, not just AND
- Closed