Commit Graph

175 Commits

Author SHA1 Message Date
David Mudrak a1df59bea9 MDL-27508 workshop does not use get_users_by_capability() any more
This is a big win, we are now taking enrolment fully into account.
Also, no need to fetch big data from DB just to get their count. Should
have much better performance now.
2012-04-27 14:41:59 +02:00
David Mudrak 079219bf07 MDL-27508 introducing workshop::count_participants() 2012-04-27 14:41:59 +02:00
David Mudrak dda42a19cd MDL-27508 workshop::prepare_grading_report_data() accepts $groupid
Workshop grades reports in all three last phases were fixed to support
the group selection. They layout of the report has been unified to be
consistent across all phases.
2012-04-27 14:41:59 +02:00
David Mudrak 8741ebb0bd MDL-27508 introducing workshop::get_participants() and workshop::is_participant()
Note how the participant is defined: it is a user that (1) can submit or
assess or both and (2) is actively enrolled in the course. This means
that usually admins or managers won't be considered as workshop
participants, for example.
2012-04-27 14:41:59 +02:00
David Mudrak cd57f558d9 MDL-27508 introducing workshop::count_submissions() and pagination support for get_submissions() 2012-04-27 14:41:58 +02:00
David Mudrak 872ed8591e MDL-27508 workshop::get_submissions() now accepts optional $groupid 2012-04-27 14:41:58 +02:00
David Mudrak 9691e2b10e MDL-27508 workshop::get_users_with_capability_sql() supports groupmembersonly
If the method is called with $groupid set to 0 and the workshop is in
the groupmembersonly mode, a recursive call is used to populate the
fragments of SQL code that fetch users from all relevant groups. These
fragments are then concatenated using UNION statement.
2012-04-27 14:41:58 +02:00
David Mudrak 21f58287d7 MDL-27508 workshop: improved getting of potential authors and reviewers
This patch reimplements get_potential_authors() and get_potential_reviewers()
so that get_enrolled_sql() is used instead of get_users_by_capability().
This excludes non-enrolled users (or users with suspended enrolment)
from the list of potential users.

The patch also extends the returned user structure. Objects in the
returned collection are now suitable for user_picture renderer.
2012-04-27 14:41:58 +02:00
David Mudrak 9260bb3c48 MDL-26099 workshop can be switched into the assessment phase automatically 2012-04-13 04:49:46 +02:00
David Mudrak 3fe6d62289 MDL-26099 workshop planner tool displays info about the automatic phase switching 2012-04-13 04:49:46 +02:00
David Mudrak 3ff0805726 MDL-26099 new workshop DB field phaseswitchassessment
Note that most line changes in the patch are caused by the recent
changes in the XMLDB TEXT fields handling (no size specified now) and by
the change in the indentation.
2012-04-13 04:49:46 +02:00
David Mudrak 31cea236af MDL-32235 improving the allocation results rendering
The new renderable class workshop_allocation_result provides a cleaner
interface between the allocator's init() method and the allocation.php
script.
2012-04-13 04:49:45 +02:00
David Mudrak a1373126eb MDL-30865 Workshop method aggregate_grading_grades_process() accepts explicit aggregation timestamp 2012-01-04 02:20:06 +01:00
David Mudrak e30f6ff338 MDL-30453 New renderable classes for assessments of example submissions
The patch introduces two new classes for rendering assessments of
example submission - both the training one and the reference one.
Together with the cooking functions for obtaining instances of these
classes.
2011-11-25 18:41:07 +01:00
David Mudrak f68648e982 MDL-27550 workshop: display the feedback for the submission reviewer when the workshop is closed 2011-08-02 23:33:32 +02:00
David Mudrak 38504a4490 MDL-27550 workshop: assessments are now displayed via proper rendering subsystem
AMOS BEGIN
 MOV [assessmentbyknown,mod_workshop],[assessmentbyfullname,mod_workshop]
AMOS END
2011-08-02 23:33:32 +02:00
David Mudrak 0dfb4bad56 MDL-27550 workshop: display the feedback for the submission author when the workshop is closed
The method user_picture::fields() was not available when these SQL
statements were originally written. Now instead of hard-coding the list
of returned fields, the user_picture is asked for the list.

