Commit Graph

57 Commits

Author SHA1 Message Date
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
cdcd72838b MDL-13532 removed incorrect coalesce+count combination; merged from MOODLE_19_STABLE 2008-02-23 11:55:18 +00:00
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
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
d0c5373f16 merged changing require_once to include_once to tolerate faulty mods 2007-03-08 03:32:55 +00:00
0f467340a6 MDL-7385 - stats_cron_daily() - If a module is missing, continue processing 2007-02-28 03:03:42 +00:00
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
e60129286a merged from MOODLE_17_STABLE: fixing MDL-8662 2007-02-26 00:18:19 +00:00
bb48a53735 Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:09:02 +00:00
5fd4e46dbd Dropping some hardocded "mdl" prefixes. MDL-7202
Merged from MOODLE_17_STABLE
2006-10-24 18:29:34 +00:00
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
8ea7e7b0f7 Merged endless loop fix from stable 2006-10-03 01:46:16 +00:00
203abb60b4 FIxed use of reserved SQL words for MDL-6778 2006-10-02 06:52:21 +00:00
867f5adb73 Moved Penny's funky sql function into dmllib.php 2006-09-26 04:33:59 +00:00
75673b93f8 fixing the participants report to work with roles 2006-09-26 01:23:57 +00:00
af5d9f6a06 bugsquish! stats aggregates and weird missing dates bug 2006-09-25 04:50:17 +00:00
931ab7be83 fixes to activity stats processing for dailies 2006-09-24 07:15:22 +00:00
96edb010da more work on stats reports ... 2006-09-24 07:13:33 +00:00
11887b6d5e more fixing on reports 2006-09-24 03:15:52 +00:00
67f3be726e fixes to the stats processing. Credit: Geoff Cant <geoff@catalyst.net.nz> (sql ninja) 2006-09-23 12:42:35 +00:00
0dd5bf422b more work on stats - reports this time 2006-09-23 12:08:46 +00:00
09cf1c9b55 follow correct naming convention when fetching legacy teacher role 2006-09-23 09:47:11 +00:00
88d7e6218e fixing typo in stats upgrade I just made 2006-09-23 09:02:37 +00:00
0f259f63d9 lots of fixes to stats, more to come 2006-09-23 08:52:12 +00:00
0e3404aabd fixing stats_get_course_users. my brain hurts 2006-09-22 11:34:25 +00:00
f5aa20162c added missing indexes in stats upgrade, fixed discrepency between stattype enrolment or enrolments 2006-09-22 10:43:04 +00:00
1282edc826 fixing up the stats table enums 2006-09-22 10:18:33 +00:00
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
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
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
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
cfef9e55d0 Endless loop fix from stable 2006-08-14 15:20:49 +00:00
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
b56e8cfdfc Bug #4647 - Undefined property in lib/statslib.php; merged from MOODLE_16_STABLE 2006-05-26 09:01:37 +00:00
addcde11c8 merged changes from renaming reads/writes to statsreads/statswties - mysql5 reserved words 2006-05-25 02:53:00 +00:00
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
3f73372fe5 fixed warning when no stats data yet 2006-04-26 21:13:45 +00:00
d850b4e621 typo in switch 2006-04-22 13:38:24 +00:00
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
68d9654316 Display fix to stats 2005-11-16 19:49:07 +00:00
9afaefaa1f Adding threshold to most active courses (Weighted) 2005-11-04 00:51:42 +00:00
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
7b89e1898f Admin setting for stats: ranked courses get userthreshold 2005-11-03 22:45:35 +00:00
e15df3562f Stats display fix for ranked courses: enrolments and active users should
be max() not sum()
2005-11-03 22:22:05 +00:00
42307c47b2 Fixing bug 4259: statslib infinite loop on php 5.1 date/time changes. Credit: Samuli Karevaara (great catch!) 2005-11-02 22:20:35 +00:00
78c7303cb4 Fixing warnings in statslib. Bug # 4252, credit: samuli dot karevaara at lamk dot fi 2005-10-30 20:39:16 +00:00
4d8e4c38ae Better time handling for stats - ignores dst and no longer relies on 1 day to be +(60*60*24). Also fixes mysql incompatibility in reporting with ::real - bug # 4241 2005-10-27 20:41:49 +00:00
3eb9babc71 Some fixes to stats (performance) and new reports for ranking courses based on usage/particpation 2005-10-16 20:55:40 +00:00
3a317277b6 Many small fixes to stats, including aggregate activity across all courses when querying for SITEID 2005-10-13 03:16:11 +00:00
5ed4dd5a76 Stats: many bug fixes found while running over a very large dataset... 2005-10-11 01:20:37 +00:00