Andrew Morgan
97f1b92b56
Merge pull request #6253 from matrix-org/uhoreg/e2e_backup_delete_keys
...
* commit 'da78f6177':
remove unneeded imports
switch to using HomeserverTestCase
remove some unnecessary lines
add changelog
delete keys when deleting backups
2020-03-16 15:31:19 +00:00
Andrew Morgan
bf1fad8462
Merge pull request #6231 from matrix-org/erikj/refactor_stores
2020-03-16 15:13:49 +00:00
Andrew Morgan
20fccf0067
Merge pull request #6193 from matrix-org/uhoreg/interpret_device_key_in_storage
2020-02-26 12:37:22 +00:00
Andrew Morgan
20893707bf
Fix MAU reaping where reserved users are specified. ( #6168 )
2020-02-26 12:36:45 +00:00
Andrew Morgan
22fc7597f7
Merge pull request #6186 from matrix-org/erikj/disable_sql_bytes
2020-02-26 12:36:21 +00:00
Andrew Morgan
f5a623f070
Merge pull request #6146 from matrix-org/erikj/fix_destination_retry_timings
2020-02-26 12:09:38 +00:00
Andrew Morgan
2ac458d86d
Merge pull request #6145 from matrix-org/erikj/fix_censored_redactions
2020-02-26 12:08:58 +00:00
Andrew Morgan
eba1b9c156
Fix dummy event insertion consent bug ( #6053 )
2020-02-25 17:54:48 +00:00
Andrew Morgan
f6d3b67360
Merge pull request #6098 from matrix-org/erikj/cleanup_user_ips_2
2020-02-25 17:54:41 +00:00
Andrew Morgan
41e59e6ac3
Merge pull request #6089 from matrix-org/erikj/cleanup_user_ips
2020-02-25 17:54:30 +00:00
Andrew Morgan
74912d4eab
Add 'failure_ts' column to 'destinations' table ( #6016 )
2020-02-25 14:28:24 +00:00
Andrew Morgan
6bedb3fe1c
Merge pull request #5934 from matrix-org/erikj/censor_redactions
2020-02-25 11:41:35 +00:00
Andrew Morgan
87856c6aa9
Servers-known-about statistic ( #5981 )
2020-02-25 11:37:02 +00:00
Andrew Morgan
3d5f1ebf06
Merge pull request #5902 from matrix-org/hs/exempt-support-users-from-consent
2020-02-24 17:19:09 +00:00
Andrew Morgan
408959c9d9
Merge pull request #5788 from matrix-org/rav/metaredactions
2020-02-20 15:58:43 +00:00
Andrew Morgan
bab6f6052c
Merge pull request #5746 from matrix-org/erikj/test_bg_update_currnet_state
2020-02-20 15:41:31 +00:00
Andrew Morgan
471a6b1b56
Convert RedactionTestCase to modern test style ( #5768 )
2020-02-19 16:05:44 +00:00
Andrew Morgan
f590f77a16
Replace returnValue with return ( #5736 )
2020-02-19 15:11:59 +00:00
Andrew Morgan
adb043107f
Support Prometheus_client 0.4.0+ ( #5636 )
2020-02-19 11:46:23 +00:00
Andrew Morgan
2f450fa149
Implement access token expiry ( #5660 )
2020-02-17 17:17:02 +00:00
Andrew Morgan
ee2de6734b
Remove access-token support from RegistrationStore.register ( #5642 )
2020-02-17 16:36:11 +00:00
Andrew Morgan
622d0be1b3
Fix with isort==4.3.21 and black==19.3b0
2020-02-14 14:27:12 +00:00
Andrew Morgan
c9aab2de34
Fix signedjson deleted method
2020-02-14 12:03:12 +00:00
Andrew Morgan
28eba8747e
Run Black. ( #5482 )
2020-02-13 11:30:15 +00:00
Andrew Morgan
0295abdcf7
Dinsic Blacking with black==18.6b2
2020-02-11 16:18:29 +00:00
Andrew Morgan
f98c652b4e
Merge pull request #5480 from matrix-org/erikj/extremities_dummy_events
2020-02-10 18:56:49 +00:00
Andrew Morgan
c9eb99d25b
Add experimental option to reduce extremities.
2020-02-10 18:54:03 +00:00
Andrew Morgan
72c14cb133
Merge pull request #5461 from matrix-org/erikj/histograms_are_cumalitive
2020-02-10 16:39:29 +00:00
Andrew Morgan
0ed71e4e4b
Merge pull request #5458 from matrix-org/hawkowl/fix-prometheus
2020-02-10 14:48:37 +00:00
Andrew Morgan
9efcd2da53
Expose statistics on extrems to prometheus ( #5384 )
2020-02-10 14:42:57 +00:00
Hubert Chathi
4697c0de0b
remove unneeded imports
2019-10-25 10:47:02 -04:00
Hubert Chathi
4cf3a30a20
switch to using HomeserverTestCase
2019-10-25 10:42:07 -04:00
Hubert Chathi
29a0bc5637
remove some unnecessary lines
2019-10-24 21:43:02 -04:00
Hubert Chathi
848cd388d9
delete keys when deleting backups
2019-10-24 21:21:51 -04:00
Erik Johnston
c66a06ac6b
Move storage classes into a main "data store".
...
This is in preparation for having multiple data stores that offer
different functionality, e.g. splitting out state or event storage.
2019-10-21 16:05:06 +01:00
Hubert Chathi
06fc66c81e
Merge pull request #6193 from matrix-org/uhoreg/interpret_device_key_in_storage
...
make storage layer in charge of interpreting the device key data
2019-10-11 15:19:06 -04:00
Neil Johnson
a0d0ba7862
Fix MAU reaping where reserved users are specified. ( #6168 )
2019-10-11 09:38:26 +01:00
Hubert Chathi
4908fb3b30
make storage layer in charge of interpreting the device key data
2019-10-10 19:15:30 -04:00
Erik Johnston
bc244627ac
Fix postgres unit tests
2019-10-10 15:37:53 +01:00
Erik Johnston
b4fe7e19c0
Merge pull request #6146 from matrix-org/erikj/fix_destination_retry_timings
...
Fix errors storing large retry intervals.
2019-10-02 11:05:22 +01:00
Erik Johnston
f44f1d2e83
Fix errors storing large retry intervals.
...
We have set the max retry interval to a value larger than a postgres or
sqlite int can hold, which caused exceptions when updating the
destinations table.
To fix postgres we need to change the column to a bigint, and for sqlite
we lower the max interval to 2**62 (which is still incredibly long).
2019-10-02 10:36:27 +01:00
Erik Johnston
ce7a3e7e27
Fix fetching censored redactions from DB
...
Fetching a censored redactions caused an exception due to the code
expecting redactions to have a `redact` key, which redacted redactions
don't have.
2019-10-02 10:14:01 +01:00
Neil Johnson
034db2ba21
Fix dummy event insertion consent bug ( #6053 )
...
Fixes #5905
2019-09-26 11:47:53 +01:00
Erik Johnston
faac453f08
Test that pruning of old user IPs works
2019-09-24 15:53:17 +01:00
Erik Johnston
acb62a7cc6
Test background update
2019-09-23 16:59:45 +01:00
Erik Johnston
51d28272e2
Query devices table for last seen info.
...
This is a) simpler than querying user_ips directly and b) means we can
purge older entries from user_ips without losing the required info.
The storage functions now no longer return the access_token, since it
was unused.
2019-09-23 16:59:45 +01:00
Richard van der Hoff
1e19ce00bf
Add 'failure_ts' column to 'destinations' table ( #6016 )
...
Track the time that a server started failing at, for general analysis purposes.
2019-09-17 11:41:54 +01:00
Erik Johnston
470dc621ae
Merge pull request #5934 from matrix-org/erikj/censor_redactions
...
Censor redactions in DB after a month
2019-09-09 15:29:39 +01:00
Amber Brown
55d5b3af88
Servers-known-about statistic ( #5981 )
2019-09-07 01:45:51 +10:00
Erik Johnston
ad9b64b496
Fix test
2019-09-05 17:17:47 +01:00