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

feat: delete review #2702

Open
wants to merge 2 commits into
base: feat/reviews-and-ratings
Choose a base branch
from
Open

Conversation

Guilera
Copy link
Collaborator

@Guilera Guilera commented Feb 26, 2025

What's the purpose of this pull request?

To add the deleteProductReview mutation on the API

How it works?

Passing the reviewId it's possible to delete a review.

Important

Authentication is required

Important

It's only possible to delete a review that you have ownership

How to test it?

run api and core packages locally with the following command:

npm run dev -- --filter="./packages/api/**" --filter="./packages/core/**"

open your browser and adds the VtexIdclientAutCookie_storeframework cookie

run the following mutation and fill it with the correct reviewId

mutation {
  deleteProductReview(reviewId: "")  
}

References

FEATURE BRANCH

API DOC

JIRA-SFS-2132

@Guilera Guilera requested a review from a team as a code owner February 26, 2025 20:47
@Guilera Guilera requested review from lucasfp13, pedromtec, eduardoformiga and lariciamota and removed request for a team February 26, 2025 20:47
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant