feat: PII Export & Delete Workflow (GDPR-ready)#345
Open
lucascrespo23 wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: PII Export & Delete Workflow (GDPR-ready)#345lucascrespo23 wants to merge 1 commit intorohitdash08:mainfrom
lucascrespo23 wants to merge 1 commit intorohitdash08:mainfrom
Conversation
Implements issue rohitdash08#76 with: ## Export (GET /pii/export) - Downloads complete JSON package of all user data - Includes: profile, categories, expenses, recurring expenses, bills, reminders, ad impressions, subscriptions, audit logs - Excludes password_hash from export - Returns as downloadable JSON attachment - Creates audit trail entry on each export ## Delete (POST /pii/delete) - Requires explicit {"confirm": true} body to prevent accidents - Irreversibly deletes all user data in correct FK dependency order - Creates anonymized audit trail entry (hashed email reference) for compliance - Returns deletion summary with counts per table ## Tests (15 test cases) - Export: auth required, JSON attachment format, contains all data sections, excludes password hash, audit logging - Delete: auth required, confirmation required, removes all data, returns summary Closes rohitdash08#76
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/claim #76
Summary
Implements PII Export & Delete Workflow as described in #76.
Export (
GET /pii/export)application/jsonattachmentDelete (
POST /pii/delete){"confirm": true}body to prevent accidental deletionFiles Changed
packages/backend/app/services/pii.py— Export & delete business logicpackages/backend/app/routes/pii.py— REST endpointspackages/backend/app/routes/__init__.py— Route registrationpackages/backend/tests/test_pii.py— 15 test casesAcceptance Criteria