MadeInPierre / MadeInPierre/cuicuit
Delete user function
Nobody has claimed this yet.
- Dominant language
- Svelte
- Stars
- 49
- Forks
- 0
- Avg merge
- 28m
- Merged PRs (30d)
- 1
Description
Add a postgres function to completely wipe a user's data (preferences, spaces, recipes, meals, ...).
If a space has other members, promote another random user instead of deleting the space.
Review the CASCADE properties and maximize automation by using it as much as possible instead of manually deleting objects in each table.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the PostgreSQL schema, relationships, and existing CASCADE properties for users, preferences, spaces, recipes, and meals. Define the deletion function's behavior for shared spaces, then verify that a user's data is removed while another member is promoted when required and no unrelated data is deleted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100