forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-59169 gradebook: Add groupid to gpr tracking & use
Added groupid to grade_plugin_return tracking, modified constructor to use query params as defaults if passed-in params not supplied, used groupid tracking in core reports. grade_get_graded_users_select also fixed to use gpr (otherwise using it breaks when course current group has changed between render and submit). Fixed coding style issue in gpr constructor & documented properties. Added upgrade.txt noting gpr changes.
- Loading branch information
Showing
7 changed files
with
127 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This file describes API changes in /grade/* ; | ||
Information provided here is intended especially for developers. | ||
|
||
=== 3.6 === | ||
|
||
* The grade_plugin_return constructor now uses parameters from the | ||
request as defaults, which can be overridden by parameters supplied | ||
to the constructor. This may lead to a change in behaviour if only | ||
some of the possible parameters are supplied. | ||
* The grade_plugin_return class now tracks groupid as well as the | ||
type, plugin, courseid, userid and page parameters that were tracked | ||
previously. The groupid parameter will be set using | ||
groups_get_course_group for the relevant course if the group is | ||
otherwise unspecified. | ||
* The above changes mean that code using grade_plugin_return objects | ||
should generally no longer call groups_get_course_group directly, | ||
but should use the gpr->groupid parameter instead. | ||
* The grade_plugin_return constructor now accepts either course or | ||
courseid as a parameter to specify course. |