Commit graph

1922 commits

Author SHA1 Message Date
Pēteris Caune
d57ea3309a
Split report and reminder (nag) templates 2023-08-23 11:20:50 +03:00
Pēteris Caune
fbc6ac58ba
Clean up the report/reminder generation code 2023-08-22 15:31:45 +03:00
Pēteris Caune
70a5429ae3
Remove unused bits 2023-08-22 15:21:14 +03:00
Pēteris Caune
646f79c54e
Update email reminders to only show checks in the "down" state
Fixes: #881
2023-08-22 15:04:14 +03:00
Pēteris Caune
ea89237c16
Fix hc.accounts.views.check_token to handle non-UUID usernames
Fixes: #882
2023-08-22 13:45:54 +03:00
Pēteris Caune
455dc66ce2
Update senddeletionscheduled to also notify over configured channels 2023-08-21 15:38:11 +03:00
Pēteris Caune
a7395115db
Fix "createsuperuser" to reject already registered email addresses
Fixes: #880
2023-08-21 13:57:40 +03:00
Pēteris Caune
582372d27f
Rename senddeletionnotices -> sendinactivitynotices 2023-08-21 12:56:27 +03:00
Pēteris Caune
abe0b28926
Update senddeletionnotices to handle inactive team members 2023-08-14 21:04:41 +03:00
Pēteris Caune
897cf0088b
Add bold and monospace text formatting in Signal notifications 2023-08-04 12:38:34 +03:00
Pēteris Caune
d164e12de3
Add "Time Zone" field in Trello notifications
Also, fix the escaping of "*" symbols in Trello notifications.
2023-08-03 14:58:57 +03:00
Pēteris Caune
0456b3d5c4
Add "Time Zone" field in Telegram notifications 2023-08-03 14:36:42 +03:00
Pēteris Caune
dd523c53e5
Add "Time Zone" field in Signal notifications 2023-08-03 14:32:54 +03:00
Pēteris Caune
163656e6e4
Add "Time Zone" field in PagerDuty notifications 2023-08-03 14:16:51 +03:00
Pēteris Caune
f6805834d6
Add "Time Zone" field in Rocket.Chat notifications 2023-08-03 11:40:45 +03:00
Pēteris Caune
97dc6e73c5
Add "Time Zone" field in email notifications 2023-08-03 11:29:41 +03:00
Pēteris Caune
ba1d45e600
Add "Time Zone" field in Slack, Mattermost, Discord, MS Teams alerts
Fixes: #863
2023-08-03 11:29:14 +03:00
Pēteris Caune
f8c869596a
Fix "senddeletionnotices" to recognize "Supporter" subscriptions 2023-08-02 12:40:29 +03:00
Pēteris Caune
61a5c7a1a0
Add code comment so we don't trip on this again 2023-08-01 12:44:53 +03:00
Pēteris Caune
2942eefdf6
Tweak ping query to work around postgres index selection issue
Sorting by "n" or by "id" does not change query results.
But sorting by "id" can cause postgres to pick the
api_ping.id index (slow if api_ping table is big) instead of
api_ping.owner_id index (fast because any given check will have
a limited number of pings in the api_ping table).
2023-08-01 12:32:05 +03:00
Pēteris Caune
d5573fbc63
Enable sorting for date columns in Profile admin 2023-07-24 11:33:59 +03:00
Pēteris Caune
c6afd94baf
Fix "senddeletionscheduled" to avoid duplicate recipients 2023-07-17 11:35:49 +03:00
Pēteris Caune
fc91838774
Update senddeletionscheduled to put multiple rcpts in To: field 2023-07-17 09:48:27 +03:00
Pēteris Caune
763e7caf2d
Update Telegram integration to treat blocked bot as permanent error 2023-07-14 10:14:42 +03:00
Pēteris Caune
05742f42f9
Update the senddeletionscheduled command to notify team members too 2023-07-14 09:51:36 +03:00
Pēteris Caune
c4851f3b49
Fix lint issues 2023-07-12 13:44:35 +03:00
Pēteris Caune
774471e4e8
Improve type annotations in hc.api.views._update 2023-07-12 12:23:45 +03:00
Pēteris Caune
ef88aa3a85
Silence a ruff warning about local_settings import 2023-07-12 11:37:10 +03:00
Pēteris Caune
792cc59bef
Fix lint issues 2023-07-12 10:29:55 +03:00
Pēteris Caune
58cc623377
Format migration files with black 2023-07-12 10:11:07 +03:00
Pēteris Caune
f6a04d2256
Fix lint issues 2023-07-12 10:07:14 +03:00
Pēteris Caune
a3965fcae5
Add last notify date in channel admin 2023-07-12 08:51:54 +03:00
Pēteris Caune
5b322e5c5e
Optimize queries in admin 2023-07-11 16:45:02 +03:00
Pēteris Caune
88016c4317
Add over_limit_date in Profile admin's list view 2023-07-11 12:36:41 +03:00
Pēteris Caune
e26830ea99
Tweak Profile admin's list view 2023-07-11 12:28:58 +03:00
Pēteris Caune
32b607533a
Make QoL improvements in admin
* Add "view on site" links in Check, Channel, and Project admins
* Expose over_limit_date in Profile admin
* Display last notify duration ("Time" column) in Channel admin
* Add last notify duration filter for Channel admin
2023-07-11 12:14:45 +03:00
Pēteris Caune
4adba44381
Add convenience functions in Profile model
* is_past_over_limit_grace(): Returns True if this profile is
over limits for 31 or more days.
* schedule_for_deletion(): Sets the deletion_scheduled_date
field to 31 days in the future.
2023-07-11 10:14:10 +03:00
Pēteris Caune
fb58a50301
Exclude "apiv2" from docs search 2023-07-08 10:54:55 +03:00
Pēteris Caune
7ecbe8fc4e
Make log output more compact 2023-07-08 10:39:47 +03:00
Pēteris Caune
89c26b46a4
Refactor sendalerts and Flip.send_alerts() for cleaner logs 2023-07-08 10:28:40 +03:00
Pēteris Caune
fc41af50f4
Fix sorting of NULLs when fetching a Flip in sendalerts 2023-07-07 18:21:26 +03:00
Pēteris Caune
68bcc5389f
Fix sendalerts to allow "handle_going_down()" to run more often 2023-07-07 17:58:55 +03:00
Pēteris Caune
368e76016d
Add Channel.last_notify_duration, use in sendalerts for prioritization 2023-07-07 16:40:23 +03:00
Pēteris Caune
9c00938516
Update email bounce handler to log diagnostic codes 2023-07-06 15:21:02 +03:00
Pēteris Caune
c69c1f5ec4
Add management command for sending "scheduled for deletion" warnings 2023-07-04 12:50:50 +03:00
Viktor Szépe
573b76a082
Fix typos (#855) 2023-07-02 15:14:13 +03:00
Pēteris Caune
011b97f75a
Fix signup tests to pass regardless of REGISTRATION_OPEN value 2023-06-28 15:26:39 +03:00
Pēteris Caune
68c42db58c
Add support for Telegram topics
Fixes: #852
2023-06-28 15:22:59 +03:00
Pēteris Caune
651aec4ac7
Add API support for filtering checks by slug
Fixes: #844
2023-06-27 12:41:31 +03:00
Pēteris Caune
58d317adc7
Make check auto-provisioning opt-in
cc: #849, #626
2023-06-27 09:45:38 +03:00