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

USER STORY: Delete a recipe #19

Closed
6 tasks done
chris-townsend opened this issue Nov 9, 2022 · 0 comments
Closed
6 tasks done

USER STORY: Delete a recipe #19

chris-townsend opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
1 User Story Estimate is 1 story point must-have A must-have feature

Comments

@chris-townsend
Copy link
Owner

chris-townsend commented Nov 9, 2022

User Story:

As a logged-in User, I can delete any personal recipes so that I can remove them if necessary

Acceptance Criteria:

  • Only a logged-in User can delete a recipe
  • If a User is logged in, a delete button should be shown on the user-created recipes page
  • The User should confirm if they want to delete the recipe or not with a cancel and update option
  • If the User confirms deletion, the recipe should be removed from the database
  • The logged-in User should be notified that they have successfully deleted the recipe

Related User Stories:

Tasks:

  • Create a class in views.py
  • Create a 'Delete' button that appears next to the recipe only on user's created recipes page
    • Ensure the User is logged-in before a delete button appears and only display if the user is the author of the recipe
  • Create a delete recipe view
  • Wire up URL to render template
  • Create an alert message to the user for the successful deletion of their recipe

@chris-townsend chris-townsend added must-have A must-have feature 1 User Story Estimate is 1 story point labels Nov 9, 2022
@chris-townsend chris-townsend added this to the EPIC: User Recipes milestone Nov 9, 2022
@chris-townsend chris-townsend self-assigned this Nov 9, 2022
@chris-townsend chris-townsend moved this from Todo to In Progress in Kitchen Tales Kanban board Nov 29, 2022
Repository owner moved this from In Progress to Done in Kitchen Tales Kanban board Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 User Story Estimate is 1 story point must-have A must-have feature
Projects
Development

No branches or pull requests

1 participant