diff --git a/UPGRADING.md b/UPGRADING.md index 5dd51807258..b67cc34f2e1 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -24,6 +24,24 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-72123](https://tracker.moodle.org/browse/MDL-72123) +### core_question + +#### Added + +- The question backup API has been improved to only include questions that are actually used or owned by backed up activities. + Any activities that use question references should be supported automatically. Activities that use *question set references* (for example, random quiz questions) need to add a call to `backup_question_set_reference_trait::annotate_set_reference_bank_entries()` alongside the call to `backup_question_set_reference_trait::add_question_set_references()` in their backup step. See `backup_quiz_activity_structure_step::define_structure()` for an example. + + For more information see [MDL-41924](https://tracker.moodle.org/browse/MDL-41924) + +#### Changed + +- `core_question_search_shared_banks` will now search all question banks, not just those outside the current course. + This makes the service usable in cases outside of the current "Switch banks" UI, which require searching all banks on the site. + It also makes the autocomplete in the "Switch banks" UI more consistent, as it was previously excluding some of the banks listed in the UI (Question banks in this course), but not others (Recently viewed question banks). + This change has also adds a 'requiredcapabilties' parameter to the function, which accepts an list of abbreviated capabilities for checking access against question banks before they are returned. + + For more information see [MDL-85069](https://tracker.moodle.org/browse/MDL-85069) + ## 5.0.1 ### core diff --git a/question/UPGRADING.md b/question/UPGRADING.md index 1eb235fb781..c766addcfb5 100644 --- a/question/UPGRADING.md +++ b/question/UPGRADING.md @@ -1,5 +1,23 @@ # core_question (subsystem) Upgrade notes +## 5.0.1+ + +### Added + +- The question backup API has been improved to only include questions that are actually used or owned by backed up activities. + Any activities that use question references should be supported automatically. Activities that use *question set references* (for example, random quiz questions) need to add a call to `backup_question_set_reference_trait::annotate_set_reference_bank_entries()` alongside the call to `backup_question_set_reference_trait::add_question_set_references()` in their backup step. See `backup_quiz_activity_structure_step::define_structure()` for an example. + + For more information see [MDL-41924](https://tracker.moodle.org/browse/MDL-41924) + +### Changed + +- `core_question_search_shared_banks` will now search all question banks, not just those outside the current course. + This makes the service usable in cases outside of the current "Switch banks" UI, which require searching all banks on the site. + It also makes the autocomplete in the "Switch banks" UI more consistent, as it was previously excluding some of the banks listed in the UI (Question banks in this course), but not others (Recently viewed question banks). + This change has also adds a 'requiredcapabilties' parameter to the function, which accepts an list of abbreviated capabilities for checking access against question banks before they are returned. + + For more information see [MDL-85069](https://tracker.moodle.org/browse/MDL-85069) + ## 5.0.1 ### Fixed