Commit graph

2004 commits

Author SHA1 Message Date
Pēteris Caune
5cdc104a16
Update serve_doc and its tests to use pathlib 2023-06-07 17:04:03 +03:00
Pēteris Caune
c184f5ca42
Fix populate_searchdb to use ".html-fragment" file suffix
(and update it to use pathlib)
2023-06-07 16:43:12 +03:00
Pēteris Caune
4a72519c71
Update settings.BASE_DIR usage sites to use pathlib 2023-06-07 16:36:19 +03:00
Pēteris Caune
b9d016b799
Update settings.py to use pathlib 2023-06-07 16:16:18 +03:00
Max
19d05498ae
Fix smtpd service without stdin (#840)
Fixes: #839
2023-06-05 23:23:37 +03:00
Pēteris Caune
4bd305f4fe
Fix docs to display the ping body limit defined in settings 2023-06-04 19:32:11 +03:00
Pēteris Caune
c743b7a76e
Move "fix_asterisks" from template tags to transports.py 2023-06-04 15:01:18 +03:00
Pēteris Caune
628d2ca637
Add escaping for asterisks in MS Teams messages 2023-06-04 14:56:28 +03:00
Pēteris Caune
4afb1cfe23
Move MS Teams message preparation from template to Python
Also, remove Markdown escaping for the description field.
This is for consistency with Slack, Mattermost, Discord, and
Rocket.Chat -- none of them attempt to escape Markdown syntax.
2023-06-04 14:39:22 +03:00
Pēteris Caune
bc0b76cfaf
Remove duplicate code 2023-06-04 11:25:00 +03:00
Pēteris Caune
564d5cda31
Move Discord message preparation from template to Python 2023-06-04 11:16:48 +03:00
Pēteris Caune
5f710b4949
Move Mattermost message preparation from template to Python 2023-06-04 11:03:56 +03:00
Pēteris Caune
3e8a89bb7a
Move Slack message preparation from template to Python 2023-06-04 09:44:15 +03:00
Pēteris Caune
1d003da29d
Fix the display of ignored pings with non-zero exitstatus 2023-06-03 19:37:45 +03:00
Pēteris Caune
dd1569457e
Remove MD escaping because it is inconsistent between web and mobile 2023-06-03 19:02:45 +03:00
Pēteris Caune
91e5a8430b
Add Markdown escaping in Rocket.Chat messages 2023-06-03 18:56:55 +03:00
Pēteris Caune
81a3e3352b
Fix singular/plural in the "Last Ping Body" field 2023-06-03 18:32:02 +03:00
Pēteris Caune
0ecbe1bd1d
Move Rocket.Chat message preparation from template to Python
cc: #463
2023-06-03 18:15:29 +03:00
Pēteris Caune
0f8c459987
Improve Rocket.Chat notification template
* Move the text field outside of the attachment object
* Rename "username" to "alias"
* Rename "icon_url" to "avatar"
* Remove unused, Slack-specific fields
* Add "Last Ping Body" field with a link to view full body

cc: #463
2023-06-03 09:58:34 +03:00
Pēteris Caune
eb7dfe5c63
Add Rocket.Chat integration
cc: #463
2023-05-30 12:30:29 +03:00
Pēteris Caune
e02a87ef48
Fix Message-ID generation when From address contains angle brackets 2023-05-26 16:51:52 +03:00
Pēteris Caune
dc44f67b83
Update hc.lib.emails to use DEFAULT_FROM_EMAIL for generating Message-ID 2023-05-26 14:32:09 +03:00
Pēteris Caune
0fa9222264
Switch to case-insensitive bounce id signatures 2023-05-24 18:13:36 +03:00
Pēteris Caune
efc5bc0168
Improve the email delivery error message 2023-05-24 14:56:48 +03:00
Pēteris Caune
bb361dec7b
Add a view for handling email bounce notifications 2023-05-24 13:00:02 +03:00
Pēteris Caune
8926fd5ac6
Add experimental support for setting custom MAIL FROM address
If settings.EMAIL_MAIL_FROM_TMPL is set, it will be used
as the MAIL FROM (envelope sender) address.

The EMAIL_MAIL_FROM_TMPL value should contain a "%s" placeholder.

This is intended for routing email bounce notifications to a specific
MX server. For example, if the site runs on example.com
but we want to receive bounce notifications at the mail server running
on bounces.example.com, we can set

    EMAIL_MAIL_FROM_TMPL = "%s@bounces.example.com"

Experimental, may change!
2023-05-23 15:38:39 +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
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
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
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