Together with this change, methods workshop::get_submission_by_id()
and workshop::get_submission_by_author() now return the information
about the user who provided the feedback and overwrote the grade.
2011-08-02 23:33:32 +02:00
David Mudrak c8ea2c4572 MDL-28298 workshop: do not use a constant without explicit inclusion of the library
Instead of including whole formslib just to get the constant defined, I
decided to hard-code the value and put the reference to the comment so
that eventual grep would spot it. Of course that is is not nice at all
but it's lesser of two evils imho.
2011-07-13 10:28:28 +02:00
David Mudrak 20e7fd839a MDL-28015 workshop - fixed unique list of columns in ORDER BY clause
MSSQL requires that the columns in the ORDER BY clause list must be
unique. The patch populates the list of fields by combining an array of
explicit sort definition with an array of implicit (default) sort
definition.
2011-07-07 15:17:27 +02:00
David Mudrak c1ab2b109e MDL-27970 workshop submission can't be edited after the deadline even if late submissions are allowed 2011-06-22 00:34:45 +02:00
David Mudrak 9ddff589df MDL-26147 workshop - added capability to ignore time restrictions 2011-06-10 19:01:27 +02:00
David Mudrak de6aaa7295 MDL-26683 workshop: fixed typos in code comments 2011-03-04 13:03:49 +01:00
Petr Skoda 99d19c13ae MDL-25855 some more missing filelib includes 2011-01-23 18:34:41 +01:00
David Mudrak 5450f7b6c5 MDL-24765 workshop logging features reviewed 2010-10-20 13:13:45 +00:00
David Mudrak c2a3526639 MDL-22507 workshop grading report rendering 2010-10-20 13:13:21 +00:00
David Mudrak a8b309a37d MDL-22507 workshop rendering of messages and allocation process fixed 2010-10-20 13:13:01 +00:00
David Mudrak 81b2288716 MDL-22507 workshop rendering fixed for submissions and example submissions 2010-10-20 13:12:31 +00:00
David Mudrak 65601f04a3 MDL-21249 workshop and its subplugins: fixing phpdocs @package and @subpackage 2010-09-30 14:44:33 +00:00
Petr Skoda 5924db724d fixed a few spelling problems and standardised stdClass 2010-09-18 14:18:39 +00:00
David Mudrak eef46586e9 NOMDL workshop: fixing correct arguments order after recent Petr's play with property_exists() 2010-09-17 23:43:25 +00:00
Petr Skoda 4cc977a64d fixing messed up property_exists() regression - sorrrry 2010-09-17 20:36:49 +00:00
David Mudrak 884482fba1 MDL-19211 workshop uses editors_get_preferred_format() instead of hard coded default formats 2010-07-27 22:30:34 +00:00
David Mudrak 7a5f4be030 NOMDL workshop: support for activity reporting
Also contains several small fixes and improvements done during the
development.
2010-07-26 21:28:42 +00:00
David Mudrak 2f289d366e MDL-23459 workshop: fixed support for late submissions 2010-07-23 16:15:30 +00:00
David Mudrak bfbca63de3 NOMDL Workshop: Improved detection of filled description and instructions
The function strip_tags() used to be here as a way around a bug in
TinyMCE producing empty <br /> instead of empty string. This lead to the
unwanted behaviour that Workshop description of instructions consisting
of <img> only were considered as empty. The TinyMCE seems to produce
correct string now so this is not needed any more.
2010-07-19 13:20:50 +00:00
David Mudrak e706b9c3f6 NOMDL workshop: added new tool to clear the assessments
This is useful when the grading strategy is changed within workshop
instance.
2010-07-09 10:35:20 +00:00
David Mudrak 32c78bc325 NOMDL workshop: added new toolbox viewlet, first tool lets you to clear aggregated grades 2010-07-09 07:55:23 +00:00
David Mudrak c2d2eb6ea0 NOBUG workshop: added field evaluation for future usage
The field holds the name of the grading evaluation method recently used
for the workshop or the default one to be used. At the moment there are
no alternatives but 'best' plugin. But I want to have the field there
before 2.0 stable release and also want to include it in workshop
backups.
2010-07-07 21:46:05 +00:00
Petr Skoda 3a11c09f5b MDL-21676 user_picture refactoring, reenabling email requirement - towards Gravatar support 2010-07-04 18:36:34 +00:00
David Mudrak 5a37249458 Workshop: assessments are available from the submission page 2010-06-14 10:28:35 +00:00
David Mudrak 00bc77eecd Workshop: published submissions are available at the end of the activity 2010-06-14 10:28:24 +00:00
David Mudrak 232175e43a Workshop: submissions can be marked as published 2010-06-14 10:28:03 +00:00
David Mudrak c6b784f09d Workshop: assessment weight can be set 2010-06-11 23:02:35 +00:00
David Mudrak cff28ef080 Workshop: fixed checking of examples assessment before own assessment 2010-06-11 23:02:04 +00:00
David Mudrak 0324b6f170 Workshop: do not show assessments of example submissions in the grades report 2010-06-10 09:54:42 +00:00
David Mudrak 514d8c2269 Workshop: fixed checking of examples assessment before own submission 2010-06-10 09:54:25 +00:00
David Mudrak ac239eba05 NOBUG workshop: allows instant assessment for the teachers
If a user is allowed to allocate a submission to herself for assessment,
there is now a button that she can press to immediately allocate and
assess the submission.
This patch also contains various cleanups spotted during the work.
2010-06-08 23:10:43 +00:00
David Mudrak 5bab64a38b NOBUG workshop: display the phases deadlines in the planner tool 2010-06-08 23:10:26 +00:00
David Mudrak 67ae13d9ad NOBUG workshop: add_allocation() parameters order changed 2010-06-08 23:10:06 +00:00
David Mudrak 8b07eeb8c0 MDL-22507 Fixed a regression, thanks Helen for spotting this 2010-06-04 13:21:32 +00:00