Pēteris Caune
c74f2b166a
Update package versions
2023-11-01 09:42:59 +02:00
Pēteris Caune
4fa91e8336
Fix merge oops
...
Add back database fields that are present in migrations
but not in the model itself
2023-11-01 09:38:50 +02:00
Pēteris Caune
c18d2ea1dd
Update logging configuration to write logs to database
2023-11-01 09:34:45 +02:00
Pēteris Caune
f08ac87888
Update CHANGELOG for v3.0.1 release
2023-10-30 12:52:17 +02:00
Pēteris Caune
f8a9077c76
Fix DST handling in Check.get_grace_start()
2023-10-30 11:53:52 +02:00
Pēteris Caune
a7b8799e36
Fix Signal transport to handle JSON-RPC messages with no ids
2023-10-27 21:30:26 +03:00
Pēteris Caune
cf40553033
Update Signal transport to log unexpected responses
2023-10-27 17:41:09 +03:00
Pēteris Caune
fe67db5726
Fix the "Update Check" API call to handle concurrent deletes
2023-10-27 14:21:10 +03:00
Pēteris Caune
f962e869ba
Fix a race condition in concurrent "Delete Check" API calls
2023-10-27 13:36:47 +03:00
Pēteris Caune
ec9649a6a6
Fix logging calls to avoid string formatting in client code
2023-10-27 10:33:55 +03:00
Pēteris Caune
1eb92c9fe7
Switch to using Pydantic for parsing Gotify configuration
2023-10-26 12:01:42 +03:00
Pēteris Caune
cdac9b3128
Switch to using Pydantic for parsing Trello configuration
2023-10-26 11:57:49 +03:00
Pēteris Caune
dea66b85af
Switch to using Pydantic for parsing ntfy configuration
...
Also, fix a bug in the "Edit ntfy integration" form,
where the token was not filled in the form on page load.
2023-10-26 10:32:41 +03:00
Pēteris Caune
ab7449a279
Improve type hints in hc.lib.s3
2023-10-26 10:19:28 +03:00
Pēteris Caune
d059431b08
Improve type hints in hc.lib.webauthn
2023-10-26 10:14:30 +03:00
Pēteris Caune
6872ab3eb6
Improve type hints in hc.accounts.backends
2023-10-26 09:31:11 +03:00
Pēteris Caune
8a42d2b66b
Add type hints in hc.accounts.middleware
2023-10-26 09:16:18 +03:00
Pēteris Caune
73ca8d2c9d
Improve type hints
2023-10-26 08:51:48 +03:00
Pēteris Caune
db1088eb9c
Add type hints in hc.front.templatetags.linemode
2023-10-26 08:41:05 +03:00
Pēteris Caune
5afc2ea20c
Improve type hints
2023-10-26 08:35:06 +03:00
Pēteris Caune
343e55bd4f
Improve type hints
2023-10-25 18:12:12 +03:00
Pēteris Caune
37ee900798
Improve Discord tests
2023-10-25 14:51:54 +03:00
Pēteris Caune
232f534bc0
Improve type hints in hc.lib.curl
2023-10-25 14:47:52 +03:00
Pēteris Caune
65eddaacd6
Improve API error handling in hc.front.views.add_linenotify_complete
2023-10-25 14:46:57 +03:00
Pēteris Caune
bff59c92ed
Improve API error handling in hc.front.views.trello_settings
2023-10-25 14:20:51 +03:00
Pēteris Caune
da22899cd6
Improve OAuth error handling in hc.front.views.add_discord_complete
2023-10-25 13:49:14 +03:00
Pēteris Caune
8b006e0d58
Move nolog decorator to hc.test so it can be reused
2023-10-25 13:48:55 +03:00
Pēteris Caune
511863594c
Improve OAuth error handling in hc.front.views.add_slack_complete
2023-10-25 13:40:56 +03:00
Pēteris Caune
4d0ec64da8
Update Signal integration to use Ping.get_kind_display()
2023-10-23 11:47:17 +03:00
Pēteris Caune
6110b10c3c
Update Telegram integration to use Ping.get_kind_display()
2023-10-23 11:43:07 +03:00
Pēteris Caune
c9540f8ddd
Update email integration to use Ping.get_kind_display()
2023-10-23 11:39:37 +03:00
Pēteris Caune
6c7f5881a7
Update ntfy integration to use Ping.get_kind_display()
2023-10-23 11:37:18 +03:00
Pēteris Caune
60630c1dee
Fix special character escaping in ntfy notifications
2023-10-23 11:22:14 +03:00
Pēteris Caune
7e503d9c33
Move the "join Matrix room" code to hc.lib.matrix
2023-10-23 09:32:03 +03:00
Pēteris Caune
1004ca776a
Switch to using Pydantic for validating Matrix join responses
2023-10-23 08:53:15 +03:00
Pēteris Caune
cf552c86cb
Switch to using Pydantic for validating Pushbullet OAuth responses
2023-10-23 08:52:31 +03:00
Pēteris Caune
06328dbecf
Fix mypy warning
2023-10-22 16:57:02 +03:00
Pēteris Caune
5911075282
Fix HTTP verb in hc.lib.curl.post
2023-10-22 12:38:44 +03:00
Pēteris Caune
7e7cbe9f75
Fix the Login form to not perform form validation in GET requests
2023-10-22 10:45:06 +03:00
Pēteris Caune
30a3a784c3
Move AuthenticatedHttpRequest to hc.accounts.http module
...
If AuthenticatedHttpRequest lives in the hc.lib.typealias
module then hc.lib.typealias imports User and Profile,
and so needs configured Django settings. Most of the stuff
in hc.lib is intended to work standalone, and not rely on Django.
2023-10-21 18:16:48 +03:00
Pēteris Caune
0971051418
Refactor Webhook transport
2023-10-21 18:04:27 +03:00
Pēteris Caune
2d447d5bc8
Enable mock autospeccing in more places
2023-10-21 11:55:30 +03:00
Pēteris Caune
470f70b164
Update curl.get and curl.post to closer match requests fn signatures
...
In requests, "params" is a positional argument for the get function:
requests.get(url, params=None, **kwargs)
So I made params positional here too.
In requests, "data" is a positional argument for the post function:
requests.post(url, data=None, json=None, **kwargs)
So I data positional here too.
2023-10-21 11:45:45 +03:00
Pēteris Caune
7c7774d18c
Replace **kwargs with explicit keyword arguments in hc.lib.curl
...
This makes the code more verbose, but at the same time
makes type hinting cleaner, and allows mock autospeccing
to catch more problems.
2023-10-21 11:21:42 +03:00
Pēteris Caune
4226ec4059
Remove unnecessary type conversion
2023-10-20 19:14:44 +03:00
Pēteris Caune
52ab8c4703
Improve type hints in hc.lib.curl and hc.api.transports
...
This results in changes in other places too:
* curl.post() does not accept `data` as positional arg,
it must now be a keyword argument
* we need asserts and if clauses in a few places to make sure
we are not passing `None` in the arguments to hc.lib.curl.request
2023-10-20 19:11:08 +03:00
Pēteris Caune
33a0f65144
Improve type hints in hc.api.decorators
2023-10-20 18:41:11 +03:00
Pēteris Caune
5ebc7696d7
Remove braintree dependency, should no longer be needed to run tests
2023-10-19 15:04:54 +03:00
Pēteris Caune
7900eb55b8
Remove a few more files that I missed
2023-10-19 14:58:39 +03:00
Pēteris Caune
a9c7dbc397
Remove billing.html which I meant to remove before but missed
2023-10-19 14:44:17 +03:00