Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Api] Product has last 3 reviews by default#12483

Merged
GSadee merged 6 commits into
Sylius:masterfrom
SirDomin:last-three-reviews
Mar 30, 2021
Merged

[Api] Product has last 3 reviews by default#12483
GSadee merged 6 commits into
Sylius:masterfrom
SirDomin:last-three-reviews

Conversation

@SirDomin
Copy link
Copy Markdown
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets
License MIT

@SirDomin SirDomin requested a review from a team as a code owner March 26, 2021 07:47
@probot-autolabeler probot-autolabeler Bot added the API APIs related issues and PRs. label Mar 26, 2021
@SirDomin SirDomin force-pushed the last-three-reviews branch 3 times, most recently from 8fefe1a to 47965c3 Compare March 26, 2021 08:12
Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Serializer/ProductSerializer.php Outdated
@SirDomin SirDomin force-pushed the last-three-reviews branch from 47965c3 to 5f0ce40 Compare March 26, 2021 08:40
Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/serialization/ProductReview.xml Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Serializer/ProductSerializer.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/serialization/ProductReview.xml Outdated
<attribute name="createdAt">
<group>product_review:read</group>
</attribute>
<group>product_review:read</group>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you've touched this place anyway, can we adjust previous serialization groups to admin:product_review:read? Can be done in separate PR

Comment thread src/Sylius/Bundle/ApiBundle/Serializer/ProductSerializer.php Outdated
Copy link
Copy Markdown
Member

@GSadee GSadee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a need for adding a filter with sorting product reviews

Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/serialization/ProductReview.xml Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Serializer/ProductSerializer.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/services.xml Outdated
@SirDomin SirDomin force-pushed the last-three-reviews branch 2 times, most recently from 1fa4671 to 21b91f5 Compare March 29, 2021 11:47
Copy link
Copy Markdown
Member

@GSadee GSadee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the rebase is needed

Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
Comment thread src/Sylius/Behat/Resources/config/services/contexts/api/shop.xml Outdated
@SirDomin SirDomin force-pushed the last-three-reviews branch from 21b91f5 to 8e74ab7 Compare March 29, 2021 13:27
@SirDomin SirDomin force-pushed the last-three-reviews branch from d71210c to 849ca13 Compare March 30, 2021 05:51
@GSadee GSadee merged commit 9ff528f into Sylius:master Mar 30, 2021
@GSadee
Copy link
Copy Markdown
Member

GSadee commented Mar 30, 2021

Thank you, @SirDomin! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API APIs related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants