-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
API: Product Reviews #55 #19266
API: Product Reviews #55 #19266
Conversation
Hi @sky-hub. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @sky-hub |
Hello @okobchenko, sorry, fortgot about it. I would like to point that this PR is just a preview at what needs to be done on the long run. There is also the option to define APIs and implement them but I wouldn't take that approach since the current implementation is far from what it should be and most probably it would complicate things on long term if we keep postpone refactoring it. I have added some TODOs where I considered that code needs to be updated. |
808fe77
to
c99ee08
Compare
312e7ab
to
ade2e37
Compare
Hi @sky-hub are you still working on this pull request? Please let us know when it's ready for review. |
Hi @sivaschenko , @sky-hub needed some support to define main direction of current implementation. We had several talks with @paliarush and I guess now @sky-hub could proceed with this PR 👍 |
e644a30
to
f7cffd5
Compare
Due to holidays, etc, this PR is going to be put on hold until 15th of January 2019. I will continue working after that date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sky-hub thanks for the contribution! I've done a partial brief review at this point, however, as I can see there is still work to be done on this pull request. Please see my code review comments
app/code/Magento/Review/Model/ResourceModel/Review/CreateMultiple.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Review/Model/ResourceModel/Review/CreateMultiple.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Review/Model/ResourceModel/Review/CreateMultiple.php
Outdated
Show resolved
Hide resolved
Hi @sky-hub , are you still working on the pull request? |
Yes. Starting from today I will continue working on this pull request. |
66c2d8b
to
d7ff784
Compare
454aaf2
to
9156188
Compare
Hi @sky-hub are you still planning to continue the great work you are doing on this topic? I am currently facing a requirement @ one project to have such Reviews API in place. Would be good to know if you are planning to finish this PR :) Thank you in advance for your replay! |
Unfortunately, due to changes in requirements this feature was implemented in the scope #27882 based on architectural design from magento/architecture#298. |
Hi @sky-hub, thank you for your contribution! |
Hi @sky-hub. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
- resolve conflicts
Hi @sky-hub, thank you for your contribution! |
Description (*)
Service contracts for product reviews.
As discussed with @paliarush, defined services are implemented similar to MSI implementation and allow bulk operations.
The difference in this implementation is that the service is returning a Response object containing success, failed, retryable object and errors associated to failed or retryable objects. Currently retyrable objects are not returned as I could not identify a specific error for this case (a database deadlock may be a case but furher research is needed)
Ex: magic method $review->getStatusId() was forwarded to $review->getStatus()
Notes:
Fixed Issues (if relevant)
Manual testing scenarios (*)
GET Reviews: make a POST request to https://store.domain/rest/V1/get-reviews?searchCriteria[filterGroups][0][filters][0][field]=sku&searchCriteria[filterGroups][0][filters][0][value]='SOME-SKU'
DELETE Reviews: make a POST request to https://store.domain/rest/V1/delete-reviews with the following data:
Contribution checklist (*)