Commit graph

3233 commits

Author SHA1 Message Date
Pēteris Caune
79382ca82e
Fix systemd expression in a testcase to work after 2024-02-01 2024-02-02 13:00:29 +02:00
Pēteris Caune
7ba2374616
Add API docs for /api/v3/status/
Fixes #949
2024-01-29 11:31:05 +02:00
Pēteris Caune
08eb279574
Bump pydantic version from 2.5.2 to 2.5.3 2024-01-23 19:26:07 +02:00
Pēteris Caune
7cb47188b9
Remove redundant cast 2024-01-22 16:09:20 +02:00
Pēteris Caune
16450a66c7
Add tooltips to tag buttons in the checks list screen
Fixes: #911
2024-01-22 15:20:09 +02:00
Pēteris Caune
42f88f4fb0
Add S3_SECURE setting
It controls whether to use secure (TLS) connection to S3 or not.
2024-01-10 12:19:45 +02:00
Pēteris Caune
ae94648efd
Fix minio-related mypy warnings
A few warnings remain, I think these should be fixed in minio-py:

https://github.com/minio/minio-py/pull/1389
2024-01-04 16:01:34 +02:00
Pēteris Caune
40742bba1d
Bump Django from 5.0 to 5.0.1 2024-01-04 15:29:05 +02:00
Pēteris Caune
492d031341
Update Third-Party Resources page
* remove projects that have not been updated in years
* add hc-monitor and danidelvalle/healthchecks-decorator
2024-01-04 15:15:51 +02:00
Pēteris Caune
9562e48329
Improve PING_ENDPOINT docs
Fixes: #933
2023-12-22 14:06:38 +02:00
Pēteris Caune
1284ee27a6
Fix the case where PING_BODY_LIMIT is None
cc: #931
2023-12-22 12:29:32 +02:00
Pēteris Caune
54ffe39143
Fix the handling of ping bodies > 2.5MB
Django has a DATA_UPLOAD_MAX_MEMORY_SIZE which controls the maximum
allowed request body size, and is 2.5MB by default.

We now bump up DATA_UPLOAD_MAX_MEMORY_SIZE to be no lower
than PING_BODY_LIMIT.

Fixes: #931
2023-12-22 12:05:16 +02:00
Pēteris Caune
7c5e3130fb
Hardcode a higher S3 operation timeout, add sorting by Check.code 2023-12-21 16:12:22 +02:00
Pēteris Caune
767c3ae702
Add a management command for pruning all checks 2023-12-21 14:55:05 +02:00
Pēteris Caune
b0f8c730f5
Change query in Check.prune() to work around pg index selection issue
In prune(), we need to look up the earliest ping in the database
for a given check. The old version did:

    ping = self.ping_set.earliest("id")

The new version does:

    ping = self.ping_set.earliest("created")

Both yield the same result, but in the first case Postgres may
decide to use the index for the api_ping.id column and scan
almost the entire table.

In the second case it uses the index for the api_ping.owner_id column,
and scans just the rows associated with the check.
2023-12-21 12:00:05 +02:00
Pēteris Caune
f0f2a9aed8
Add a system check which warns about missing SMTP credentials 2023-12-19 14:47:12 +02:00
Pēteris Caune
2a0b8f4e6f
Simplify datetime object initializations in tests 2023-12-19 14:20:04 +02:00
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
cb1b216125
Increase uWSGI buffer size to allow requests with large cookies
Fixes: #925
2023-12-15 13:43:27 +02:00
Pēteris Caune
1026c0a1f2
Update Dockerfile to use Python 3.12 2023-12-15 11:15:42 +02:00
Pēteris Caune
3b8d473980
Add --skip-checks to "manage.py smtpd" to avoid multiple check runs 2023-12-15 11:15:31 +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
6172a0bbaa
Update Spike.sh instructions 2023-12-14 12:20:36 +02:00
Pēteris Caune
be004c3e0d
Update Opsgenie instructions 2023-12-14 11:41:23 +02:00
Pēteris Caune
24a741f630
Update CHANGELOG for v3.1 release 2023-12-13 14:45:02 +02:00
Pēteris Caune
86e3a38239
Fix capitalization 2023-12-13 14:44:32 +02:00
Pēteris Caune
734d146283
Add "Auto provisioning" page under Docs > Guides 2023-12-13 14:26:28 +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
bd86109cd1
Update screenshots 2023-12-13 10:55:44 +02:00
Pēteris Caune
5cc5acdec0
Update screenshots 2023-12-13 10:40:50 +02:00
Pēteris Caune
5d07645823
Update the "Configuring Checks" docs page with OnCalendar schedules 2023-12-12 13:39:00 +02:00
Pēteris Caune
bb76bf42ac
Fix cron and oncalendar preview when timezone changes 2023-12-12 13:33:51 +02:00
Pēteris Caune
7bef951484
Fix oncalendar schedule display in admin 2023-12-12 12:51:13 +02:00
Pēteris Caune
d8888c033f
Upgrade to oncalendar 1.0 2023-12-11 14:59:31 +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
f33c296349
Fix checks list view to display oncalendar schedules 2023-12-07 16:07:45 +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
cadea5ab88
Add maxlength attributes 2023-12-07 15:46:46 +02:00
Pēteris Caune
b82274d827
Clean up JS for the "Update Timeout" modal
+ fix a bug where the preview doesn't update after closing
and re-opening the dialog.
2023-12-07 15:41:04 +02:00
Pēteris Caune
7ad01c4692
Fix labels and add a link to OnCalendar reference 2023-12-07 15:40:14 +02:00
Pēteris Caune
6a2fbba40a
Tweak paddings and margins in the "Update Timeout" modal 2023-12-07 15:39:47 +02:00
Pēteris Caune
964ec7a1d4
Update the API docs regarding OnCalendar schedules 2023-12-07 15:03:50 +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