Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[E2E] - Add ability to update reviews #47

Open
deepakvenkat opened this issue Oct 23, 2021 · 0 comments
Open

[E2E] - Add ability to update reviews #47

deepakvenkat opened this issue Oct 23, 2021 · 0 comments
Assignees
Labels

Comments

@deepakvenkat
Copy link
Member

As a user who has already submitted a review for a space, I should be presented with an edit review page when I go to create review for the same space, so that I can change my review if needed. Currently you cannot edit it, it tells you the review already exists, and doesn't give an option for editing.

AC

  • BE: Add an authenticated GET /users/:id/spaces/:id/reviews route which returns user's review for that page or empty response

  • FE: When user navigates to /spaces/:id/reviews/new call the above route.

    • If that returns data, display edit review page
    • Else display the create review page (already exists)
  • When user updates the review, call the PUT /reviews/:id page to update the review.

Pre-requisites

  • Copy for the edit review page
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants