- 09 Mar, 2021 6 commits
-
-
jun authored
-
jun authored
* Update completion_info::get_data() to add other completion information from a new method called get_other_cm_completion_data(). This allows the storage of the completion statuses of the following completion rules to completion_info objects: - 'Students must receive a grade' completion rule. - Any custom completion rule defined by an activity. This allows detailed completion information to be fetched for course modules. It also allows custom completion statuses to be cached which will help reduce DB queries when fetching completion statuses. * Update update_state() to fetch overall completion state from the module's activity_custom_completion implementation. Falls back to the *_get_completion_state() callback function. * Update internal_set_data() to include the other cm completion data in the updated cache data for the module instance.
-
jun authored
Move the current logic for determining the completion status for the "Student must receive grade" completion rule to a function so it cann be reused. Unit test included.
-
jun authored
* Unit tests for completion_info::get_data() and completion_info::internal_get_state are mocked which causes failures with the new implementation. It's more straightforward and realistic to generate real course and modules to test these methods.
-
jun authored
Tests cover - get_overall_completion_state() - is_available() - validate_rule() Tests don't cover - methods that rely on static methods such as: - is_defined() - static methods in the class because they can't be mocked - abstract methods that can be tested better by the plugins that extend activity_custom_completion such as: - get_state() - get_defined_custom_rules() - get_custom_rule_descriptions()
-
jun authored
* Base class for defining an activity module's custom completion details
-
- 05 Mar, 2021 3 commits
-
-
Sara Arjona authored
-
-
-
- 04 Mar, 2021 7 commits
-
-
ilya authored
-
ilya authored
-
ilya authored
-
-
-
-
Ferran Recio Calderó authored
-
- 03 Mar, 2021 24 commits
-
-
Teachers can see user idnumber fields only when they are configured identity fields. Students cannot.
-
-
This commit also corrects parameter definition of the field to match core_user.
-
-
-
-
-
git://github.com/andrewnicols/moodlejun authored
-
-
https://github.com/timhunt/moodlejun authored
-
-
Simey Lameze authored
-
Simey Lameze authored
-
Simey Lameze authored
-
Simey Lameze authored
-
Simey Lameze authored
-
Simey Lameze authored
-
Simey Lameze authored
-
https://github.com/paulholden/moodlejun authored
-
https://github.com/paulholden/moodlejun authored
-
-
Peter Dias authored
-
AMOS Bot authored
-
Paul Holden authored
When retrieving courses of another user via web services, we should respect the capability to view that users profile in a given course.
-