Pēteris Caune
7bef951484
Fix oncalendar schedule display in admin
2023-12-12 12:51:13 +02:00
Pēteris Caune
52ec0bf4f1
Add a testcase for oncalendar syntax in hc.api.tests.check_test_model
2023-12-07 15:52:32 +02:00
Pēteris Caune
54b8092be9
Fix mypy warnings
2023-12-07 14:44:31 +02:00
Pēteris Caune
fc56cf2635
Add API support for OnCalendar schedules
2023-12-07 14:03:35 +02:00
Pēteris Caune
d65f41d192
Add support for systemd's OnCalendar schedules
...
(work-in-progress)
cc: #919
2023-12-06 15:42:57 +02:00
Pēteris Caune
0f62a8cd14
Update the Signal integration to disable channel on UNREGISTERED_FAILURE
2023-11-28 13:57:27 +02:00
Pēteris Caune
9c8bb54f7f
Update Twilio integrations to not retry error 21211
2023-11-23 16:18:05 +02:00
Pēteris Caune
ccc7e103ba
Fix capitalization
2023-11-23 15:43:31 +02:00
Pēteris Caune
fa25453734
Add migration for the Group integration
2023-11-22 10:16:27 +02:00
Pēteris Caune
788d3fa661
Add extra logging for unexpected Twilio API responses
2023-11-14 14:56:21 +02:00
Pēteris Caune
e308aa473f
Update Slack transport to not log HTTP 400 "invalid_token" events
...
(But still log other HTTP 400 responses)
2023-11-14 10:10:30 +02:00
Pēteris Caune
64b97b2e06
Add error filter in Notification admin
2023-11-14 09:54:33 +02:00
Pēteris Caune
6964d67dd7
Fix Pushover to not inspect HTTP 500 response bodies
2023-11-13 11:40:38 +02:00
Pēteris Caune
1b942a8e77
Update the Pushover integration to not retry on invalid user errors
2023-11-13 11:27:01 +02:00
Pēteris Caune
4a3a6f2b03
Improve Pushover notifications (include tags, period, last ping type)
2023-11-13 10:29:03 +02:00
Pēteris Caune
71f1a8d9a8
Update Slack integration to not retry when it hits 400 "invalid_token"
2023-11-09 12:52:25 +02:00
Pēteris Caune
97ec5c6ee0
Update the Splunk On-Call integration to not retry HTTP 404 responses
2023-11-02 13:32:09 +02:00
Pēteris Caune
9d9875e3ed
Add "By last error" filter and "Disable" action in Channel admin
2023-11-02 10:08:22 +02:00
Pēteris Caune
8ff30a1536
Add logging for Slack HTTP 400 responses
2023-11-01 12:27:15 +02:00
Pēteris Caune
f73e4520fd
Update tests to check if logger.warning() gets called
2023-11-01 12:14:30 +02:00
Pēteris Caune
f8a9077c76
Fix DST handling in Check.get_grace_start()
2023-10-30 11:53:52 +02:00
Pēteris Caune
a7b8799e36
Fix Signal transport to handle JSON-RPC messages with no ids
2023-10-27 21:30:26 +03:00
Pēteris Caune
cf40553033
Update Signal transport to log unexpected responses
2023-10-27 17:41:09 +03:00
Pēteris Caune
fe67db5726
Fix the "Update Check" API call to handle concurrent deletes
2023-10-27 14:21:10 +03:00
Pēteris Caune
f962e869ba
Fix a race condition in concurrent "Delete Check" API calls
2023-10-27 13:36:47 +03:00
Pēteris Caune
1eb92c9fe7
Switch to using Pydantic for parsing Gotify configuration
2023-10-26 12:01:42 +03:00
Pēteris Caune
cdac9b3128
Switch to using Pydantic for parsing Trello configuration
2023-10-26 11:57:49 +03:00
Pēteris Caune
dea66b85af
Switch to using Pydantic for parsing ntfy configuration
...
Also, fix a bug in the "Edit ntfy integration" form,
where the token was not filled in the form on page load.
2023-10-26 10:32:41 +03:00
Pēteris Caune
73ca8d2c9d
Improve type hints
2023-10-26 08:51:48 +03:00
Pēteris Caune
5afc2ea20c
Improve type hints
2023-10-26 08:35:06 +03:00
Pēteris Caune
343e55bd4f
Improve type hints
2023-10-25 18:12:12 +03:00
Pēteris Caune
4d0ec64da8
Update Signal integration to use Ping.get_kind_display()
2023-10-23 11:47:17 +03:00
Pēteris Caune
6110b10c3c
Update Telegram integration to use Ping.get_kind_display()
2023-10-23 11:43:07 +03:00
Pēteris Caune
c9540f8ddd
Update email integration to use Ping.get_kind_display()
2023-10-23 11:39:37 +03:00
Pēteris Caune
6c7f5881a7
Update ntfy integration to use Ping.get_kind_display()
2023-10-23 11:37:18 +03:00
Pēteris Caune
60630c1dee
Fix special character escaping in ntfy notifications
2023-10-23 11:22:14 +03:00
Pēteris Caune
0971051418
Refactor Webhook transport
2023-10-21 18:04:27 +03:00
Pēteris Caune
2d447d5bc8
Enable mock autospeccing in more places
2023-10-21 11:55:30 +03:00
Pēteris Caune
7c7774d18c
Replace **kwargs with explicit keyword arguments in hc.lib.curl
...
This makes the code more verbose, but at the same time
makes type hinting cleaner, and allows mock autospeccing
to catch more problems.
2023-10-21 11:21:42 +03:00
Pēteris Caune
4226ec4059
Remove unnecessary type conversion
2023-10-20 19:14:44 +03:00
Pēteris Caune
52ab8c4703
Improve type hints in hc.lib.curl and hc.api.transports
...
This results in changes in other places too:
* curl.post() does not accept `data` as positional arg,
it must now be a keyword argument
* we need asserts and if clauses in a few places to make sure
we are not passing `None` in the arguments to hc.lib.curl.request
2023-10-20 19:11:08 +03:00
Pēteris Caune
33a0f65144
Improve type hints in hc.api.decorators
2023-10-20 18:41:11 +03:00
Pēteris Caune
fdfe03158d
Fix mypy warnings
2023-10-18 16:33:15 +03:00
Pēteris Caune
1aec03dfc6
Improve type hints in management commands
2023-10-18 16:15:01 +03:00
Pēteris Caune
e8be347d1a
Improve type hints in management commands
2023-10-18 13:47:02 +03:00
Pēteris Caune
ce622da6bd
Improve type hints and remove threading support which was unused
...
sendalerts had support for sending notifications
synchronously (with the --no-threads flag) and asynchronously using
threads (the default).
It turns out there was a bug in argument handling and sendalerts
was always using the synchronous mode regardless of the
presence/absence of the "--no-threads" flag. Since noone seems to
have noticed, I removed the unused async code.
2023-10-18 13:45:23 +03:00
Pēteris Caune
3d5850d2da
Improve type hints, use pydantic for parsing Zulip configurations
2023-10-17 16:58:57 +03:00
Pēteris Caune
86eb2e43e5
Make the "notification" parameter non-optional in Transport.notify()
...
Its signature was "notification: Notification | None = None".
But callers always specify it, the default value is never used.
So I changed the signature to "notification: Notification".
2023-10-17 14:56:54 +03:00
Pēteris Caune
02888e6db9
Fix sending test notification to a group integration
2023-10-17 11:37:12 +03:00
Pēteris Caune
e537a38dd8
Temporarily remove type hints for the view_on_site method
2023-10-06 20:02:00 +03:00