Commit graph

3074 commits

Author SHA1 Message Date
Pēteris Caune
3fbe8d52f0
Document criteria for accepting new integrations in CONTRIBUTING 2024-07-02 10:19:48 +03:00
Pēteris Caune
8d0930c4b9
Fix unclosed sockets in statsd tests 2024-06-27 11:03:29 +03:00
Pēteris Caune
b5eced26cf
Fix migrations for Django 5.1 2024-06-27 10:20:27 +03:00
Pēteris Caune
324fa10ce7
Fix Check.lock_and_delete() to gracefully handle already deleted check 2024-06-20 15:57:53 +03:00
Viktor Szépe
9a44ef1571 Fix typos 2024-06-20 15:41:42 +03:00
Pēteris Caune
17d01ee6e2
Update changelog for release 2024-06-20 15:15:29 +03:00
Pēteris Caune
1a5ca45d09
Fix InvalidResponseError() initialization parameters 2024-06-20 15:15:14 +03:00
Pēteris Caune
9dbd961beb
Add test case for InvalidResponseError handling 2024-06-20 15:11:42 +03:00
Pēteris Caune
475bdff87d
Add handling for minio.InvalidResponseError exceptions 2024-06-18 23:50:11 +03:00
Pēteris Caune
44b163cc52
Fix JS formatting 2024-06-17 14:14:36 +03:00
NKETIAH53
0874ced368 format dates in logs to include year unless they are from current year
fixes: #1008
2024-06-17 14:07:18 +03:00
Pēteris Caune
e007f75a70
Bump package versions 2024-06-17 10:48:53 +03:00
Pēteris Caune
b2c5e91c70
Implement legacy -> canonical timezone conversion
There are three related changes:

* Removed legacy timezones from hc.lib.tz.all_timezones
* Added data migration to update existing Check.tz values
* For backwards compatibility, added code to automatically
  replace a legacy timezone with a canonical timezone when a
  legacy timezone is passed to an API call

