663 Commits

Author SHA1 Message Date
skodak
e072450699 MDL-11578 , MDL-11578 , MDL-11573 :
* renamed Preferences to "My report preferences"
* renamed Site defaults to "Report defaults"
* rename Change site defaults to "Change report defaults"
* reintroduced Inherit option to Grader preferences - Nicolas was right, it is not possible to implement preference overrides without it with our current get_pref inplementation
* new separate option in plugin selector "Course settings"
* moved displaytype, decimals and aggregation position to "Course settings"
* created new table grade_settings + related functions grade_get/set_preference()
* user report now uses grade_seq class instead of grade_item::fetch_all(); added preloading of grade items into grade_grade instances
* other minor bugfixing/cleanup/improvements

Please note that the Grader report preferences and its defaults must be resaved again - sorry.
2007-10-08 23:09:10 +00:00
stronk7
cef1ea8e8e Adding one new index to cache_text table. User to make cron deletion
of expired records faster. MDL-11605
2007-10-08 16:33:29 +00:00
toyomoyo
a506e40c9f dropping context_rel table 2007-10-08 08:51:59 +00:00
skodak
8108909a60 MDL-9636 grade import fixes - allow null grades, no importcode collisions and stealing, more validation and other bugfixes 2007-10-07 13:04:49 +00:00
skodak
7d0c81b3ba MDL-11521 fixed problems when creating contexts and aprents does not exist yet
MDL-11527 fixed warning from $CFG->defaultuserroleid when installing and upgrading
+ removed reusing of previous contexts in has_capability() and get_context_instance()  because it was hiding critical errors when context was false, not specified, etc.
+ tweaked roles defaults - faster and defaults are applied when roles exist
+ SYSCONTEXTID may be specified in config.php to eliminate 1 db query
+ static context cache is now reset after rebuilding of context paths
+ path field in context table is now nullable - pg compatibility requirement
+ other minor fixes
2007-10-05 15:06:38 +00:00
moodler
0371f8e52f Added some default roles that should have moodle/grade:viewhidden
related to MDL-11580
2007-10-04 15:45:37 +00:00
toyomoyo
7f0648510a MDL-11544, tags migrate script postgres db problem 2007-10-04 07:06:54 +00:00
skodak
c626c2f460 MDL-11566 site summary now optional 2007-10-03 10:35:34 +00:00
skodak
c57be126c4 DONAL, PLEASE START USING OUR DB EDITOR! the last commit did have invalid XML, incorrect next/prev attributes, different data in install.xml and upgrade.php; the main reason to have this editor was to prevent this type of critical errors ;-) 2007-10-02 16:50:43 +00:00
skodak
266f6b5900 MDL-11555 temporary patch for too long index on mysql - in mysql the limit is 333 unicode chars
move the gradebook cleanup to the end of upgrade.php - please keep it there
2007-10-02 16:20:45 +00:00
donal72
38d507af71 Fix for version no. (date) in upgrade.php 2007-10-02 15:44:36 +00:00
donal72
ac4e96fccd New database fields in mnet_host for roaming themes 2007-10-02 15:43:11 +00:00
martinlanghoff
e4a5c864b5 version bump: introducing cache_flags table to store volatile time-bound flags
We are intending to use them for dirty context paths, lightweight
session entries for auth/ldap, and other similar uses...

