Commit graph

2004 commits

Author SHA1 Message Date
Pēteris Caune
8fa70dc59c
Fix type warnings 2023-09-03 09:29:44 +03:00
Pēteris Caune
ef3837e7e7
Clean up and improve code comments 2023-09-03 09:29:31 +03:00
Pēteris Caune
2901f03146
Fix type warnings 2023-09-03 09:04:38 +03:00
Pēteris Caune
4a819a8018
Convert Signal.send() to a classmethod
This fixes a couple mypy warnings, and also fixes a code smell:
we were doing `Signal(None).send(...)` in a few places,
and can now do `Signal.send(...)` instead.
2023-09-02 18:48:25 +03:00
Pēteris Caune
ec607afbde
Improve test coverage for the Signal transport class 2023-09-02 18:24:14 +03:00
Pēteris Caune
23eadc5e64
Fix type warnings 2023-09-02 17:19:31 +03:00
Pēteris Caune
aecdbfb017
Remove dead code in Channel.webhook_spec
The "method_down" and "method_up" fields are always set
in webhook configurations, no point checking them.
2023-09-02 16:54:16 +03:00
Pēteris Caune
9932855745
Fix type annotations 2023-09-02 16:52:46 +03:00
Pēteris Caune
1c0dc52099
Remove debug 2023-09-02 12:58:25 +03:00
Pēteris Caune
6b11e60d9c
Update Signal class to parse signal-cli JSON-RPC messages using pydantic 2023-09-02 12:47:42 +03:00
Pēteris Caune
fcdf8dd60e
Fix type annotations for Py 3.8 2023-09-01 10:07:20 +03:00
Pēteris Caune
3430a8dc92
Combine Telegram.ErrorModel and Telegram.MigrationModel classes 2023-09-01 09:49:37 +03:00
Pēteris Caune
c82b720d04
Update Opsgenie and Zulip transports to use pydantic 2023-09-01 09:39:40 +03:00
Pēteris Caune
cc2b8fa1c2
Use pydantic to validate JSON from Telegram API (experimental) 2023-09-01 09:16:33 +03:00
Pēteris Caune
477f690057
Improve type hints 2023-08-31 14:17:08 +03:00
Pēteris Caune
4affd70822
Fix JSON type aliases for Py 3.8 again 2023-08-31 12:25:18 +03:00
Pēteris Caune
e54d96690f
Remove usage of typing.TypeAlias (not available in Py 3.9) 2023-08-31 12:21:17 +03:00
Pēteris Caune
3311712610
Improve type hints, add reusable JSON type aliases in hc.lib.typealias 2023-08-31 12:17:15 +03:00
Pēteris Caune
6bd25cc52c
Improve type hints in hc.api.transports 2023-08-30 16:08:43 +03:00
Pēteris Caune
e23db5a8fa
Fix "JSONValue" type alias for Py 3.8-3.9, take two 2023-08-30 10:16:22 +03:00
Pēteris Caune
1e8d02385d
Fix "JSONValue" type alias for Py 3.8-3.9 2023-08-30 10:10:38 +03:00
Pēteris Caune
e022c17bed
Improve type hints 2023-08-30 09:57:34 +03:00
Pēteris Caune
ab3dad4ecc
Fix type annotations in tests to use _MonkeyPatchedWSGIResponse 2023-08-29 22:35:51 +03:00
Pēteris Caune
2b73ddde17
Improve type hints 2023-08-29 19:10:27 +03:00
Pēteris Caune
aaa172cd28
Improve type hints 2023-08-29 17:52:20 +03:00
Pēteris Caune
afd3d62c08
Improve type hints 2023-08-29 16:51:22 +03:00
Pēteris Caune
4147bd951d
Make Channel.disabled non-nullable 2023-08-29 16:29:29 +03:00
Pēteris Caune
47ec070aee
Make Profile.user non-nullable
Each Profile must have a corresponding User object, there should
be no profiles with null "user_id" fields.
2023-08-29 16:19:08 +03:00
Pēteris Caune
9483556a1f
Improve type hints and fix bugs revealed by type checker 2023-08-29 16:07:54 +03:00
Pēteris Caune
26725b9f4e
Add an "Account closed." confirmation message after closing an account 2023-08-24 09:07:41 +03:00
Pēteris Caune
bc192df0b3
Improve ntfy notifications (include tags, period, last ping type etc.) 2023-08-23 15:32:06 +03:00
Pēteris Caune
bbb06ff358
Add support for ntfy access tokens
Fixes: #879
2023-08-23 14:52:50 +03:00
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