Pēteris Caune
c8897b7026
Improve the handling of StopIteration exceptions
...
Instead of returning a datetime in far future,
get_grace_start() now returns None which (meaning "never").
2023-12-19 14:05:10 +02:00
Pēteris Caune
1d6e7297be
Fix get_grace_start to handle StopIteration exceptions
...
These can happen with "one-shot" OnCalendar schedules,
for example: "2023-12-19 11:30"
2023-12-19 13:29:52 +02:00
Pēteris Caune
ce1d7bd4cb
Add a test for #930
2023-12-18 15:58:04 +02:00
Marlene Koh
2b318cab84
Fix crash when email host not configured ( #930 )
...
* Log exception when email host not configured instead of raising assertion error
* Fix tests
* Reset to master
* Check email host before sending email for project invites
2023-12-18 15:53:35 +02:00
Pēteris Caune
39a21861ba
Improve type hints
2023-12-15 14:31:30 +02:00
Pēteris Caune
65b9dd371f
Add system check to validate settings.SITE_ROOT
...
Fixes : #895
2023-12-15 11:04:21 +02:00
Pēteris Caune
9b27600cbe
Fix oncalendar_preview to require a logged in user
2023-12-13 12:55:12 +02:00
Pēteris Caune
7bef951484
Fix oncalendar schedule display in admin
2023-12-12 12:51:13 +02:00
Pēteris Caune
0abfe58cef
Implement OnCalendar schedules in the "Add Check" dialog
2023-12-08 12:02:01 +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
980520e3b2
Fix the validation of multi-line OnCalendar expressions
2023-12-06 16:50:59 +02:00
Pēteris Caune
fa7e37360f
Tweak the number of iterations in oncalendar preview
2023-12-06 16:34:48 +02:00
Pēteris Caune
e9882879ed
Reduce repetition in test_cron_preview
2023-12-06 16:07:20 +02:00
Pēteris Caune
c1a3ae6f48
Rename CronExpressionValidator -> CronValidator
2023-12-06 16:05:50 +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
18e1a3d9e4
Update Pushover onboarding code to generate lowercase state values
...
Since recently, Pushover seems to return them converted
to lowercase, this is a workaround for that.
2023-11-27 14:52:19 +02:00
Pēteris Caune
b9df18728a
Improve error logging in hc.lib.s3._remove_objects
2023-11-24 10:11:31 +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
1b1899052c
Make payments_subscription.user_id not nullable
2023-11-22 10:17:01 +02:00
Pēteris Caune
fa25453734
Add migration for the Group integration
2023-11-22 10:16:27 +02:00
Pēteris Caune
96823a7f90
Add logging for failed webauthn key registrations
2023-11-17 16:06:39 +02:00
Pēteris Caune
2a2c7d66ec
Fix mypy warning
2023-11-15 10:22:22 +02:00
Pēteris Caune
cff4138774
Fix webauthn registration failure on Firefox with Bitwarden extension
2023-11-15 10:13:40 +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
49d6f3fe5b
Fix "Ping Details" dialog to handle email bodies not yet uploaded to S3
2023-11-10 12:49:10 +02:00
Pēteris Caune
c3b4100f3b
Add a management command to notify admins about new log records
2023-11-09 14:00:22 +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
d7a2e24ccf
Replace "Slack integration" with "{site_name} integration for Slack"
2023-11-03 09:07:58 +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
4fa91e8336
Fix merge oops
...
Add back database fields that are present in migrations
but not in the model itself
2023-11-01 09:38:50 +02:00
Pēteris Caune
c18d2ea1dd
Update logging configuration to write logs to database
2023-11-01 09:34:45 +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
ec9649a6a6
Fix logging calls to avoid string formatting in client code
2023-10-27 10:33:55 +03:00
Pēteris Caune
1eb92c9fe7
Switch to using Pydantic for parsing Gotify configuration
2023-10-26 12:01:42 +03:00