MDL-11347
2007-10-02 08:38:19 +00:00
toyomoyo
165088f687 change participants of frontpage course to display all users, if current user has capability MDL-11143 2007-10-02 03:37:30 +00:00
skodak
5cf5e181dd MDL-11504 added grade_letter -> grade_letters migration - will not be executed on dev sites where grade_letters already exists :-( 2007-09-28 21:58:02 +00:00
skodak
d926630485 MDL-11504 fixed defaults in grade_items/display; added decimals and display to grade_items_history 2007-09-28 21:00:31 +00:00
skodak
284abb0925 MDL-11495 grade letter setting improvements:
* in_null for decimals defaults checks
* store letter settings only in database - no cfg settings
* separate configuration page for letters only - pluginselector+admin tree
* new capability to manage grade letters - similar to scales and outcomes
* added grade_letters db index
* grade letters related minor bugfixing
2007-09-28 20:12:43 +00:00
nicolasconnault
b39b58fe45 MDL-11433 Correcting non-null and default value (Default will be NULL) 2007-09-25 09:47:40 +00:00
nicolasconnault
52cb2e4716 MDL-11433 Added decimals field to grade_items table 2007-09-25 08:35:16 +00:00
stronk7
28271c7205 Second pass. Some more default comments are out. MDL-11385 2007-09-24 22:10:13 +00:00
skodak
535c0080c3 MDL-10781 reimplemented tags upgrade code: uses recordsets; no calls to tag/lib.php functions - those would break if we changed db structure; no ordering in blog tags - we did not respect the tag order before, this way it is much faster 2007-09-24 19:18:48 +00:00
stronk7
7529139a8d First pass. Deleting some default comments. MDL-11385 2007-09-24 19:08:00 +00:00
ikawhero
540286f1f2 Fixing typo. 2007-09-24 03:02:16 +00:00
skodak
3f2b0c8aba MDL-11363 merged tables grade_grades with grade_grades_text - it is now possible to define fields as required and optional
finally fixed formula validation in calculation edit form
2007-09-22 11:39:59 +00:00
stronk7
d5d2f8a6f0 Adding the new context_temp permanet table to be used
by build_context_path() . MDL-11347
2007-09-21 08:48:51 +00:00
moodler
0b9dcf3df4 Bumping the date and the context path upgrade in case anyone was stuck from yesterday MDL-11347 2007-09-20 06:47:14 +00:00
martinlanghoff
dd14fecfa4 accesslib upgrade: remove stray build_context_rel(), force path rebuild
Fixes problems during upgrades from 1.7x/1.8.x to mdl19-perf.
2007-09-19 07:53:00 +00:00
martinlanghoff
c24f4599c3 accesslib rework: Upgrade block to populate context.path and friends
Note: this upgrade changes how accesslib works.
2007-09-19 07:42:42 +00:00
martinlanghoff
5f38222405 accesslib: remove insert_context_rel(), build_context_rel() and others
The context_rel table is not used anymore. Get rid of all references
to it.

TODO: Drop the orphaned table - but we'll do that on HEAD.
2007-09-19 07:23:15 +00:00
nicolasconnault
e480c18cf1 MDL-11312 Added new grade_letters table, and new grade_items.display field. 2007-09-18 14:26:15 +00:00
nicolasconnault
a5b8be622c MDL-11275 added (submissions). Also fixed :
Issue:
    Teachers can edit grader report preferences (including switches for quickgrading and
    quickfeedback), but do not have access to the "Turn editing on/off" button, so they
    can't do quickgrading.
Solutions:
    1.Decouple the quickgrading and quickfeedback modes from the editing mode,
        and turn them on/off through the preferences page. New capability: moodle/grade:edit
        * preferences: don't show quickgrading if no capability grade:edit
        * If quickgrading is switched off as a preference and user doesn't have manage cap, show edit icons around grades when in editing mode
2007-09-17 17:31:48 +00:00
stronk7
4a039315d7 Dropping one UNIQUE index over NULLable columns. It isn't
cross-db at all. So we make the composite index not unique
to get speed benefits but the unique constraint is
controlled programatically.
2007-09-06 18:31:13 +00:00
skodak
c2efb50142 MDL-11130 added aggregation inside all subcategories + added graded/all aggregation option 2007-09-05 19:15:21 +00:00
moodler
d61d8c09ce Removed hardcoded string 'course grades category' 2007-09-05 09:17:19 +00:00
stronk7
6db368e117 PostgreSQL doesn't like aliases in update statements.
Changing to the whole name as prefix.
2007-09-04 17:51:51 +00:00
stronk7
abd3025272 Fix a bunch of SIGNED fileds that should be UNSIGNED. Credit goes to Petr.
Part of MDL-11038
2007-08-31 19:27:04 +00:00
skodak
f4d30b222b MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling me how to do it correctly with SQL ;-) 2007-08-31 12:43:15 +00:00
stronk7
4149e289b6 Fix mnet_hosts->applicationid (from 1 to 10). MDL-11042 2007-08-28 18:27:00 +00:00
skodak
61c6071f40 MDL-10984 support for user private keys when accession scripts without normal sessions 2007-08-28 08:29:40 +00:00
toyomoyo
c4956945c1 MDL-11016, MDL-11015 improvements to the tag, tag_instance and tag_correlation tables 2007-08-28 04:11:58 +00:00
toyomoyo
0e80ffb293 dropping tables in xml 2007-08-27 09:14:19 +00:00
toyomoyo
bd1f4559f7 MDL-10956, convert blogs to use the same tags (and convert old tags) 2007-08-27 08:46:00 +00:00
toyomoyo
a4232e9500 adding timemodified to tag_instance table (to get blog blocks working) 2007-08-27 04:21:59 +00:00
toyomoyo
3e6e529fa4 MDL-10911, setting tag:create and tag:edit to allow for user role and admin role 2007-08-24 05:39:37 +00:00
moodler
1acd661d07 Committing Luiz's code for MDL-10968 to add ordering for the tags 2007-08-24 03:20:12 +00:00
poltawski
25a7d98066 MDL-10573 - moodle/block:view wasn't working with switch roles or block_list class 2007-08-22 10:35:28 +00:00
toyomoyo
0f07c40e01 MDL-10911, setting moodle/tag:create to allow as default for the authenticated user role 2007-08-22 03:27:57 +00:00
skodak
2524b0f24c MDL-10383 - major groups patch - see bug i ntracker for more details - authors: Nick, Matt, Enrique and me 2007-08-14 00:50:00 +00:00
poltawski
7e874772a3 MDL-10573 - Added a capability for viewing blocks, this allows role-based control of block
display.

Changed context capability check so that CONTEXT_BLOCK capabilities can also come from the
moodle core capability definitions
2007-08-13 10:08:15 +00:00
toyomoyo
f37cc4bb35 MDL-10817, adding unique key courseid-coutcomeid during creation of grade_outcomes_courses 2007-08-13 02:11:59 +00:00