Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add a background database update to purge account data for deactivated users. #11655

Merged
merged 22 commits into from
Feb 2, 2022
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
68b663d
Remove account data upon user deactivation
reivilibre Dec 21, 2021
13fec0d
Document that account data is removed upon user deactivation
reivilibre Dec 21, 2021
c1fed49
Newsfile
reivilibre Dec 21, 2021
4da869e
Remove account data upon user deactivation
reivilibre Dec 21, 2021
b132bba
Test the removal of account data upon deactivation
reivilibre Dec 29, 2021
1589d6a
Pull out the account data transaction so it can be reused in other tr…
reivilibre Dec 29, 2021
5344446
Add a background job to retroactively purge account data for deactiva…
reivilibre Dec 29, 2021
da884c0
Add a schema delta to trigger the clean-up job
reivilibre Dec 29, 2021
288b0e8
Newsfile
reivilibre Dec 29, 2021
2690bd6
Add tests for the background update job
reivilibre Jan 17, 2022
9413a46
Fix port_db script not being able to run the background job
reivilibre Jan 17, 2022
3b48c9d
Merge branch 'develop' into rei/add_job
reivilibre Jan 24, 2022
2337b28
Reformat after merge
reivilibre Jan 24, 2022
2ee3d8f
Simplify test after merge
reivilibre Jan 24, 2022
d362e31
Fix order of args after merge
reivilibre Jan 24, 2022
3ecc6bc
Move schema delta to correct version
reivilibre Jan 24, 2022
9a4ec65
Fix database port script's Method Resolution Order
reivilibre Jan 24, 2022
0543946
Fix abstract method error in synapse_port_db
reivilibre Jan 28, 2022
d18e2dd
job → update
reivilibre Jan 28, 2022
99353f3
Remove obsolete manual cache invalidations in tests
reivilibre Feb 2, 2022
2587e51
Merge branch 'develop' into rei/add_job
reivilibre Feb 2, 2022
2f79559
Fix up background update delta number
reivilibre Feb 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify test after merge
  • Loading branch information
reivilibre committed Jan 24, 2022
commit 2ee3d8fe33178638a39072d7bb827c1f1e74b412
17 changes: 1 addition & 16 deletions tests/handlers/test_deactivate_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,22 +244,7 @@ def test_account_data_deleted_retroactively_by_background_job_if_deactivated(
"""

# Request the deactivation of our account
req = self.get_success(
self.make_request(
"POST",
"account/deactivate",
{
"auth": {
"type": "m.login.password",
"user": self.user,
"password": "pass",
},
"erase": True,
},
access_token=self.token,
)
)
self.assertEqual(req.code, 200, req)
self._deactivate_my_account()

# Add some account data
# (we do this after the deactivation so that the act of deactivating doesn't
Expand Down