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

[Admin] Product variant features #5068

Merged
merged 7 commits into from
May 25, 2016

Conversation

lchrusciel
Copy link
Member

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

SKU removal will be also a part of this PR. SKU will be replaced by code, which is immutable.

Based on #4947

$this->addSql('DROP INDEX fulltext_search_idx ON sylius_search_index');
$this->addSql('CREATE INDEX fulltext_search_idx ON sylius_search_index (item_id)');
$this->addSql('DROP INDEX IDX_A29B523F9038C4 ON sylius_product_variant');
$this->addSql('ALTER TABLE sylius_product_variant ADD code VARCHAR(255) NOT NULL, DROP sku');

Choose a reason for hiding this comment

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

If you're determined to make this change then I suggest renaming the field to help people upgrading:

ALTER TABLE sylius_product_variant CHANGE sku code VARCHAR(255) NUL NULL

I still think it's a bad change.

People will confused Product.code and ProductVariant.code.

@lchrusciel lchrusciel force-pushed the product-variant-features branch 4 times, most recently from 5dd289b to f80d2e7 Compare May 23, 2016 14:24
@lchrusciel lchrusciel changed the title [WIP] [Admin] Product variant features [Admin] Product variant features May 23, 2016
@lchrusciel lchrusciel force-pushed the product-variant-features branch 5 times, most recently from b5c084b to acf3fca Compare May 24, 2016 11:10
@@ -0,0 +1,21 @@
@managing_product_variants
Feature: Adding a new product variant
In order to extend my merchandise
Copy link
Member

Choose a reason for hiding this comment

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

In order to sell different variations of a single product

Scenario: Browsing product variants in store
When I want to view all variants of this product
Then I should see 1 variant in the list

Copy link
Member

Choose a reason for hiding this comment

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

Extra blank line.

@lchrusciel lchrusciel force-pushed the product-variant-features branch 2 times, most recently from fd3feef to 195f08d Compare May 24, 2016 11:25
}

/**
* @Given /^I want to create a new product variant for (this product)$/
Copy link
Member

Choose a reason for hiding this comment

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

I want to create a new variant of this product

- sylius.behat.context.transform.shipping_method
- sylius.behat.context.transform.addressing


Copy link
Member

Choose a reason for hiding this comment

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

Extra blank line

@lchrusciel lchrusciel force-pushed the product-variant-features branch 2 times, most recently from bf4d2b1 to 4edc47f Compare May 24, 2016 13:12
@lchrusciel lchrusciel force-pushed the product-variant-features branch 6 times, most recently from d62c6e5 to 321d743 Compare May 25, 2016 07:24
*/
public function iDeleteTheVariantOfProduct(ProductVariantInterface $productVariant)
{
$this->iWantToViewAllVariantsOfThisProduct($productVariant->getObject());
Copy link
Contributor

Choose a reason for hiding this comment

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

getProduct()

@pjedrzejewski pjedrzejewski merged commit 9749277 into Sylius:master May 25, 2016
@pjedrzejewski
Copy link
Member

Thank you Łukasz! Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants