Skip to content
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

Add API route to delete events #189

Open
asmahood opened this issue Jan 18, 2023 · 0 comments
Open

Add API route to delete events #189

asmahood opened this issue Jan 18, 2023 · 0 comments
Labels
type::Feature Issues/Pull requests that implement a new feature/enhancement work::Product Development

Comments

@asmahood
Copy link
Member

asmahood commented Jan 18, 2023

Description

If an event was mistakenly created, exec users are unable to delete it. This then requires super admins to go into the database and manually delete this events. Add an API endpoint to delete events.

Approach

  • Create new route DELETE /events/<eventId>
    • Events that have been marked as ended cannot be deleted
  • Update event id FK on participants table to ON DELETE CASCADE so that these participants are automatically deleted with the event

Related to

Blocked By

Blocks

uwpokerclub/app#466

@asmahood asmahood self-assigned this Jan 18, 2023
@asmahood asmahood transferred this issue from uwpokerclub/developer-hub Jul 26, 2023
@asmahood asmahood added the type::Feature Issues/Pull requests that implement a new feature/enhancement label Jul 27, 2023
@asmahood asmahood changed the title Add option to delete events Add route to delete an event Jul 27, 2023
@asmahood asmahood removed their assignment Sep 20, 2023
@asmahood asmahood changed the title Add route to delete an event Add API route to delete events Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::Feature Issues/Pull requests that implement a new feature/enhancement work::Product Development
Projects
None yet
Development

No branches or pull requests

1 participant