Commit Graph

94 Commits

Author SHA1 Message Date
Daniel Thee Roperto
cd3433655e Issue #22 - Refactored maintenance_static_page and allowed generate preview page (different location than main template). 2016-11-09 13:26:55 +11:00
Daniel Thee Roperto
f086fc1af7 Issue #22 - Added headers to cache files and changed filenames to a sha1 hash of its contents. 2016-11-09 11:35:05 +11:00
Daniel Thee Roperto
db85ea06cf Issue #22 - Generation of HTML and copying images ready. 2016-11-09 10:52:38 +11:00
Daniel Thee Roperto
6f4b6d3240 Issue #22 - WIP - Basic replacement for styles and images. 2016-11-08 18:49:54 +11:00
Daniel Thee Roperto
e6921d6649 Issue #22 - Adding parameter to hide warning bar to be used when baking page. 2016-11-08 14:03:24 +11:00
Daniel Thee Roperto
deb6d87e72 Issue #73 - Could not reproduce the issue but this fix should work.
- Added a fixed timestamp to get both planned/past outages, unlikely to happen outsite debugging environment but it could have a timing problem when fetching each list of outages.

- Changed the query to get ended queries to be a the conditions of NOT a past outage. I believe the old query was equivalent but that should rule out a query problem.
2016-11-08 11:56:11 +11:00
Daniel Thee Roperto
54c43d2508 Issue #2 - IP Block implementation. 2016-11-07 15:24:23 +11:00
Daniel Thee Roperto
d37c0ce3e8 Fixed warnings, behat error and deprecated warnings. 2016-11-02 16:53:44 +11:00
Daniel Thee Roperto
d62b6f5b68 Issue #67 - CSS default behaviour. 2016-10-21 11:48:19 +11:00
Daniel Thee Roperto
f1b5959aff Issue #65 - The additionalhtmltopofbody was being actually set with content when editing. 2016-10-21 11:31:09 +11:00
Daniel Thee Roperto
38dbb6deaa Issue #64 - Fixed problems detected by Behat test. 2016-10-19 10:30:26 +11:00
Daniel Thee Roperto
f652c9ecf0 Issue #57 - Calendar entry not removed on uninstall. 2016-10-18 14:05:05 +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
2883a678a4 Issue #59 - Fixed problem related to config existing in DB but empty. 2016-09-29 12:15:59 +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
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
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
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
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
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
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
Daniel Thee Roperto
671e7d5f67 Issue #38 - Ensuring we always have default values for plugin config. 2016-09-19 15:44:09 +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
da39a78ca8 Issue #23 - Added option to clone an outage. 2016-09-13 17:41:10 +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
b8c08192d1 Issue #28 - Added hints for the edit outage form. 2016-09-12 18:22:50 +10:00