Commit graph

3239 commits

Author SHA1 Message Date
Pēteris Caune
47894f6add
Rearrange the log page to make room for more filters
* Switch from nouislider to simpler <input type="range">
* Move it to a sidebar

Also, fix a bug in _get_events where the "start" local variable
got clobbered, and made the date range for the Notification
query wrong.
2024-03-19 18:47:13 +02:00
Pēteris Caune
22325565b5
Remove unused import 2024-03-18 13:02:46 +02:00
Pēteris Caune
3615d26aea
Remove debug statement 2024-03-18 12:56:18 +02:00
Pēteris Caune
274a59956a
Make statsd metrics collection optional
To enable, set STATSD_HOST env var (or set STATSD_HOST in
local_settings.py):

STATSD_HOST=localhost:1234

cc: #974
2024-03-18 12:55:36 +02:00
Pēteris Caune
33e58fa014
Change the signup flow to accept registered users
(and sign them in instead)
2024-03-15 17:30:06 +02:00
Pēteris Caune
e6a974ac1f
Remove CodeQL workflow (will use GitHub's default setup instead) 2024-03-15 13:04:47 +02:00
Pēteris Caune
49b496fc3f
Add a decimal place in the reported uptime percentage
(for example, instead of "uptime: 99.9%" report "uptime: 99.93%)
2024-03-14 10:25:53 +02:00
Pēteris Caune
49abf7b12d
Upgrade python-fido2 to 1.1.3 2024-03-14 09:17:29 +02:00
Pēteris Caune
a0545b875e
Add "Last ping subject" field in email notifications 2024-03-13 15:45:27 +02:00
Pēteris Caune
e57e3185ad
Fix typo 2024-03-12 18:30:40 +02:00
Pēteris Caune
30b30d6af5
Add id attributes for addressing 2024-03-12 18:25:21 +02:00
Pēteris Caune
4485c8bd6e
Improve docs about check and project transfers 2024-03-12 17:54:24 +02:00
Pēteris Caune
035989db3a
Downgrade pycurl to 7.45.2
pycurl 7.45.3 returns error code 77 (CURLE_SSL_CACERT_BADFILE)
for TLS connections on Debian-based systems:

https://github.com/pycurl/pycurl/issues/834
2024-03-12 11:37:56 +02:00
Pēteris Caune
0a7744c389
Bump package versions 2024-03-05 18:54:11 +02:00
Pēteris Caune
638d11c969
Improve type hints 2024-03-05 17:18:55 +02:00
Pēteris Caune
5715ac9f24
Simplify Signal response parsing 2024-03-04 12:31:18 +02:00
Pēteris Caune
5c82b2e9ac
Add handling for Signal messages with null recipient number
If the recipient has set up an username, the responses
from Signal will return "number": null.

Example scenario:

* Alice sets up a Signal integration
* Alice sets up an username for their Signal account
* Alice deletes their Signal account
* Healthchecks sends a message to Alice's Signal account
* Signal responds with UNREGISTERED_FAILURE, but the
  number field in the response is null

The fix is to:

* Allow null in the "number" field as a valid value
* Ignore the value of the "number" field when reading Signal responses
2024-03-04 12:26:56 +02:00
Pēteris Caune
d7b683e9d1
Update more notification templates to handle Check.last_ping == None 2024-03-01 16:25:05 +02:00
Pēteris Caune
4d2a3227f3
Update more notification templates to handle Check.last_ping == None 2024-03-01 16:07:13 +02:00
Pēteris Caune
b0c0c1d8c3
Fix top nav in the badges page 2024-03-01 12:36:29 +02:00
Pēteris Caune
4c97068776
Update notification templates to handle Check.last_ping == None 2024-02-29 14:38:35 +02:00
Pēteris Caune
8955c1d7cd
Remove "Last ping was <time interval> ago." from WhatsApp messages
In some rare cases the last ping can be None (i.e., there was no
last ping). In these cases we would need to omit the
"Last ping was <time interval> ago." part from the message.
To avoid creating a *third* WhatsApp content template, remove
the "Last ping was <time interval> ago." part from the message
altogether.

What are the cases when last ping could be None? Here's one:

* User creates a check
* User sends a "/start" signal
* The grace time passes, the check goes down. There's no
  previous "success" or "fail" signal, so the check's
  "last_ping" field will be None.
2024-02-29 11:42:44 +02:00
Pēteris Caune
af6731a24f
Fix code to use project.check_set instead of Check.objects.filter(...)
No functional difference, just cleaner.
2024-02-28 10:01:52 +02:00
Pēteris Caune
dbc8ebb73a
Tweak the badges page 2024-02-27 13:06:31 +02:00
Pēteris Caune
1322bb1123
Add support for per-check status badges
Fixes: #853
2024-02-27 12:55:51 +02:00
Pēteris Caune
5eb21a6919
Fix HTML snippet in the Status Badges page 2024-02-26 17:47:43 +02:00
Pēteris Caune
4959856e58
Redesign the "Status Badges" page 2024-02-26 12:34:26 +02:00
Pēteris Caune
6686147cb1
Update CHANGELOG 2024-02-23 11:43:02 +02:00
Michael Boateng
9770bc1ea0
Add auto-refresh functionality to log page (#963)
Add auto-refresh functionality to log page

Fixes: #957

---------

Co-authored-by: Pēteris Caune <cuu508@gmail.com>
2024-02-23 11:36:31 +02:00
Pēteris Caune
51977e185b
Bump pydantic version to 2.6.1 2024-02-21 18:49:39 +02:00
Pēteris Caune
86930d1fba
Update MS Teams onboarding instructions 2024-02-20 12:49:40 +02:00
Pēteris Caune
f6378fc26b
Fix Gotify integration to handle Gotify server URLs with paths
Fixes: #964
2024-02-20 10:12:54 +02:00
Pēteris Caune
52a8df4dbf
Fix naturaltime usage in the WhatsApp integration
When preparing WhatsApp payload we call naturaltime() and
serialize its output as JSON. naturaltime can return a lazy object
which causes an exception during JSON serialization. The fix
is to wrap naturaltime in str() to force its output to be a string.
2024-02-17 10:05:59 +02:00
Pēteris Caune
12b5c36897
Add a system check that warns about WhatsApp misconfiguration 2024-02-16 12:58:48 +02:00
Pēteris Caune
4ef470730f
Fix tests 2024-02-16 12:45:10 +02:00
Pēteris Caune
db31cacc86
Fix syntax 2024-02-16 12:37:59 +02:00
Pēteris Caune
ec0791b4ee
Update the WhatsApp integration to use Twilio Content Templates 2024-02-16 12:37:11 +02:00
Pēteris Caune
0d5c139348
Tweak wording 2024-02-15 13:22:35 +02:00
Pēteris Caune
aefc0d36c6
Improve email docs 2024-02-15 13:17:24 +02:00
Pēteris Caune
1ec4fbc0c9
Add a note about flip retention in docs 2024-02-15 11:16:01 +02:00
Pēteris Caune
1250195e3e
Add support for $NAME_JSON and $BODY_JSON placeholders 2024-02-14 11:52:35 +02:00
Pēteris Caune
b1cd529532
Fix type annotation 2024-02-12 11:34:27 +02:00
mmomjian
3728231132
Update filtering_rules_modal.html (#956)
whoops!
2024-02-12 11:17:29 +02:00
Pēteris Caune
c99b644a22
Update CHANGELOG for v3.2 release 2024-02-09 14:09:45 +02:00
Pēteris Caune
33284bd93f
Fix MariaDB version check
Naively comparing with string "10.7" does not quite work for
versions 10.10 and 10.11 :-)
2024-02-09 14:01:48 +02:00
Pēteris Caune
d881afa3f0
Add a system check to warn about a required MariaDB UUID migration
cc: #929
2024-02-09 11:32:30 +02:00
Pēteris Caune
d37f830be9
Tweak the sizing of grace time input groups some more 2024-02-08 16:13:50 +02:00
Pēteris Caune
97442e9d2d
Tweak the sizing of grace time input groups 2024-02-08 16:10:54 +02:00
Pēteris Caune
56f8bd93e3
Update CHANGELOG 2024-02-08 15:44:27 +02:00
Michael Boateng
6bfd9c901c
Make grace time editable when job is created (#953)
Fixes: #945
2024-02-08 15:34:52 +02:00