Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Hide Events (aka Soft Deletes)

Compare
Choose a tag to compare
@RyanFrantz RyanFrantz released this 07 Aug 01:45
· 48 commits to master since this release

Hide Events

In v0.2 one can hide events in the on-call report. This is useful in cases where the on-call provider returns duplicate events or multiple events fired for a single alert due to an unforeseen issue (think Nagios messages being queued by an MTA) as in the example below:

opsweekly_dupe_dee_dupe

Hiding and Toggling Events

To hide an event in the on-call report, click the Hide Event? checkbox and save the report. If you later determine that the event should be visible, go back to the on-call report and click the Toggle Hidden Events button to display hidden events. Uncheck the desired event and save the on-call report again!

opsweekly_hide_event_checkbox_and_toggle

Enabling Hidden Events

For preexisting Opsweekly installations, one simply needs to execute the alter_oncall_weekly.sql script to add support for hidden events.

For new installations, opsweekly.sql has been extended to provide that support.

Disabling Event Versioning

By default, Opsweekly INSERTs a new record for each event every time the user saves the on-call report. This isn't necessary, in general, and will probably break hidden event support. Available in this release is the ability to disable event versioning by defining event_versioning = 'off' in phplib/config.php. When event versioning is disabled, Opsweekly will perform UPDATE operations on existing events instead.

See phplib/config.php.example for a working example.

It is strongly recommended that one disables event versioning. Event versioning is likely to be deprecated in a future release.