Pēteris Caune
f3af13654e
Refactor email sending functions to allow customization
...
For example, if we need to use a custom From: address,
we can now do:
m = make_message("template-name", recipient, ctx)
m.from_email = "...." # customize here
send(m)
2021-08-05 14:13:25 +03:00
Pēteris Caune
fca600659d
Improve hc.lib.emails.send()
...
- add optional `from_email` argument
- add test cases that exercise the retry loop
2021-08-03 19:02:25 +03:00
Pēteris Caune
d243f502d3
Fix off-by-one-month error in monthly reports, downtime columns
...
Fixes : #539
2021-07-02 15:22:51 +03:00
Pēteris Caune
df44ee58c0
Add an option for weekly reports (in addition to monthly)
2021-05-24 13:44:34 +03:00
Pēteris Caune
5979204691
Fix downtime summary to handle months when the check didn't exist
...
Fixes : #472
2021-02-03 14:27:06 +02:00
Pēteris Caune
b9997137a6
Bump croniter version to 1.0.2
2021-01-27 09:46:33 +02:00
Pēteris Caune
524d1a7375
Implement badge mode (up/down vs up/late/down) selector
...
Fixes #282
2020-11-27 12:57:25 +02:00
Pēteris Caune
fb79948759
Update the "Change Email" function to use confirmation codes
2020-11-16 15:33:29 +02:00
Pēteris Caune
ed6b15bfa9
Update the "Set Password" function to use confirmation codes
2020-11-16 14:53:50 +02:00
Pēteris Caune
e3aedd3b03
Add require_sudo_mode decorator
...
Planning to use it for sensitive operations (add/remove security keys),
change email, change password, close account.
The decorator sends a six-digit confirmation code to user's email
and renders a form for entering it back. If the user enters the
correct code, the decorators sets a sudo=active marker in
user's session, valid for 30 minutes.
2020-11-13 11:08:06 +02:00
Pēteris Caune
d5502c50ca
Add retries to the the email sending logic
...
When sending email using Django's default email
backend (SMTP), and if there is a network issue, the backend
can throw SMTPServerDisconnected.
This commit adds a retry logic which retries sending the
email two times when SMTPServerDisconnected is thrown.
2020-10-30 14:18:38 +02:00
Pēteris Caune
d05691f86f
SMS and phone calls now have separate "limit reached" email templates.
2020-08-03 18:00:48 +03:00
Pēteris Caune
461ef5e088
Paused ping handling can be controlled via API. Fixes #376
2020-06-09 15:16:39 +03:00
Pēteris Caune
6ede17d93f
Cleanup and comments.
2020-04-20 11:23:07 +03:00
Pēteris Caune
57da17b8e2
Send an "Ownership Transfer Request" email notification.
2020-04-13 15:04:59 +03:00
Pēteris Caune
ccd30ac239
Stricter cron validation, reject schedules like "At midnight of February 31"
2020-02-07 11:38:50 +02:00
Pēteris Caune
cdad632082
Show sub-second durations with higher precision, 2 digits after decimal point. Fixes #321
2020-01-17 14:41:41 +02:00
Pēteris Caune
22d4d55340
Added support for Shields.io badges. cc: #304 , #305
2019-12-05 12:27:37 +02:00
Pēteris Caune
91c93b6a95
Add "Shell Commands" integration. Fixes #302
2019-11-20 16:01:03 +02:00
Pēteris Caune
8d81ea8f9d
Add "Shell Commands" integration. Fixes #302
2019-11-20 16:00:53 +02:00
Pēteris Caune
9cbd3bfc5a
In monthly reports, no downtime stats for the current month (month has just started)
2019-11-06 10:41:14 +02:00
Pēteris Caune
66a6de70c0
Send email notification when monthly SMS sending limit is reached. Fixes #292
2019-10-18 17:15:02 +03:00
Pēteris Caune
2bb769f7bb
Send monthly reports on 1st of every month, not randomly during the month
2019-10-12 20:07:09 +03:00
Pēteris Caune
b7320b1b69
In monthly report, show months in ascending order. Cleanup.
2019-07-20 10:17:00 +03:00
Pēteris Caune
b74e56a273
Experimental: show the number of outages and total downtime in monthly reports. ( #104 )
2019-07-19 17:32:39 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black
2019-05-15 14:27:50 +03:00
Pēteris Caune
945a66ab0a
Management command for sending inactive account notifications
2019-03-13 00:38:34 +02:00
Pēteris Caune
954ca4576b
Improved logic for displaying job execution times in log. Fixes #219
2019-03-01 14:39:44 +02:00
Pēteris Caune
b3e290b284
Show elapsed times in ping log
2018-12-25 13:01:49 +02:00
Pēteris Caune
887c4d534a
add "minLength" support to the jsonschema validator
2018-10-29 17:13:45 +02:00
Pēteris Caune
b9a81ad382
Add "List-Unsubscribe" header to alert and report emails
2018-10-23 11:26:13 +03:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support
2018-04-24 22:38:02 +03:00
Pēteris Caune
9bc0f1b82a
Dropping Python 2 support
2018-04-24 21:04:33 +03:00
Pēteris Caune
39bc12e351
Invoices to email.
2018-01-09 16:45:38 +02:00
Pēteris Caune
1b7d4f6f3e
Adding "Overall status" badge.
2017-11-10 21:52:27 +02:00
Pēteris Caune
2393dad09e
Users can update their email addresses. Fixes #105
2017-08-23 15:47:20 +03:00
Pēteris Caune
dec006890c
Badges can now return either SVG or JSON
2017-06-29 15:48:59 +03:00
Pēteris Caune
eece7c7551
Handle "required" keyword.
2017-05-11 12:54:58 +03:00
Pēteris Caune
0d24d650f2
"X-Bounce-Url" header in email messages. An API endpoint to handle bounce notifications. ( #112 )
2017-03-05 21:42:36 +02:00
Pēteris Caune
f767cf59aa
ctx can contain database query objects, evaluate them before passing off to a thread
2017-02-28 15:21:44 +02:00
Pēteris Caune
b63f19f415
Simplify: remove djmail and django-ses-backend dependencies.
2017-01-29 11:44:22 +02:00
Pēteris Caune
8d956b3365
email template from Litmus. CSS already inlined, so dropping premailer dependency.
2017-01-15 13:10:08 +02:00
Pēteris Caune
b93336a44d
API support for cron syntax
2017-01-04 15:27:59 +02:00
Pēteris Caune
52cd2a9c8e
API rejects too long check names
2016-12-21 17:38:25 +02:00
Pēteris Caune
56168b17d0
Usability tweaks in api_check_changelist admin view.
2016-12-21 12:50:06 +02:00
Pēteris Caune
c5568b6dd1
Move json validation code to a separate file, add support for array and enum, add tests.
2016-09-23 14:08:31 +03:00
Pēteris Caune
965e32884b
Django 1.10
2016-08-29 17:54:53 +03:00
Pēteris Caune
44163c3758
Tests for badges
2016-07-03 19:24:44 +03:00
Pēteris Caune
c15a4871c2
Badges
2016-07-03 18:59:07 +03:00
Pēteris Caune
2df92c9c9e
Nicer html report
2016-06-25 05:27:28 +03:00