aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
AgeCommit message (Collapse)Author
2015-02-23Get tests passing on ruby 1.9.3-p551Alex Young
2013-05-21Load all alert properties when updating.Patrick J Cherry
2013-05-01Allow alert to clear raised_at/cleared_at times if none specifiedPatrick J Cherry
2012-12-12Fixed up alert truncating only to work on strings. Added test case.Patrick J Cherry
2012-12-12Added field truncation + warning logs.Patrick J Cherry
2012-12-05Make sure that the datamapper query is evaluated when clearing all alerts.Patrick J Cherry
2012-12-05Make sure the update_type is always set on save.Patrick J Cherry
2012-12-05Record alert summary in the history.Patrick J Cherry
2012-12-05Added an update_type getter that returns "cleared" if the update typePatrick J Cherry
is nil.
2012-12-05Make sure the update type is always set to cleared by default.Patrick J Cherry
2012-11-30Re-set raised_at if the alert has just been unacknowledged.Patrick J Cherry
2012-11-29Raised time now set to unacknowledgment time when alerts become unacknowledgedPatrick J Cherry
2012-11-29Tidied up history entriesPatrick J Cherry
2012-11-29Changed UNACKNOWLEDGED to RE-RAISED when alerts are no longer ack'dPatrick J Cherry
2012-11-29Removed unused methodPatrick J Cherry
2012-11-29Rewrote how the decision is made to notify and how update types are set.Patrick J Cherry
2012-11-29Added alert suppression to the server code + protobuf.Patrick J Cherry
2012-11-27Don't do useless database fetches, when super/dirty_attributes can bePatrick J Cherry
used.
2012-11-27Re-jigged alert saving / history saving using transactions.Patrick J Cherry
2012-11-27Tell datamapper which is the primary key on the alert_earliest_changesPatrick J Cherry
table
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