64 Commits

Author SHA1 Message Date
skodak
9a915276fc MDL-14605 removed old stats upgrade code 2008-05-01 22:05:26 +00:00
dongsheng
12d0687748 "MDL-14460, fix get_context_instance, merged from MOODLE_19_STABLE" 2008-05-01 06:07:24 +00:00
stronk7
c4c1348c24 Replace low level $db->Concat() calls to Moodle sql_concat() cross-db alternative. MDL-13823 ; merged from 19_STABLE 2008-04-20 22:15:21 +00:00
skodak
e4703b032f MDL-8474 stats upgrade now uses editing teachers only; merged from MOODLE_19_STABLE 2008-04-20 19:55:15 +00:00
skodak
85db09fb81 MDL-14021 replaced sloppy JOIN ON TRUE with CROSS JOINs - ora or ms does not like it; backported from MOODLE_19_STABLE 2008-03-22 20:23:06 +00:00
skodak
ddb9c47252 MDL-13939 stats produce bogus role/course data if user has several different enrolments; ,erged from MOODLE_19_STABLE 2008-03-16 01:24:21 +00:00
skodak
2c20af9c75 MDL-13626 fixed mssql compatibility issue in stats upgrade; merged from MOODLE_19_STABLE 2008-02-25 21:55:43 +00:00
skodak
67ce5270fb MDL-13520, MDL-13604, MDL-13620 stats - better simplified parent context join, administrator now counted too, optimised processing when no day logs present; merged from MOODLE_19_STABLE 2008-02-23 22:55:15 +00:00
skodak
cdcd72838b MDL-13532 removed incorrect coalesce+count combination; merged from MOODLE_19_STABLE 2008-02-23 11:55:18 +00:00
skodak
61460dd631 MDL-13192 major stats cleanup patch - see tracker for more details; merged from MOODLE_19_STABLE 2008-02-16 18:33:50 +00:00
mjollnir_
bd903ae9de merged: fixing warnings in stats lib - rather than doing an include_once and noticing for every missing mod, check the file exists first from MOODLE_16_STABLE, and fixed up some weirdness in the reports 2007-04-11 23:53:15 +00:00
toyomoyo
d0c5373f16 merged changing require_once to include_once to tolerate faulty mods 2007-03-08 03:32:55 +00:00
martinlanghoff
0f467340a6 MDL-7385 - stats_cron_daily() - If a module is missing, continue processing 2007-02-28 03:03:42 +00:00
martinlanghoff
b0ae3878a4 Fixing MDL-6795 - Stats never runs. stats_monthly table gets very full - avoid double tz calculations in stats_getmidnight() 2007-02-28 02:50:51 +00:00
mjollnir_
e60129286a merged from MOODLE_17_STABLE: fixing MDL-8662 2007-02-26 00:18:19 +00:00
stronk7
bb48a53735 Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:09:02 +00:00
stronk7
5fd4e46dbd Dropping some hardocded "mdl" prefixes. MDL-7202
Merged from MOODLE_17_STABLE
2006-10-24 18:29:34 +00:00
stronk7
37c47abaca Suppress all the uses of LIMIT in the get_field_sql() calls. MDL-7173
Merged from MOODLE_17_STABLE
2006-10-23 16:03:52 +00:00
moodler
8ea7e7b0f7 Merged endless loop fix from stable 2006-10-03 01:46:16 +00:00
moodler
203abb60b4 FIxed use of reserved SQL words for MDL-6778 2006-10-02 06:52:21 +00:00
moodler
867f5adb73 Moved Penny's funky sql function into dmllib.php 2006-09-26 04:33:59 +00:00
mjollnir_
75673b93f8 fixing the participants report to work with roles 2006-09-26 01:23:57 +00:00
mjollnir_
af5d9f6a06 bugsquish! stats aggregates and weird missing dates bug 2006-09-25 04:50:17 +00:00
mjollnir_
931ab7be83 fixes to activity stats processing for dailies 2006-09-24 07:15:22 +00:00
mjollnir_
96edb010da more work on stats reports ... 2006-09-24 07:13:33 +00:00
mjollnir_
11887b6d5e more fixing on reports 2006-09-24 03:15:52 +00:00
mjollnir_
67f3be726e fixes to the stats processing. Credit: Geoff Cant <geoff@catalyst.net.nz> (sql ninja) 2006-09-23 12:42:35 +00:00
mjollnir_
0dd5bf422b more work on stats - reports this time 2006-09-23 12:08:46 +00:00
mjollnir_
09cf1c9b55 follow correct naming convention when fetching legacy teacher role 2006-09-23 09:47:11 +00:00
mjollnir_
88d7e6218e fixing typo in stats upgrade I just made 2006-09-23 09:02:37 +00:00
mjollnir_
0f259f63d9 lots of fixes to stats, more to come 2006-09-23 08:52:12 +00:00
mjollnir_
0e3404aabd fixing stats_get_course_users. my brain hurts 2006-09-22 11:34:25 +00:00
mjollnir_
f5aa20162c added missing indexes in stats upgrade, fixed discrepency between stattype enrolment or enrolments 2006-09-22 10:43:04 +00:00
mjollnir_
1282edc826 fixing up the stats table enums 2006-09-22 10:18:33 +00:00
moodler
aad2ba95d1 Upgrading table to rename the context->aggregatelevel field which was
really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.
2006-09-22 06:19:32 +00:00
mjollnir_
29bbc6e730 As well as a credit to Nigel for the stats schema upgrade and data migration, the previous commit here should have had a HUGE credit to Geoff Cant <geoff@catalyst.net.nz> for NINJA SQL 2006-09-22 03:15:52 +00:00
mjollnir_
e5d83d6fc1 stats rework: 1. upgrade schema and move data to new schema. (credit: Nigel McNie <nigel@catalyst.net.nz>). 2. Stats processing uses new schema. THIS NEEDS TESTING ON MYSQL. Still to do: schema files (install.xml,*.sql still to be committed), reports to use new schema. 2006-09-22 02:54:21 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
moodler
cfef9e55d0 Endless loop fix from stable 2006-08-14 15:20:49 +00:00
skodak
13d32e2297 Bug #5974 - Course overview report should not error when stats are not up to date; fixed by changing the return value from stats_check_uptodate(), NULL is now OK, string value describes error and adding notify() where needed; merged from MOODLE_16_STABLE 2006-07-03 15:43:41 +00:00
skodak
b56e8cfdfc Bug #4647 - Undefined property in lib/statslib.php; merged from MOODLE_16_STABLE 2006-05-26 09:01:37 +00:00
toyomoyo
addcde11c8 merged changes from renaming reads/writes to statsreads/statswties - mysql5 reserved words 2006-05-25 02:53:00 +00:00
tjhunt
450a0a7db7 Merge from stable branch: Convert tabs to spaces in files where there were only a few rogue tabs. 2006-05-17 16:47:44 +00:00
skodak
3f73372fe5 fixed warning when no stats data yet 2006-04-26 21:13:45 +00:00
skodak
d850b4e621 typo in switch 2006-04-22 13:38:24 +00:00
mjollnir_
9ec656750e More time fixes for stats - under certain dst situations there could have been an infinite loop. Please someone who is clever about timezones & dst review this 2006-03-24 20:43:38 +00:00
mjollnir_
68d9654316 Display fix to stats 2005-11-16 19:49:07 +00:00
mjollnir_
9afaefaa1f Adding threshold to most active courses (Weighted) 2005-11-04 00:51:42 +00:00
mjollnir_
e7202b3fd2 Adding missing stats string; fixing weird bug for when stats starts processing from now rather than all 2005-11-03 22:57:14 +00:00
mjollnir_
7b89e1898f Admin setting for stats: ranked courses get userthreshold 2005-11-03 22:45:35 +00:00