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

Adding validation to the AddProductReview endpoint #388

Merged
merged 7 commits into from
Feb 13, 2019

Conversation

mamazu
Copy link
Member

@mamazu mamazu commented Feb 4, 2019

In Sylius product reviews have to have a rating between 0 and 5. Anything else is out of range. I added validation. This should also close #160.

@mamazu mamazu requested a review from a team as a code owner February 4, 2019 09:51
@mamazu
Copy link
Member Author

mamazu commented Feb 5, 2019

The reason why this fails is because the master also fails. Probably the dependencies have changes the way taxons are handled. We might want to consider running the unit tests every day to track those changes. Or what do you think @lchrusciel?

@Zales0123
Copy link
Member

This is the same reason as in #385, there must have been some changes in Symfony or in serializer :/ I don't know, to be honest, how to fix it, although I've spent some time debugging it cc @pamil @lchrusciel 🚁

@mamazu
Copy link
Member Author

mamazu commented Feb 10, 2019

Fixed

Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

Can you just adjust this one indention? Thanks a lot!

tests/DependencyInjection/ConfigurationTest.php Outdated Show resolved Hide resolved
@lchrusciel lchrusciel merged commit a35662d into Sylius:master Feb 13, 2019
@lchrusciel
Copy link
Member

Thank you, @mamazu! 🥇

@mamazu mamazu deleted the status branch February 13, 2019 12:41
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.

[Bug] Review rate validation
3 participants