You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 responseFE: When user navigates to
/spaces/:id/reviews/new
call the above route.When user updates the review, call the
PUT /reviews/:id
page to update the review.Pre-requisites
The text was updated successfully, but these errors were encountered: