internetarchive / internetarchive/openlibrary
Trigger account anonymization from IA
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 138
Description
### Feature Request
### Problem / Opportunity
Open Library admins are able to anonymize Open Library accounts, and do so upon patron request. If a patron's account is anonymized in OL, but not deactivated in IA, the patron will not be able to log into OL without error.
To avoid situation like this, it may be nice if OL account anonymizations were triggered by IA when a patron's IA account is closed or anonymized.
https://git.archive.org/ia/petabox/-/merge_requests/5415
### Proposal
1. Remove the ability to anonymize accounts from the OL admin dashboard.
2. Expose endpoint to IA for anonymizing OL accounts.
3. Trigger OL account anonymization whenever a corresponding action is taken on an IA account.
### Breakdown
### Related files
Refer to [this map of common Endpoints](https://github.com/internetarchive/openlibrary/wiki/Endpoints):
* Account [`anonymize` function](https://github.com/internetarchive/openlibrary/blob/e488ef07bedd26415eab8da27d10507c62901ef8/openlibrary/accounts/model.py#L335-L390)
### Requirements Checklist
Checklist of requirements that need to be satisfied in order for this issue to be closed:
* [ ]
### Stakeholders
*
### Instructions for Contributors
* **Before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) or pushing up changes to a PR, please first [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date, as the pre-commit bot may add commits to your PRs upstream.
Contributor guide
Assessment
This issue has not been assessed yet.