Pēteris Caune
34530e0e91
Add Profile.over_limit_date DB field
2023-06-16 16:28:03 +03:00
Pēteris Caune
928f82e220
Add "Your account is currently over its check limit" notice
2023-06-16 15:00:33 +03:00
Pēteris Caune
3202eebbcf
Fix ping_by_slug to assign all channels to a newly created check
2023-06-15 15:53:33 +03:00
Pēteris Caune
fc09d4c084
Implement check auto-provisioning when pinging by slug
...
cc: #626
2023-06-15 15:36:16 +03:00
Pēteris Caune
45cccdecb0
Reduce code repetition
2023-06-15 14:36:32 +03:00
Pēteris Caune
20e8408f24
Update v2->v3
2023-06-15 10:29:25 +03:00
Pēteris Caune
ebcb060ece
Update slug validation rules to disallow uppercase
2023-06-15 09:05:26 +03:00
Pēteris Caune
4ccee09f73
Add /api/v3/ (adds ability to set slug when creating or updating checks)
2023-06-14 16:52:45 +03:00
Pēteris Caune
d7d9702ee0
Add support for regex validation in hc.lib.jsonschema
...
Also, switch to f-strings and add tests for validation
positive cases
2023-06-14 16:30:27 +03:00
Pēteris Caune
002bc9b083
Decouple check's name from slug, allow users to set hand-picked slugs
2023-06-14 15:06:37 +03:00
Pēteris Caune
db9fd529e2
Make hc.lib.emails raise exceptions when EMAIL_ settings are not set
2023-06-13 13:27:58 +03:00
Pēteris Caune
475cd574ee
Improve logging in hc.lib.s3._remove_objects
2023-06-12 11:25:58 +03:00
Pēteris Caune
fcf21c68a7
Reduce code repetition in Channel.transport()
2023-06-08 15:46:06 +03:00
Pēteris Caune
dec5d51e87
Configure logging to log exceptions to console even when DEBUG=False
...
Fixes : #835
2023-06-08 10:51:49 +03:00
Pēteris Caune
518dee4ae2
Update the login_webauthn view to return HTTP 404 when RP_ID is not set
2023-06-08 10:49:57 +03:00
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