aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
AgeCommit message (Collapse)Author
2012-11-27Be more picky when setting updated_at/created_at timestamps.Patrick J Cherry
2012-11-27Make sure nil event_types are no treated as strings.Patrick J Cherry
2012-11-23AlertGroup is no longer looked for on raise/clear/ack. It is looked up on ↵Patrick J Cherry
notification. Made Alert#alert_group a bit clearer.
2012-11-21Make sure notifications only get sent on Alert#save if the state hasPatrick J Cherry
changed in a sane way.
2012-11-21Fixed couple of typosPatrick J Cherry
2012-11-21Removed duplicate code from Alert#in_source_list, andPatrick J Cherry
SourceList#include. Also cut down on DNS queries, and IPAddr conversions.
2012-11-21Updated alert queries to be more precise.Patrick J Cherry
2012-11-21Fixed all_raised to properly compare the raised_at and cleared_atPatrick J Cherry
times.
2012-07-02Clear cleared_at time if raised_at time is set on alert reception.Patrick J Cherry
2012-05-03Notify anyone who has contributed to an alert's history since its last raise,Patrick J Cherry
either by acknowledging, or by being notified about it.
2012-04-30Non-UTF8 stuff is now stripped. Added encoding tests.Patrick J Cherry
2012-04-25Big update.Patrick J Cherry
* Max acknowledgement time is now specified in the config * Calendar interface improved. * holiday_url no longer used -- replaced by notify_when_on_holiday! * added notify_when_off_sick! * Added ability for the calendar to be queried for a list of bank holdays. * Added ability for Time to be given a list of bank holidays to check against. * PeopleLists can now be a Proc, allowing downloading of lists * Person is no longer a struct * Moved the method_missing bit into ObjectBuilder from various sub classes. * Added tests for the calendar interface * Updated tests in other bits.
2012-04-20Further tinkering involving when to Sanitize html -- now only done if thePatrick J Cherry
attribute has been changed.
2012-04-17 * The notification buffer is now used to store Alerts/AlertChangeds and timesPatrick J Cherry
to notify about, rather than notifications to be sent. * Fixed up the debug notifier a bit more. * Using the debug notifier extras more now.
2012-04-16Added time-fixation when processing "during" clauses, I think.Patrick J Cherry
2012-03-23Updated Alert to only search for one matching alert group instead of all.Patrick J Cherry
2012-03-22Update to alert to clear cached IPs for the alert subject when it changes.Patrick J Cherry
2012-03-22Rejigged caching of alert_group, and the way source lists are searched, toPatrick J Cherry
(hopefully) cut down on DNS resolving.
2012-03-22Improved caching, I think.Patrick J Cherry
Updated changelog.
2012-03-21Possible performance improvements.Patrick J Cherry
2012-01-30Added possibility of using postgres databases.Patrick J Cherry
2011-11-03Fixed everything up to use EpochTime everywhere instead of regular Times.Patrick J Cherry
Datamapper can't handle timezones.
2011-09-16Big documentation update.Patrick J Cherry
2011-09-13Version bumbPatrick J Cherry
2011-09-12Reminders are now unconditionally cleared when an alert is cleared.Patrick J Cherry
2011-09-06Update to suppression code.Patrick J Cherry
XMPP interface fixed.
2011-08-31Fixed up alert suppression to be less jumpyPatrick J Cherry
2011-08-25Alert'destroy removes histories too,.Patrick J Cherry
2011-08-24Alert#all_unacknowledged created, reflecting reality of what all_raised was ↵Patrick J Cherry
being used for XMPP alerts now sorted sanely
2011-08-24Added XMPP interface. Fixes #1301Patrick J Cherry
Also tidied calendar a bit
2011-08-23Added events viewerPatrick J Cherry
* Fixes #1286 * Version bump
2011-08-22 * Race condition fixed (fixes #1861).Patrick J Cherry
* Reminders get sent at start of during period (fixes #1821)
2011-08-19HTML now sanitised on save.Patrick J Cherry
Added History tests Default polling interval now 5s, 0s for Timer/UDPServer Fixed note entry for alert page.
2011-08-19Added last_state_changed thing for MauveThread. Closes #1836.Patrick J Cherry
2011-08-18 * Fixed up Alert to postpone raises/clears within initial sleep period for ↵Patrick J Cherry
old alerts * Fixed up AlertChanged to do the same * Added a migration method for the new AlertHistories table * added singleton cleanup for tests * moar tests * cleaned up Alert a bit
2011-08-17* Reminder notifications now take the same path to notify as initial alertsPatrick J Cherry
* Threading tidied -- processor will not do anything unless the timer has frozen * Person#send_alert now tidied and merged with alert_changed * POP3 server only shows alerts relevant to the user * Server now defaults to using an in-memory SQLite database (good for testing) * Server initializes a blank mauve config. * Tests tidied up
2011-08-17Changed DateTime to Time everywhere. Much better.Patrick J Cherry
2011-08-10Removed MauveTime. Added more tests.Patrick J Cherry
2011-08-10Added ability to tag multiple alerts with the same history item.Patrick J Cherry
2011-07-29 * Added initial loggerPatrick J Cherry
* Acknowledgement time calculations now in JS * Updated logging to indicate where and update comes from
2011-07-22 * Rejigged configurationPatrick J Cherry
* Added --test and --verbose flags for the server config * Started proper test suite * Config parsing now gives more sensible errors + backtrace * Rejigged people and source lists
2011-07-19Do not clear update_typePatrick J Cherry
2011-07-14 * Improved logging.Patrick J Cherry
* Updated message suppression
2011-07-14Fixed mauveclient to obey time multipliersPatrick J Cherry
Fixed logrotate script to rotate the correct script Init script now uses the correct user lib/mauve/history.rb is now installed Further logging cleanups
2011-07-13Further tweaks.Patrick J Cherry
2011-07-13 Big commitPatrick J Cherry
* Added manpages for all binaries * Added log-reopening for mauvealert-server, and logrotate snippet * mauveserver now adds a user on install, and runs as that user * Big logging tidy-up * Alert subjects are only overwritten by the source, when the subject in the databse is empty * Removed various attr_writer methods that were being redifined * Added a notes box to the acknowledge form, but this doesn't work yet
2011-07-08Added first basic history functionality, and rejigged when notify is called forPatrick J Cherry
an alert.
2011-07-04Fixed up some templates.Patrick J Cherry
2011-06-18 * Don't send acknowledged notifications unless the alert is raisedPatrick J Cherry
* Unacknowledge a cleared alert or a newly raised one * Fixed interface unexpected nil errors.
2011-06-17 * Bytemark auth fixed.Patrick J Cherry
* Some hot fixes.