Commit Graph

156 Commits

Author SHA1 Message Date
Daniel Thee Roperto
59bedb3168 Fixed behat problem with the 'execute' function. 2016-10-17 13:22:45 +11:00
Daniel Thee Roperto
35bff58ac3 Fixed behat steps and features to comply with behat 2.5 (until Moodle 30). 2016-10-17 10:01:35 +11:00
Daniel Thee Roperto
c49c854a89 Version 1.0.3 - Removed local_outage example plugin from code. I created another branch with the example code for future reference if needed. 2016-10-14 12:11:58 +11:00
Daniel Thee Roperto
50689c3b4c Version 1.0.2 - Updated code standards to comply with Moodle CI Bot checks. 2016-10-12 15:04:30 +11:00
Daniel Thee Roperto
c7b0cc2410 Issue #36 - Fixed missing or inconsistent PhpDocs. Version is now: 1.0.1 2016-10-04 16:07:40 +11:00
Daniel Thee Roperto
b12ef98170 Issue #36 - Changed version to 1.0 STABLE, ready to submit to plugin directory. 2016-10-03 13:34:23 +11:00
Daniel Thee Roperto
2903326d0d Issue #36 - Changed english titles to conform with plugin contribution checklist. 2016-10-03 11:15:19 +11:00
Daniel Thee Roperto
2883a678a4 Issue #59 - Fixed problem related to config existing in DB but empty. 2016-09-29 12:15:59 +10:00
Daniel Thee Roperto
ad92ce8e8c Issue #59 - Fixed problem related to config existing in DB but empty. 2016-09-29 12:12:33 +10:00
Daniel Thee Roperto
2e363d1acf Issue #58 - Decided to support only Moodle 29+ however older versions may work if using an additional local plugin (skeleton included in the local_outage subfolder). 2016-09-29 10:17:41 +10:00
Daniel Thee Roperto
200133dcab Issue #58 - Added extra hooks for navigation. 2016-09-28 16:12:05 +10:00
Daniel Thee Roperto
e2eb105041 Readme updated. 2016-09-28 13:05:31 +10:00
Daniel Thee Roperto
71ed416f45 Issue #46 and #53 - Improve test assertion for static info page. Added more screenshots and updated the README. 2016-09-28 12:48:52 +10:00
Daniel Thee Roperto
e09ae44f2f Issue #46 and #53 - Fixed failing tests on Moodle 27 and coding style issues. Fixed static page to reload only after the planned duration time. 2016-09-28 10:50:40 +10:00
Daniel Thee Roperto
58eeaccc75 Issue #46 - Added behat tests for the warning bar. Fixed failing unit tests for Moodle 27 28 and 29. Fixed javascript not considering stop time of an outage related to Issue #53. 2016-09-27 16:05:38 +10:00
Daniel Thee Roperto
6a78557487 Issue #46 - Merged new, edit and clone into a single page. Moodle code checker was complaining about duplicated code and it was right! 2016-09-27 10:10:52 +10:00
Daniel Thee Roperto
8791727ba4 Issue #46 - Added tests for every class, except outputs. Small bugs/invalid parameter detection fixed together. 2016-09-26 19:34:27 +10:00
Daniel Thee Roperto
619a5a663f Issue #50 - Automatically unset maintenance_message and log an error if it had something. 2016-09-26 12:00:15 +10:00
Daniel Thee Roperto
b79a70d122 Issue #46 - Fixed moodle-plugin-ci warnings. 2016-09-26 11:17:57 +10:00
Daniel Thee Roperto
909b4bbcd3 Issue #47 - CLI will fail if outage plugin is not enabled. 2016-09-26 10:51:32 +10:00
Daniel Thee Roperto
f8e671a80d Including phpunit.xml with configuration for code coverage. 2016-09-26 10:29:42 +10:00
Daniel Thee Roperto
76d656072b Issue #52 - Fixed static page. 2016-09-26 10:27:49 +10:00
Daniel Thee Roperto
7b6e25915e Issue #46 - Added behat tests to check all actions in the outage manage page (view, create, clone, etc.) 2016-09-25 21:49:42 +10:00
Daniel Thee Roperto
f8bb519620 Issue #51 - Fixed the confirmation page for 'delete' and 'finish' outage. 2016-09-25 21:15:47 +10:00
Daniel Thee Roperto
6b43ffe3b9 Issue #46 - Added behat tests to actions in manage page. 2016-09-25 19:39:00 +10:00
Daniel Thee Roperto
a49693b7d2 Issue #46 - Added behat scenarios to test manage page. 2016-09-25 18:41:51 +10:00
Daniel Thee Roperto
b7a4aa4a9a Issue #46 - Improved manage outage page. 2016-09-25 18:39:52 +10:00
Daniel Thee Roperto
50e3495c85 Issue #48 and Issue #49 - Changed durations text field to duration, eliminating the problem of negative values. Invalid values will become blank and therefore use our hardcoded defaults. 2016-09-25 13:57:50 +10:00
Daniel Thee Roperto
2fd8b307a6 Issue #49 - Changed default settings param type from TEXT to RAW_TRIMMED for 'default description' and 'css'. 2016-09-25 13:29:33 +10:00
Daniel Thee Roperto
09c8c645c5 Issue #55 - Fixed: cannot create or edit outage using GUI because field autostart is missing. 2016-09-25 13:22:30 +10:00
Daniel Thee Roperto
5b964fd29f Issue #54 - Fixed property names and related tests. 2016-09-25 00:51:33 +10:00
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
20b1884697 Issue #32 - Fixed JavaScript code to comply with Moodle 27 and Moodle 28 rules. 2016-09-23 16:15:05 +10:00
Daniel Thee Roperto
ded6b2d005 Issue #32 - UX improvements, detect end of outage and show in warning bar. Does not redirect user to info page anymore. 2016-09-23 15:53:28 +10:00
Daniel Thee Roperto
80ed7b69ad Issue45 - Fixed: Inverted action buttons from planned and history tables. 2016-09-22 18:06:50 +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
2959719c58 Minor changes in outagelib, added PhpDocs and simplified MOODLE_INTERNAL check. 2016-09-19 18:31:13 +10:00
Daniel Thee Roperto
6a81fd6304 Issue #37 - Ensure exceptions in the inject code, executed in virtually all pages, does not put the whole site down. 2016-09-19 18:17:44 +10:00
Daniel Thee Roperto
54b72de472 Issue #39 - Minor UI changes. 2016-09-19 17:50:43 +10:00
Daniel Thee Roperto
6de4f3b82a Merge branch 'issue38-getconfig' 2016-09-19 16:03:44 +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