Commit Graph

33 Commits

Author SHA1 Message Date
Daniel Thee Roperto
fbef0f52cf Issue #46 - Improved behat for default settings. 2016-09-24 22:21:18 +10:00
Daniel Thee Roperto
4241762a1b Issue #46 - Implemented a basic behat test to check saving the default settings. 2016-09-23 23:25:08 +10:00
Daniel Thee Roperto
375c76dbf8 Merge branch 'master' into issue19-behat 2016-09-23 19:33:42 +10:00
Daniel Thee Roperto
5df01b342e Fixed insepections, refactored to reduce complexity (phpmd warning). 2016-09-22 16:47:07 +10:00
Daniel Thee Roperto
b302d9dfa5 Issue #21 - Added flag to outages, if set it will automatically start the maintenance mode once the outage starts. 2016-09-22 14:58:29 +10:00
Daniel Thee Roperto
708622bbcd Issue #42 - Refactoring code according to Moodle Coding Style. 2016-09-21 19:04:22 +10:00
Daniel Thee Roperto
19b66629a8 Issue #41 - Changed assertNotFalse (not available in older phpunit) to assertTrue(is_object()) to check if events are not false (not found). 2016-09-21 12:24:29 +10:00
Daniel Thee Roperto
e6a2231ba1 Issue #33 - Refactored code, created infopage_controller to control the display of an info page. 2016-09-21 11:23:23 +10:00
Daniel Thee Roperto
6824127624 Issue #23 - Generate a static template page every time an outage is created, updated or deleted. 2016-09-20 16:43:42 +10:00
Daniel Thee Roperto
edbbc2dd83 Added full phpunit coverage for classes in: cli and event 2016-09-19 20:05:21 +10:00
Daniel Thee Roperto
54b72de472 Issue #39 - Minor UI changes. 2016-09-19 17:50:43 +10:00
Daniel Thee Roperto
a2d9f33a4c Merge branch 'issue27-cli' 2016-09-19 16:02:30 +10:00
Daniel Thee Roperto
2670485341 Issue #27 - Changed deltas for CLI from minutes to seconds. 2016-09-19 15:55:57 +10:00
Daniel Thee Roperto
f0ae7b8410 Issue #30 - Fixed stage values and broken tests. 2016-09-19 13:13:03 +10:00
Daniel Thee Roperto
f569157368 Issue #27 - CLI implemented. Added full test coverage to CLI classes. 2016-09-19 12:05:10 +10:00
Daniel Thee Roperto
2cfda63922 Issue #30 - Add finished flag to mark the real time that an outage was finished. 2016-09-15 18:24:36 +10:00
Daniel Thee Roperto
7ca44c74ab Fixed code inspections, missing phpdocs and code standards. 2016-09-15 14:01:45 +10:00
Daniel Thee Roperto
92681c7ec4 Issue #26 - Added the option to preview how a warning bar will look before and during an outage. 2016-09-13 17:26:21 +10:00
Daniel Thee Roperto
feaca1d78e Issue #26 - Preview warning bar with parameters auth_outage_preview and auth_outage_delta 2016-09-13 12:58:01 +10:00
Daniel Thee Roperto
cbbb861fd8 Issue #8 - Fixed failing phpunit tests. 2016-09-12 17:52:08 +10:00
Daniel Thee Roperto
ee771daecf Issue #11 - Small fixed as suggested by Brendan. 2016-09-12 13:57:33 +10:00
Daniel Thee Roperto
22f85930ce Issue #11 - TDD to get future and past outages (outagedb). 2016-09-12 12:10:22 +10:00
Daniel Thee Roperto
e13bc05f5e Issue #11 - Tests for outagedb get_all_active. 2016-09-12 11:49:11 +10:00
Daniel Thee Roperto
6bb9320ef6 Outage remodelled both in DB and PHP Class. Issue #17. 2016-09-09 11:39:44 +10:00
Daniel Thee Roperto
4e46e934d0 WIP Issue #17 - Settings page done, missing forms and other references to warning duration and stop time. 2016-09-08 17:25:28 +10:00
Daniel Thee Roperto
2a120f0ebe Renamed methods, files and language keywords in order to match Moodle style. Issue #16 2016-09-07 11:31:58 +10:00
Daniel Thee Roperto
583516a3c7 Issue #9 - Checking if outage is ongoing or just a warning. Improved hooks, tests and HTML output. 2016-09-06 17:17:26 +10:00
Daniel Thee Roperto
13418a6a28 Issue #9 - Hooks installed, getting current outage implemented, missing adding information to the UI. 2016-09-06 14:00:14 +10:00
=
877c886084 Added behat test to add outage. Related to code developed in Issue #1 2016-09-04 22:38:56 +10:00
Daniel Thee Roperto
18e0583ba5 Issue #12 - fixed code standard problems preventing Travis to build. 2016-09-02 15:38:19 +10:00
Daniel Thee Roperto
2cf9afb5c5 Namespace changes, outagedb changed to used static methods instead on singleton, utils renamed to outagelib (better name when using the 'use' directive). Issue #1 2016-09-02 11:55:17 +10:00
Daniel Thee Roperto
b9b6077ce4 Added tests for outagedb class - #1 2016-09-01 16:40:47 +10:00
Daniel Thee Roperto
44f826fd68 Added tests for outage and outageutils class - #1 2016-09-01 14:21:38 +10:00