[AMOS commit] MDL-54945 workshop: Improve the portfolio API implementation Committed into Git: 2016-10-11 10:36 UTC

[AMOS commit] MDL-54945 workshop: Improve the portfolio API implementation Committed into Git: 2016-10-11 10:36 UTC

by AMOS bot -
Number of replies: 0
Author: David Mudrák
MDL-54945 workshop: Improve the portfolio API implementation
* Use a single capability 'mod/workshop:exportsubmissions' to control
who is able to export a submission and all associated visible
peer-assessments.
* The export capability is by default granted to teachers and managers
as well.
* Simplify the integration of the export button into the submission
page. There is now a single place where the export button appears - at
the buttom of the submission page.
* Clean up the new strings introduced for this feature.
* Rewrite the portfolio caller class so that it better mimics the
behaviour of the submission.php page. It must not be possible to get
access to contents otherwise not available via the UI.
* Fix phpunit tests.
* Improve behat tests so that they can run in headless browser
(performance).

During the development, some problems were detected in the underlying
portfolio API, especially with LEAP2A format and files collisions
handling. These may be eventually fixed in the future, should there be a
demand for it.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=0cc5c646082562546982dee61e7c6ce1f1f27c9e
http://github.com/moodle/moodle/commit/0cc5c646082562546982dee61e7c6ce1f1f27c9e

+ 3.2 en [exportsubmission,mod_workshop]
+ 3.2 en [workshop:exportsubmissions,mod_workshop]
- 3.2 en [exportsubmissionassessment,mod_workshop]
- 3.2 en [workshop:exportownsubmission,mod_workshop]
- 3.2 en [workshop:exportownsubmissionassessment,mod_workshop]