1441 |
ariadna |
1 |
# core_completion (subsystem) Upgrade notes
|
|
|
2 |
|
|
|
3 |
## 5.0
|
|
|
4 |
|
|
|
5 |
### Added
|
|
|
6 |
|
|
|
7 |
- Add hook after_cm_completion_updated triggered when an activity completion is updated.
|
|
|
8 |
|
|
|
9 |
For more information see [MDL-83542](https://tracker.moodle.org/browse/MDL-83542)
|
|
|
10 |
- The method `count_modules_completed` now delegate the logic to count the completed modules to the DBMS improving the performance of the method.
|
|
|
11 |
|
|
|
12 |
For more information see [MDL-83917](https://tracker.moodle.org/browse/MDL-83917)
|
|
|
13 |
|
|
|
14 |
## 4.5
|
|
|
15 |
|
|
|
16 |
### Added
|
|
|
17 |
|
|
|
18 |
- A new `FEATURE_COMPLETION` plugin support constant has been added. In the future, this constant will be used to indicate when a plugin does not allow completion and it is enabled by default.
|
|
|
19 |
|
|
|
20 |
For more information see [MDL-83008](https://tracker.moodle.org/browse/MDL-83008)
|
|
|
21 |
|
|
|
22 |
### Changed
|
|
|
23 |
|
|
|
24 |
- The `\core_completion\activity_custom_completion::get_overall_completion_state()` method can now also return `COMPLETION_COMPLETE_FAIL` and not only `COMPLETION_COMPLETE` and `COMPLETION_INCOMPLETE`.
|
|
|
25 |
|
|
|
26 |
For more information see [MDL-81749](https://tracker.moodle.org/browse/MDL-81749)
|