Pēteris Caune
9a0888aacd
Update sendalerts to log per-notification send times
To send notifications, sendalerts calls Flip.send_alerts().
I updated Flip.send_alerts() to be a generator, and to yield
a (channel, error, send_time_in_seconds) triple per sent
notification.
4 years ago
Pēteris Caune
3b6afae140
Specify timeout in the DBus calls
4 years ago
Pēteris Caune
d7c7ae6531
Fix tests
4 years ago
Pēteris Caune
74ed15e0aa
Update the signal integration to use DBus
The initial implementation was just calling signal-cli directly
using `subprocess.run`.
Going with DBus makes it easier to shield signal-cli from the
rest of the system. It also makes sure the signal-cli daemon is
running in the background and receiving messages. This is important
when a recipient does the "Reset secure connection" from the app. We
must receive their new keys, otherwise our future messages will
appear as "bad encrypted message" for them.
4 years ago
Pēteris Caune
a80b831eea
Add rate-limiting for Signal messages
4 years ago
Pēteris Caune
d4aac691ce
Increase the timeout for sending Signal messages
4 years ago
Pēteris Caune
ee37d305ef
Tighten Telegram rate limit to 6 messages / minute
With the previous 10 minutes / minute limit we were still hitting
Telegram API rate limit (the 429, "Too Many Requests" response)
from time to time.
Therefore, tighten the limit a bit on our side.
4 years ago
Pēteris Caune
f607ee67d5
Allow searching in the error field in Notifications admin
4 years ago
Pēteris Caune
0aeef7d06e
Fix unwanted HTML escaping in SMS and WhatsApp notifications
4 years ago
Pēteris Caune
cd99af14ba
Add Signal integration
Fixes : #428
4 years ago
Pēteris Caune
8fe8e0f605
Update alert email template: more information, less styling
Fixes : #348
4 years ago
Pēteris Caune
617bd92434
Add Ping.exitstatus field, store received exit status values in db
Fixes #455
4 years ago
Pēteris Caune
524d1a7375
Implement badge mode (up/down vs up/late/down) selector
Fixes #282
4 years ago
Pēteris Caune
155a1f132b
Simplify super() calls in tests
4 years ago
Pēteris Caune
42497fe91a
Add rate limiting to the sudo code form
4 years ago
Pēteris Caune
816c158744
Fix code formatting in the Notification model
4 years ago
Pēteris Caune
0b685e8b5a
Disable retries when testing webhook integration
Normally, when a webhook call fails (timeout, connection
error, non-2xx response), the HTTP request is retried up to two
times (so up to 3 times total). This is useful when sending
actual notifications, in case the webhook target has a temporary
glitch.
When interactively testing a webhook integration
("Send Test Notification" in the
"Integrations" page), we would prefer to see any errors ASAP
on the screen instead of retrying and so possibly swallowing them.
One specific use case is webhook targets that take long time to
generate a response. "Send Test Notification" is synchronous,
meaning that the user could be stuck for
5 x 3 = 15 seconds waiting for the test HTTP request to time out
three times.
4 years ago
Pēteris Caune
81e59ac553
Add support for script's exit status in ping URLs
Fixes : #429
4 years ago
Pēteris Caune
6f56ed7f92
Reduce the number of SQL queries used in the "Get Checks" API call
4 years ago
Pēteris Caune
7534f1856f
Add testcases for setting channels in the "Create Check" API call
4 years ago
Pēteris Caune
7e56156d32
Optimize the "Update Check" API call
In the "Update Check" API call, if no fields have changed,
don't save the changes to the database.
4 years ago
Pēteris Caune
0e77064c44
Update API to allow specifying channels by names
Fixes : #440
4 years ago
Pēteris Caune
463ec8c988
Set the "title" and "summary" fields in MS Teams notifications
Fixes : #435
4 years ago
Pēteris Caune
05c81e0a41
Escape markdown in MS Teams notifications. cc: #426
4 years ago
Pēteris Caune
b64c8d1cb8
API support for setting the allowed HTTP methods for making ping requests
4 years ago
Pēteris Caune
c13f65e118
Grammar and style fixes.
4 years ago
Pēteris Caune
66a1a108bf
When decoding inbound emails, decode encoded headers. Fixes #420
4 years ago
Pēteris Caune
e424176a1f
Remove mentions of "whitelist"
4 years ago
Pēteris Caune
94b993354f
Sort integrations in A-Z order. Rename "LineNotify" -> "LINE Notify". Update the LINE Notify icon.
4 years ago
carson.wang
74668551a7
Add tests & Doesn't get LineNotify token using setting
4 years ago
carson.wang
65b65188d1
Test LineNotify integration with healthcheck
4 years ago
Pēteris Caune
c75a37570e
In channels admin, don't show the notification counts, querying it is too expensive.
4 years ago
Pēteris Caune
8ea510cda6
Removing unused /api/v1/notifications/{uuid}/bounce endpoint
4 years ago
Pēteris Caune
a29b82a0ed
In api.views.notification_status, always return HTTP 200 so the other party doesn't retry over and over again
4 years ago
Pēteris Caune
ae01c7a9d1
Handle Twilio status callbacks for SMS, WhatsApp and phone call notifications.
4 years ago
Pēteris Caune
95d58d26d5
Handle status callbacks from Twilio, show SMS delivery failures in the Integrations page.
4 years ago
Pēteris Caune
750b96c374
Use Django 3.1
4 years ago
Pēteris Caune
2ed9a8fd30
Rename Channel.sms_number property to Channel.phone_number. It is now used for SMS, WhatsApp and phone call notifications, so "sms_number" is not accurate any more.
4 years ago
Pēteris Caune
d05691f86f
SMS and phone calls now have separate "limit reached" email templates.
4 years ago
Pēteris Caune
8c13457037
Use separate counters for SMS and phone calls.
4 years ago
Pēteris Caune
ee9ac0ffef
New integration: phone calls. Fixes #403
4 years ago
Pēteris Caune
43e56ce788
Add support for multiple, comma-separated keywords (cc: #396 )
4 years ago
Pēteris Caune
0d03e3f00b
Add "Failure Keyword" filtering for inbound emails (cc: #396 )
4 years ago
Pēteris Caune
589c0c0363
Updated Discord integration to use discord.com instead of discordapp.com
4 years ago
Pēteris Caune
255d4e7bb7
Reduce the number of queries in /admin/api/channel/
4 years ago
Pēteris Caune
ec5ee03a3e
Add "check_id" in Spike payload.
4 years ago
Pēteris Caune
58f16da935
Edits to Spike setup instructions.
4 years ago
Divyansh
6300947c77
integration for Spike
4 years ago
Pēteris Caune
3a00c0d2aa
Sending a test notification updates Channel.last_error. Fixes #391
4 years ago
Pēteris Caune
149096811d
In the checks list, indicate a started check with a progress spinner under the status icon (cc: #338 )
4 years ago