-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remix: hard-delete projects #4881
Conversation
Job #10388: Bundle Size — 61.73MiB (~-0.01%).
Warning Bundle contains 57 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #10388 report View feat/remix-destroy-projects branch activity View project dashboard |
|
||
await fn() | ||
const got = await prisma.project.findMany({ where: { owner_id: 'bob' } }) | ||
expect(got.map((p) => p.proj_id)).toEqual(['one', 'four', 'five']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an expect
for the projects that aren't owned by 'bob'
please to ensure we haven't accidentally deleted anyone else's projects (soft deleted or otherwise)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's already ensure here
const aliceProjects = await prisma.project.findMany({ where: { owner_id: 'alice' } }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix #4880
Problem:
#4874 introduced soft-deleted projects that will end up in a
Trash
or similar concept. Now, we also need a way to destroy (= hard delete) projects as well.Fix:
Empty the trash
concept.Note: it's easy to see a future case of soft/hard-deleting a selection of projects, but we can add it later on as a simple incremental change rather than over-engineering now.