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

Allow writing product options via API #7811

Merged
merged 1 commit into from Mar 23, 2017

Conversation

alcaeus
Copy link
Contributor

@alcaeus alcaeus commented Mar 23, 2017

Q A
Bug fix? no
New feature? yes
BC breaks? no
Related tickets first introduced in #7547
License MIT

This PR replaces #7547. It exposes the translations property for product options to the API. It also re-introduces creating, updating and deleting product options via the API, which was removed in #7482.

@@ -85,6 +93,246 @@ public function it_allows_showing_product_option()
}

/**
* @test
*/
public function it_does_not_allow_delete_product_option_if_it_does_not_exist()
Copy link
Member

Choose a reason for hiding this comment

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

it_does_not_allow_delete -> it_does_not_allow_to_delete

/**
* @test
*/
public function it_allows_delete_product_option()
Copy link
Member

Choose a reason for hiding this comment

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

it_allows_delete -> it_allows_deleting/it_allows_to_delete

/**
* @test
*/
public function it_allows_create_product_option_with_multiple_translations()
Copy link
Member

Choose a reason for hiding this comment

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

it_allows_create -> it_allows_to_create

@alcaeus
Copy link
Contributor Author

alcaeus commented Mar 23, 2017

Made the changes suggested - thanks for the quick approval!

@pjedrzejewski pjedrzejewski merged commit c83c240 into Sylius:master Mar 23, 2017
@pjedrzejewski
Copy link
Member

Thank you Andreas, nice work! We will also need documentation, could you submit a separate PR?

@alcaeus
Copy link
Contributor Author

alcaeus commented Mar 23, 2017

@pjedrzejewski Sure thing, I'd combine it with the docs for #7816 if that's alright with you?

@alcaeus alcaeus deleted the modify-product-options-api branch March 23, 2017 19:36
@pjedrzejewski
Copy link
Member

@alcaeus Sure!

pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
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.

None yet

4 participants