zhannamatuzak / lizard-my-pet

CI PP4
1 stars 1 forks source link

USER STORY: Delete Shared Experiences #13

Open zhannamatuzak opened 9 months ago

zhannamatuzak commented 9 months ago

As a SITE USER, I can delete my shared experiences about my pet lizard (comments) on a lizard post so that I can customise or remove my thoughts on a post if required.


ECCEPTANCE CRITERIA:

  1. The delete option should only be available to the user who shared the experience. Other users should not have the ability to delete someone else's shared experiences.

  2. The user can see the delete below to each shared experience/comment the user has made on the lizard post. The delete option should be easily identifiable, such as an icon.

  3. The user should be redirected to the Delete page and see the confirmation message and the button to go back.

  4. When the user selects the delete option, he/she should be able to see a confirmation message to ensure the user intends to delete the shared experience.

zhannamatuzak commented 9 months ago

There was no fiels "approved" in the model.

experiences = lizard.experiences.filter(approved=True).order_by("-created_on")

So, deleted "approved=True".

image

zhannamatuzak commented 9 months ago

The delete option should only be available to the user who shared the experience. Other users should not have the ability to delete someone else's shared experiences.

Image

Image

zhannamatuzak commented 9 months ago

The user can see the delete below to each shared experience/comment the user has made on the lizard post. The delete option should be easily identifiable, such as an icon.

Image

zhannamatuzak commented 9 months ago
  1. The user should be redirected to the Delete page and see the confirmation message and the button to go back.

Image

zhannamatuzak commented 9 months ago
  1. When the user selects the delete option, he/she should be able to see a confirmation message to ensure the user intends to delete the shared experience.

Image

Image