MadeInPierre / MadeInPierre/cuicuit

Delete user function

Open
#36 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

roadmap
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.