Commit graph

3129 commits

Author SHA1 Message Date
Pēteris Caune
e23b154aa6
Edit note about data migration when enabling/disabling S3 storage 2023-05-17 09:38:30 +03:00
Pēteris Caune
1a7d177baf
Add note about data migration when enabling/disabling S3 storage 2023-05-17 09:27:56 +03:00
Pēteris Caune
c17a483be4
Add USE_GZIP_MIDDLEWARE env var which enables GZipMiddleware 2023-05-11 17:31:14 +03:00
Pēteris Caune
d92412a0df
Fix uwsgi.ini to check for .gz files only in the CACHE dir 2023-05-11 17:03:18 +03:00
dependabot[bot]
69c7f1299e
Bump django from 4.2 to 4.2.1 (#829)
Bumps [django](https://github.com/django/django) from 4.2 to 4.2.1.
- [Commits](https://github.com/django/django/compare/4.2...4.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-11 16:56:56 +03:00
Pēteris Caune
6a5d151026
Update uwsgi.ini to serve compressed static files 2023-05-11 16:50:26 +03:00
Pēteris Caune
202e39d23b
Add COMPRESSOR_STORAGE=GzipCompressorFileStorage
(to generate .gz versions of static files)
2023-05-11 16:03:29 +03:00
Pēteris Caune
4b05fc6a8c
Update the smtpd management command to use the aiosmtpd library
smtpd from the standard library is deprecated and will
be removed in Python 3.12. aiosmtpd is the recommended
replacement.
2023-05-09 17:23:18 +03:00
Pēteris Caune
c992aa0d8a
Clean up hc.front.templatetags.hc_extras.naturalize_int_match 2023-05-09 16:29:15 +03:00
Pēteris Caune
45c9f837ad
Remove debug 2023-05-09 10:36:25 +03:00
Pēteris Caune
56636e5e08
Fix sorting 2023-05-09 10:34:23 +03:00
Pēteris Caune
d0216a861c
Fix the checks list to preserve filters when changing sort order
Fixes: #828
2023-05-09 10:14:30 +03:00
Pēteris Caune
796b9540e7
Remove USE_L10N from settings (deprecated) 2023-05-04 11:13:00 +03:00
Pēteris Caune
0c45424a92
Change timezone.now import in sendalerts and sendreports 2023-05-04 11:05:52 +03:00
Pēteris Caune
0a724a44c7
Change timezone.now import in hc.lib.date and fix tests 2023-05-04 11:02:09 +03:00
Pēteris Caune
1fd343a820
Remove usages of django.utils.timezone.utc which is deprecated 2023-05-04 10:56:19 +03:00
Pēteris Caune
db8749e38f
Fix tests to use Mock.assert_called_once() and Mock.assert_not_called() 2023-05-04 10:27:56 +03:00
Pēteris Caune
1c80b32adf
Use simpler base classes in hc.lib.tests 2023-05-04 10:20:36 +03:00
Pēteris Caune
5113b96879
Fix mock.call_args usage in tests 2023-05-03 15:07:49 +03:00
Pēteris Caune
db1b75e966
Add support for specifying MessagingServiceSid in Twilio API requests 2023-05-03 13:06:08 +03:00
Pēteris Caune
4e3034978f
Fix another instance of pinging/deleting race condition 2023-05-02 14:11:56 +03:00
Pēteris Caune
2eeb0b5471
Improve code comments 2023-05-02 13:25:16 +03:00
Pēteris Caune
6375b0aac4
Fix a race condition when pinging and deleting checks at the same time 2023-05-02 13:22:16 +03:00
Pēteris Caune
5de8d6fce7
Move body truncation code into get_ping_body() 2023-04-28 18:05:02 +03:00
Nikolai T. Jensen
ca18da5d62
Add last ping body in MS Teams notifications (#817)
* Include body in msteams template if exists.

Support it like it does in https://github.com/healthchecks/healthchecks/blob/master/templates/integrations/slack_message.json
The markdown codeblock works well in teams also.

* Move body to a separate section, fix transport class, add tests

---------

Co-authored-by: Pēteris Caune <cuu508@gmail.com>
2023-04-28 17:51:39 +03:00
Pēteris Caune
c3b80b06cf
Add Profile.deletion_scheduled_deleted field and UI banner when it's set 2023-04-28 15:03:04 +03:00
Pēteris Caune
5f2b795a88
Add "Activate" and "Deactivate" actions in User admin 2023-04-28 14:26:19 +03:00
Pēteris Caune
cb6bdf0dd3
Update Signal notification template to include more data 2023-04-28 13:11:33 +03:00
Pēteris Caune
c6de5c406c
Upgrade to cronsim 2.4.1 2023-04-27 18:53:27 +03:00
Pēteris Caune
c0a5bedb0c
Tweak wording and CSS in Cron Expression Cheatsheet 2023-04-27 11:37:57 +03:00
Pēteris Caune
9ddae08437
Upgrade to cronsim 2.4 2023-04-26 18:18:31 +03:00
Pēteris Caune
9ead449d90
Add error logging in hc.lib.s3.get_object 2023-04-14 15:14:23 +03:00
Pēteris Caune
b1e9bdde76
Fix test_ping_details to avoid real S3 calls during tests 2023-04-14 15:12:12 +03:00
Pēteris Caune
dcd174f761
Add statsd metric collection in hc.lib.s3.get_object() 2023-04-14 13:23:16 +03:00
Pēteris Caune
dc58910bb5
Switch from CssAbsoluteFilter to CssRelativeFilter
cc: #822

This should fix icon font loading when serving Healthchecks
from a subdirectory.
2023-04-12 11:37:14 +03:00
Pēteris Caune
05722cbf9e
Update CHANGELOG for v2.8.1 release 2023-04-11 20:51:31 +03:00
Pēteris Caune
b9996e63c8
Fix django-compressor warning with github_actions.html
HTML files in /templates/docs/ are not Django templates,
they contain HTML content to be used verbatim in
hc.front.views.serve_doc view.

Some of these files contain "{{ ... }}" syntax. When
we run "./manage.py compress", django-compressor trips
up on this syntax because it treats them as Django templates.

The fix is to change file extension for these files
from .html to something else (I picked .html-fragment)
so django-compressor would ignore them.
2023-04-11 20:34:31 +03:00
Pēteris Caune
b1ce88d56a
Update CHANGELOG for v2.8 release 2023-04-11 08:26:15 +03:00
Pēteris Caune
9ea92c3f5e
Document sendreports 2023-04-07 13:40:33 +03:00
Pēteris Caune
6fa0d49467
Add note about uwsgi running background tasks automatically 2023-04-07 13:35:27 +03:00
Pēteris Caune
a55549894c
Add info about Dockerfile and Docker images in README 2023-04-07 13:24:35 +03:00
Pēteris Caune
7a06f01fca
Update links to Django docs 2023-04-07 12:50:09 +03:00
Pēteris Caune
80b6aa89ea
Add cron expression tester and samples in the cron cheatsheet page 2023-04-04 13:54:24 +03:00
Pēteris Caune
e722404842
Fix tests 2023-04-04 11:57:47 +03:00
Pēteris Caune
a5324ac13c
Make warnings about no backup second factor more assertive 2023-04-04 11:53:34 +03:00
Pēteris Caune
eab52ed73c
Add email fallback for Signal notifications that hit rate limit 2023-04-04 10:21:35 +03:00
Pēteris Caune
04e6d9aab5
Add DEFAULT_FROM_EMAIL in the "Sending Emails" section of README 2023-04-04 09:28:24 +03:00
Pēteris Caune
c4ebd4e6ba
Render code samples with newer Pygments 2023-04-04 09:23:06 +03:00
Pēteris Caune
beaad419f6
Add the "Email Delivery Delays" section 2023-04-04 09:20:38 +03:00
Pēteris Caune
4ebe928d39
Upgrade to Django 4.2 and psycopg2 2.9.6 2023-04-03 15:12:06 +03:00