Commit graph

276 commits

Author SHA1 Message Date
Pēteris Caune
e76329a364
Admin tweaks 2018-12-24 19:50:09 +02:00
Pēteris Caune
eee6fc12f4
Overwrite Check.last_start value 2018-12-21 14:02:25 +02:00
Pēteris Caune
fe04429fad
Don't update last_ping_was_fail, it is not read anywhere anymore. 2018-12-21 13:17:00 +02:00
Pēteris Caune
cc40793fc7
Clear Check.alert_after when pausing a check. 2018-12-21 11:31:00 +02:00
Pēteris Caune
2f4b373e12
More test cases. Check.is_down() is redundant, removing. 2018-12-21 11:25:49 +02:00
Pēteris Caune
93405cc286
Tag labels in "My Checks" page and SVG badges should ignore the "started" state. 2018-12-20 19:19:46 +02:00
Pēteris Caune
5f9ebb178c
Rename "Check.get_alert_after" to a now more fitting "Check.going_down_after" 2018-12-19 21:57:48 +02:00
Pēteris Caune
0b6c317956
Fix Check.is_down(), add tests. 2018-12-19 18:27:58 +02:00
Pēteris Caune
481848a749
Add "/ping/<code>/start" API endpoint 2018-12-18 22:57:12 +02:00
Pēteris Caune
cf08f54c30
Use timezone-aware datetimes with croniter, avoid conversions to and from naive datetimes. This avoids ambiguities around DST transitions and properly solves #196 2018-12-14 12:24:12 +02:00
Pēteris Caune
11f65ff7aa
Optimize db query in sendalerts 2018-12-12 19:04:37 +02:00
Pēteris Caune
828bc52f80
Admin tweaks 2018-12-12 18:16:28 +02:00
Pēteris Caune
58a34ae061
Admin tweaks 2018-12-12 18:12:04 +02:00
Pēteris Caune
5be6c403a4
Flip model, for tracking status changes of the Check objects. 2018-12-10 17:51:42 +02:00
Pēteris Caune
440a143dd6
Add CORS support to API endpoints. Fixes #208 2018-12-06 17:36:20 +02:00
Pēteris Caune
b9a24a21e7
Remove the Zendesk integration (unfinished, could not get it to work acceptably) 2018-11-30 22:07:37 +02:00
Pēteris Caune
fb45b67892
Set Pushover alert priorities for "down" and "up" events separately. Fixes #204 2018-11-28 21:40:46 +02:00
Pēteris Caune
a7061fe6a5
Add "Get a List of Existing Integrations" API call 2018-11-21 20:21:04 +02:00
Pēteris Caune
21de50d84e
Add Channel.name field, users can now name integrations. 2018-11-20 23:31:15 +02:00
Pēteris Caune
66bc5cd7c2
Validate channel identifiers as UUIDs 2018-11-10 11:42:31 +02:00
Pēteris Caune
5f59d97d21
Fix tests. 2018-11-08 12:27:24 +02:00
Pēteris Caune
8889cfe993
Add "channels" attribute to the Check API resource 2018-11-08 12:13:18 +02:00
Pēteris Caune
16d78db72e
Refactoring and a testcase for channels=None 2018-11-08 11:59:04 +02:00
Pēteris Caune
e866d63ca4
Split into smaller separate testcases. 2018-11-08 11:38:55 +02:00
Andrew DeMaria
824729707e Allow specific channel uuid to be specified in create/update check api 2018-11-07 15:17:20 -07:00
Pēteris Caune
432e592e44
Add read-only API key support 2018-10-29 21:44:34 +02:00
Pēteris Caune
182f9e1109
Refactor API key checking code 2018-10-29 18:34:58 +02:00
Pēteris Caune
df86fd29b3
During DST transition, handle ambiguous dates as pre-transition. Fixes #196 2018-10-23 12:35:07 +03:00
Pēteris Caune
b4e53431cd
Obsolete – we don't create anonymous checks any more. 2018-10-23 12:32:31 +03:00
Pēteris Caune
b9a81ad382
Add "List-Unsubscribe" header to alert and report emails 2018-10-23 11:26:13 +03:00
Pēteris Caune
288a57a4b1
Better name & description for Trello cards. 2018-10-20 19:09:40 +03:00
Pēteris Caune
e4d0103544
Trello integration WIP 2018-10-18 12:20:33 +03:00
Pēteris Caune
78aca869c5
"Details..." instead of "Show Log..." in emails. 2018-08-20 19:30:36 +03:00
Pēteris Caune
7046e2410c
Checks have a "Description" field. Fixes #182 2018-08-20 18:16:00 +03:00
Pēteris Caune
d661839e32
Don't serialize POST payload to JSON, Django's TestClient will do that for us. 2018-08-04 19:07:40 +03:00
Dan Faulknor
8265ac5a97
Fix for Python 3.6 2018-06-29 00:26:39 +12:00
Pēteris Caune
5cf6f1b51e
Merge Check.get_status() and Check.in_grace_period() into one.
This avoids duplicate calls to Check.get_grace_start() in several places.
2018-06-11 19:05:18 +03:00
Pēteris Caune
67363abe4f
Use icon font for channel icons. 2018-06-11 15:54:24 +03:00
Pēteris Caune
422de02ca9
oops 2018-06-11 11:30:05 +03:00
Pēteris Caune
83a2ff17e6
Toggle integrations on/off on "My Checks" page. 2018-06-10 23:19:25 +03:00
Pēteris Caune
dfcf7aafbe
Check.in_grace_period() looks at last_ping_was_fail flag. 2018-05-31 11:55:29 +03:00
Pēteris Caune
cdf39a88eb
Cleanup. 2018-05-17 19:43:39 +03:00
Pēteris Caune
3fc84ca0ff
Foundation for "fail" pings (cc: #151) 2018-05-17 19:41:13 +03:00
Pēteris Caune
fbe77c9e0a Silence output from management commands when running tests. 2018-04-30 20:02:36 +03:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support 2018-04-24 22:38:02 +03:00
Pēteris Caune
9bc0f1b82a
Dropping Python 2 support 2018-04-24 21:04:33 +03:00
Pēteris Caune
b191b968f3
sendreports, sendalerts: and avoid db access while rendering templates--template renderer swallows any exceptions
sendreports: use select_related() to avoid doing N queries
2018-03-23 11:34:17 +02:00
Pēteris Caune
218d0c6873 Remove Check.last_ping_body field. CSS tweaks for the "Ping Details" modal. 2018-03-18 15:54:57 +02:00
Pēteris Caune
282412f4ba Allow body to be null for easier db migration. 2018-03-18 15:10:08 +02:00
Pēteris Caune
02f6853d4c Save request body for every ping, not just the last one. 2018-03-18 14:55:41 +02:00