I used the timezone mapping on
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2024-06-14 12:55:57 +03:00
Pēteris Caune
52f2b534a6
Fix API to accept Europe/Kiev but save it as Europe/Kyiv 2024-06-13 15:23:27 +03:00
Pēteris Caune
c5bd666faf
Add data migration to update timezone "Europe/Kiev" to "Europe/Kyiv" 2024-06-13 15:03:51 +03:00
Pēteris Caune
5584c2cd21
Fix copy/pasting error 2024-06-12 09:46:58 +03:00
Pēteris Caune
3b081c3c83
Rearrange docs navigation 2024-06-11 21:38:15 +03:00
Pēteris Caune
037499f33a
Add Docs / Pinging / Network Routers 2024-06-11 21:00:34 +03:00
Pēteris Caune
24e5e83bbc
Update Ping Details dialog to also show formatted datetimes
Fixes: #975
2024-05-29 15:43:06 +03:00
Pēteris Caune
7ef18cd706
Fix type warning and upgrade django-stubs-ext 2024-05-27 15:59:18 +03:00
Pēteris Caune
d56105e670
Update Slack integration to use channel name as the integration name
Fixes: #1003
2024-05-27 15:54:30 +03:00
Pēteris Caune
410b56baef
Fix type hints for django-stubs 5.0.1 2024-05-27 14:35:32 +03:00
Pēteris Caune
12bd59b2c1
Add system hostname logging in hc.logs.Handler 2024-05-24 13:58:18 +03:00
Pēteris Caune
0f8b6ca4c6
Re-enable strict type checking 2024-05-21 14:22:56 +03:00
dependabot[bot]
4d6884e20f
Bump aiosmtpd from 1.4.5 to 1.4.6 (#1002)
Bumps [aiosmtpd](https://github.com/aio-libs/aiosmtpd) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/aio-libs/aiosmtpd/releases)
- [Changelog](https://github.com/aio-libs/aiosmtpd/blob/master/release.py)
- [Commits](https://github.com/aio-libs/aiosmtpd/compare/v1.4.5...v1.4.6)

---
updated-dependencies:
- dependency-name: aiosmtpd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 14:18:28 +03:00
Pēteris Caune
26a57343b1
Add a data migration to fill null api_notification.code values
Using model's default didn't quite work, as Django tried to use
the same UUID for all rows.
2024-05-17 10:43:46 +03:00
Pēteris Caune
d486d2db14
Add uniqueness constraint to api_notification.code
This is primarily to make notification lookups by code efficient.
We look up notifications by code in hc.api.views.boundces.

This field has a default value (uuid.uuid4), so any null values
will be filled with random UUIDs during migration.
2024-05-17 10:30:01 +03:00
Pēteris Caune
a8bd589c87
Move the Ansible collection under API Wrappers 2024-05-10 17:14:02 +03:00
Pēteris Caune
5202938b9c
Update log entry template to show body before UA 2024-05-10 16:09:13 +03:00
Pēteris Caune
582e7dcfb1
Add andrewthetechie/py-healthchecks.io in the 3rd party resources page 2024-05-10 11:23:06 +03:00
Pēteris Caune
1bdfbac775
Fix Sign In page to hide "Email Link" option if SMTP is not configured
Fixes: #922
2024-05-10 11:04:21 +03:00
Pēteris Caune
da90d33d38
Fix a bug in the log page that caused log events to sometimes load twice 2024-05-10 10:27:40 +03:00
Pēteris Caune
46c70a69ca
Disable strict type checking until we've sorted types-pycurl failure 2024-05-01 11:59:41 +03:00
Pēteris Caune
448226ab08
Pin types-pycurl version 2024-05-01 11:52:19 +03:00
Pēteris Caune
f4da8fba73
Update mypy action to install pygments types stubs 2024-05-01 11:44:07 +03:00
Pēteris Caune
de4c582d68
Enable strict type checking
(yay!!!)
2024-05-01 11:40:34 +03:00
Pēteris Caune
66d482c4af
Disable a type warning related to statsd having no type hints yet
python-statsd does have a PR for adding type hints, so
hopefully this is temporary.
2024-05-01 11:39:20 +03:00
Pēteris Caune
c940239757
Improve type hints in the pygmentize management command 2024-05-01 11:34:39 +03:00
Pēteris Caune
99d74d2c2c
Add type hint for view_on_site in channel admin 2024-05-01 11:18:31 +03:00
Pēteris Caune
5b905c1cbc
Bump django-stubs-ext to 5.0.0 2024-05-01 11:11:54 +03:00
Pēteris Caune
42b5e3168a
Fix inconsistent capitalization 2024-04-26 10:33:48 +03:00
Pēteris Caune
1ef7ef96b7
Update email notifications to include the timestamps of status flips 2024-04-26 10:24:45 +03:00
Pēteris Caune
4ec7a48082
Update the Discord integration to disable channel on HTTP 404 responses 2024-04-26 09:25:42 +03:00
Pēteris Caune
872e4d743e
Increase the timeout for sending Signal messages to 20 seconds
We're sometimes overshooting the 15 seconds, so let's try increasing
the limit a little.
2024-04-25 14:52:15 +03:00
Pēteris Caune
6fb46aee32
Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
Pēteris Caune
011fa98154
Improve PING_EMAIL_DOMAIN docs some more :-) 2024-04-22 15:34:44 +03:00
Pēteris Caune
8835d49798
Update CSS to highlight h2:target in "Server Configuration" page 2024-04-22 15:17:22 +03:00
Pēteris Caune
64f27edff4
Tweak PING_EMAIL_DOMAIN docs 2024-04-22 15:15:02 +03:00
Pēteris Caune
8391045b06
Add a link to /docker/README.md in PING_EMAIL_DOMAIN docs 2024-04-22 14:58:56 +03:00
Pēteris Caune
77f12085bf
Add a note about SMTPD_PORT in README 2024-04-22 14:55:15 +03:00