Commit Graph

  • d7ea580511 Removed sudo required from Travis after 'Precise' update in Travis. Daniel Thee Roperto 2017-05-19 09:32:50 +10:00
  • 4948e6710b Added validate to Travis. Daniel Thee Roperto 2017-05-19 09:21:46 +10:00
  • 61c8847a7b Merge branch 'master' into issue-115_outage-body-class Matt Dawson 2017-05-19 08:10:34 +10:00
  • 21eb6eb080 issue-115: added body class when outage is active Matt Dawson 2017-05-18 16:10:55 +10:00
  • 318e55f03a version bump Matt Dawson 2017-05-18 16:10:16 +10:00
  • 33e142e8cc Merge pull request #108 from catalyst/issue-107_wrong-dataroot Daniel Thee Roperto 2017-03-03 14:37:02 +11:00
  • d80ae326fd Fixes #107 - Check in bootstrap.php if this is a behat environment. Daniel Thee Roperto 2017-03-02 18:13:44 +11:00
  • 2b25eb92db Removed Travis support for Moodle 32 and 33, see issue #106 Daniel Thee Roperto 2017-02-20 14:42:14 +11:00
  • 0b17efedba Issue #104 - Allowed symlinks in dataroot, added unit tests. Daniel Thee Roperto 2017-02-20 12:01:51 +11:00
  • 151d2ba59f Adding timeout to fetch local files. Daniel Thee Roperto 2017-02-09 13:34:38 +11:00
  • e78464f3b7 Travis in verbose mode, set page fetch CURL TIMEOUT to 5 seconds. Daniel Thee Roperto 2017-01-03 15:43:47 +11:00
  • efbdb77ae6 Moodle code style fix. Daniel Thee Roperto 2016-12-21 14:20:26 +11:00
  • 0380c6ebec Outage now honours ABORT_AFTER_CONFIG CLI_SCRIPT AJAX_SCRIPT and WS_SERVER Daniel Thee Roperto 2016-12-16 19:03:29 +11:00
  • fbd9ebabea Added quick guide with step-by-step instructions on how to use this plugin. Daniel Thee Roperto 2016-12-16 19:03:29 +11:00
  • 58a4cd0188 Removed changelog as it was already outdated. Daniel Thee Roperto 2016-12-16 18:25:17 +11:00
  • 0ad53cde87 Added warning to manage outages page if host is not configured (inaccessible wwwroot). Daniel Thee Roperto 2016-12-16 15:52:57 +11:00
  • 3e17049a65 Updated Travis matrix: Moodle 3.2 or later requires at least PHP 5.6.5 Daniel Thee Roperto 2016-12-16 14:05:10 +11:00
  • 66bc96ed6f Issue #90 - Travis timeout. Daniel Thee Roperto 2016-12-16 11:59:59 +11:00
  • 6efbb0c2c7 Refactored tests. Daniel Thee Roperto 2016-12-16 10:23:52 +11:00
  • b8aa1dd233 Issue #86 - Added relative time on manage outage tables. Daniel Thee Roperto 2016-12-14 12:29:27 +11:00
  • 9ddc1cd32c Issue #87 - Using 'notifyerror' instead of the wrong type 'notifyfailure'. Daniel Thee Roperto 2016-12-14 11:52:40 +11:00
  • 38b1b5fe72 Issue #85 - Only remove additionalhtml if in the appropriate settings section. Daniel Thee Roperto 2016-12-14 11:25:44 +11:00
  • 7946dccd5e Issue #88 - Injection should be prevented in settings even if symlinks are used. Daniel Thee Roperto 2016-12-14 11:06:07 +11:00
  • c809873f9a Updated Travis file. Daniel Thee Roperto 2016-12-14 09:57:12 +11:00
  • ffdc14c860 Bump version Brendan Heywood 2016-12-12 17:01:19 +11:00
  • 99428ef0ae Ignore curl ssl errors #83 Brendan Heywood 2016-12-12 16:59:50 +11:00
  • 32f48a2133 Issue #82 - Recreate templates when settings (allowed ips or blocks removed) is updated. Daniel Thee Roperto 2016-12-05 11:15:58 +11:00
  • 67600472ec Fixed problem with bootstrap in CLI. Fixed file.php when dataroot had trailing slashes. Daniel Thee Roperto 2016-11-30 14:11:24 +11:00
  • bf3b08cfea Removing PHP5 in Moodle 32 (master) Travis build. Daniel Thee Roperto 2016-11-18 10:10:17 +11:00
  • 2f0d54c943 Fixed failing tests on Moodle before 30 (related to MDL-56250). Daniel Thee Roperto 2016-11-18 10:03:19 +11:00
  • 659a275a68 Issue #80 - Problem with PHP below 5.6.3 fixed. Daniel Thee Roperto 2016-11-17 15:26:02 +11:00
  • e1524a10bb Added Travis to check for PHP 5.5. Daniel Thee Roperto 2016-11-17 15:17:42 +11:00
  • 916f439fe0 Renamed svg file Brendan Heywood 2016-11-16 16:11:53 +11:00
  • 65099bfa58 Version bumped to 1.0.7 Daniel Thee Roperto 2016-11-15 13:47:00 +11:00
  • 44ef9bb5a2 Travis modifications. Daniel Thee Roperto 2016-11-15 13:17:07 +11:00
  • fc2349f312 Travis is freezing with a few behat tests which creates outages. It works fine locally both manually and with selenium. Ignoring tests and opening issue #77 to deal with it later as the code works fine. Daniel Thee Roperto 2016-11-15 12:25:04 +11:00
  • 7f264a85da Code cleanup to meet code standards. Daniel Thee Roperto 2016-11-14 19:20:46 +11:00
  • 5961e82b85 Issue #22 - Self-refresh maintenance page every 5 minutes or the outage duration, whatever is lower. Daniel Thee Roperto 2016-11-14 15:43:57 +11:00
  • 3360d357d4 Added warnings in case plugin is not properly configured. Daniel Thee Roperto 2016-11-14 15:02:30 +11:00
  • 739c92e94e Fixed string for finish.php Daniel Thee Roperto 2016-11-14 14:03:49 +11:00
  • 73daf6f666 Preventing cli/finish.php to run while in maintenance mode. Daniel Thee Roperto 2016-11-14 13:57:23 +11:00
  • 27c7558e57 Issue #22 - Added setting and implemented removing elements by basic CSS selector (only simple .class and #id can be used as of now). Daniel Thee Roperto 2016-11-14 11:35:08 +11:00
  • 0c97b4be01 Applying moodle coding standards. Daniel Thee Roperto 2016-11-10 19:29:43 +11:00
  • 33be3eef86 Refactored maintenance_static_page.php due to high complexity (more than 50). Daniel Thee Roperto 2016-11-10 19:06:18 +11:00
  • af2e76e972 Issue #22 - Fetching url() inside CSS files. Daniel Thee Roperto 2016-11-10 17:06:56 +11:00
  • 4232ce1b6e Issue #22 - Auto-detect mime types. Daniel Thee Roperto 2016-11-10 15:03:07 +11:00
  • 24759fe280 Issue #22 - Allowing tests to point to a file when a local URL was found. It will be used to test parsed contents later (parse CSS for example). Daniel Thee Roperto 2016-11-10 14:03:59 +11:00
  • a5a301869d Issue #22 - Refactored to allow inspecting files after download to allow parsing the downloaded files. Daniel Thee Roperto 2016-11-10 12:32:17 +11:00
  • d1dffee058 Issue #22 - Fixed bootstrap callback code. Daniel Thee Roperto 2016-11-10 11:24:18 +11:00
  • db6afa4c48 Issue #22 - Refactored to allow hooks in bootstrap.php instead of fetching the file from there. Daniel Thee Roperto 2016-11-09 18:31:54 +11:00
  • 5db5bed914 Issue #22 - Created bootstrap.php to intercept the execution before Moodle finished loading. Daniel Thee Roperto 2016-11-09 16:56:04 +11:00
  • ce2da24b1b Issue #22 - Split maintenance.php into preview.php and file.php Daniel Thee Roperto 2016-11-09 16:21:46 +11:00
  • afd17994fe Issue #22 - Infopage now is not responsible for generating a static page anymore, hooked into maintenance_static_page. Daniel Thee Roperto 2016-11-09 14:35:56 +11:00
  • 146ad61ede Issue #22 - Added PHPDocs. Daniel Thee Roperto 2016-11-09 13:38:20 +11:00
  • cd3433655e Issue #22 - Refactored maintenance_static_page and allowed generate preview page (different location than main template). Daniel Thee Roperto 2016-11-09 13:26:55 +11:00
  • f086fc1af7 Issue #22 - Added headers to cache files and changed filenames to a sha1 hash of its contents. Daniel Thee Roperto 2016-11-09 11:31:54 +11:00
  • 32e44ea86c Issue #22 - Added debug parameter to preview rendered page. Daniel Thee Roperto 2016-11-09 11:00:08 +11:00
  • db85ea06cf Issue #22 - Generation of HTML and copying images ready. Daniel Thee Roperto 2016-11-09 10:52:38 +11:00
  • 6f4b6d3240 Issue #22 - WIP - Basic replacement for styles and images. Daniel Thee Roperto 2016-11-08 14:23:21 +11:00
  • e6921d6649 Issue #22 - Adding parameter to hide warning bar to be used when baking page. Daniel Thee Roperto 2016-11-08 14:03:24 +11:00
  • deb6d87e72 Issue #73 - Could not reproduce the issue but this fix should work. Daniel Thee Roperto 2016-11-08 11:56:11 +11:00
  • 54c43d2508 Issue #2 - IP Block implementation. Daniel Thee Roperto 2016-11-02 17:03:34 +11:00
  • 42fec9e752 Temporarly disabling one scenario test, see Issue #68. Daniel Thee Roperto 2016-11-02 18:16:35 +11:00
  • d37c0ce3e8 Fixed warnings, behat error and deprecated warnings. Daniel Thee Roperto 2016-10-31 16:33:13 +11:00
  • 0f2c2eb84b Fixed svg error Brendan Heywood 2016-10-31 17:42:32 +11:00
  • 6f822a005a Fixed paths Brendan Heywood 2016-10-31 17:40:37 +11:00
  • 15d6cf2dd4 Added svg docs Brendan Heywood 2016-10-31 17:39:23 +11:00
  • d62b6f5b68 Issue #67 - CSS default behaviour. Daniel Thee Roperto 2016-10-21 11:48:19 +11:00
  • f1b5959aff Issue #65 - The additionalhtmltopofbody was being actually set with content when editing. Daniel Thee Roperto 2016-10-20 18:05:14 +11:00
  • e07ae94cd2 Fixed PHPUnit table problem after uninstalling plugin. Daniel Thee Roperto 2016-10-19 11:45:14 +11:00
  • 22c158949c Issue #61 - Default value for CSS not saving. Daniel Thee Roperto 2016-10-19 10:53:37 +11:00
  • e6f983e141 Issue #63 - Fixed calendar_test.php warnings. Daniel Thee Roperto 2016-10-19 10:32:22 +11:00
  • 38dbb6deaa Issue #64 - Fixed problems detected by Behat test. Daniel Thee Roperto 2016-10-19 10:30:26 +11:00
  • 6985d33dc6 Issue #57 - Calendar entry not removed on uninstall -- Fixed failing unit tests. Daniel Thee Roperto 2016-10-18 14:49:59 +11:00
  • f652c9ecf0 Issue #57 - Calendar entry not removed on uninstall. Daniel Thee Roperto 2016-10-18 14:05:05 +11:00
  • fa2228697d Behat will fail with Moodle 27, 28, 29 because the local/outage plugin is required for those versions. Removed those versions from behat tests. Daniel Thee Roperto 2016-10-17 13:55:20 +11:00
  • 59bedb3168 Fixed behat problem with the 'execute' function. Daniel Thee Roperto 2016-10-17 13:22:45 +11:00
  • 35bff58ac3 Fixed behat steps and features to comply with behat 2.5 (until Moodle 30). Daniel Thee Roperto 2016-10-14 17:52:41 +11:00
  • 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. Daniel Thee Roperto 2016-10-14 12:11:58 +11:00
  • 50689c3b4c Version 1.0.2 - Updated code standards to comply with Moodle CI Bot checks. Daniel Thee Roperto 2016-10-12 15:04:30 +11:00
  • c7b0cc2410 Issue #36 - Fixed missing or inconsistent PhpDocs. Version is now: 1.0.1 Daniel Thee Roperto 2016-10-04 14:47:00 +11:00
  • b12ef98170 Issue #36 - Changed version to 1.0 STABLE, ready to submit to plugin directory. Daniel Thee Roperto 2016-10-03 13:34:23 +11:00
  • 2903326d0d Issue #36 - Changed english titles to conform with plugin contribution checklist. Daniel Thee Roperto 2016-10-03 10:18:35 +11:00
  • 2883a678a4 Issue #59 - Fixed problem related to config existing in DB but empty. Daniel Thee Roperto 2016-09-29 12:15:59 +10:00
  • ad92ce8e8c Issue #59 - Fixed problem related to config existing in DB but empty. Daniel Thee Roperto 2016-09-29 12:12:33 +10:00
  • 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). Daniel Thee Roperto 2016-09-29 09:53:19 +10:00
  • 200133dcab Issue #58 - Added extra hooks for navigation. Daniel Thee Roperto 2016-09-28 15:27:40 +10:00
  • e2eb105041 Readme updated. Daniel Thee Roperto 2016-09-28 13:05:31 +10:00
  • 71ed416f45 Issue #46 and #53 - Improve test assertion for static info page. Added more screenshots and updated the README. Daniel Thee Roperto 2016-09-28 12:48:52 +10:00
  • 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. Daniel Thee Roperto 2016-09-28 10:50:40 +10:00
  • 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. Daniel Thee Roperto 2016-09-27 16:05:38 +10:00
  • 6a78557487 Issue #46 - Merged new, edit and clone into a single page. Moodle code checker was complaining about duplicated code and it was right! Daniel Thee Roperto 2016-09-26 22:14:03 +10:00
  • 8791727ba4 Issue #46 - Added tests for every class, except outputs. Small bugs/invalid parameter detection fixed together. Daniel Thee Roperto 2016-09-26 19:34:27 +10:00
  • 619a5a663f Issue #50 - Automatically unset maintenance_message and log an error if it had something. Daniel Thee Roperto 2016-09-26 12:00:15 +10:00
  • b79a70d122 Issue #46 - Fixed moodle-plugin-ci warnings. Daniel Thee Roperto 2016-09-26 11:17:57 +10:00
  • 909b4bbcd3 Issue #47 - CLI will fail if outage plugin is not enabled. Daniel Thee Roperto 2016-09-26 10:51:32 +10:00
  • f8e671a80d Including phpunit.xml with configuration for code coverage. Daniel Thee Roperto 2016-09-26 10:29:42 +10:00
  • 76d656072b Issue #52 - Fixed static page. Daniel Thee Roperto 2016-09-26 10:27:49 +10:00
  • 7b6e25915e Issue #46 - Added behat tests to check all actions in the outage manage page (view, create, clone, etc.) Daniel Thee Roperto 2016-09-25 21:38:35 +10:00
  • f8bb519620 Issue #51 - Fixed the confirmation page for 'delete' and 'finish' outage. Daniel Thee Roperto 2016-09-25 21:15:47 +10:00