Revert "Implement async user data export queue and move export/delete to Privacy screen"#55
Revert "Implement async user data export queue and move export/delete to Privacy screen"#55fortune710 merged 1 commit intomainfrom
Conversation
… to Privacy screen"
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis PR consolidates user data export functionality from an asynchronous background job system to a simplified synchronous HTTP endpoint. The changes remove legacy async export infrastructure, job scheduling, and file-based storage while introducing a new GET /user/{user_id}/export endpoint supporting JSON and HTML formats, alongside refactored frontend export and delete account UI flows. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Frontend Client
participant Server as Backend API
participant DB as User Data Store
Client->>Client: User clicks Export Data
Client->>Client: Validate auth token & profile ID
Client->>Server: GET /user/{user_id}/export?format=json/html<br/>+ Authorization header
Server->>Server: Authenticate caller
Server->>Server: Verify user ownership
Server->>DB: Fetch user profile
DB-->>Server: User profile data
Server->>DB: Fetch user entries
DB-->>Server: Entries list
Server->>DB: Fetch friendships
DB-->>Server: Friendships data
Server->>Server: Cleanse data (remove None values)
Server->>Server: Format as JSON or HTML<br/>(sanitize URLs, escape content)
Server-->>Client: HTTP response with export data
Client->>Client: Download file via blob/share
Client->>Client: Show success/failure feedback
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reverts #54
Summary by CodeRabbit
New Features
Updates