-
Notifications
You must be signed in to change notification settings - Fork 18
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
Product variants #413
Product variants #413
Conversation
-Added string type or message entity id to accomodate product variants
-Added product variant write and delete functionality to Catalog Storefront
-Modified GetProductVariants and DeleteProductVariants to the VariantService
-static fixes
-Added test -Improved elasticsearch deleteByQuery -Added some exceptions for empty variant response
-Test fix
-Removed old ConfigurableVariantsExtractor
-Changed entity_id type to string in order to pass product variant message correctly
-Fixed and added tests -Other minor fixes and improvements like syntax, docBlock, constants, etc.
@magento run all tests |
-Test fix
@magento run all tests |
-Extended searchEntries and other small fixes
@magento run all tests |
@magento run Integration Tests |
@@ -41,6 +41,8 @@ public function getAliasName(): string | |||
/** | |||
* Get current data source name of storage taking into account version of the data source. | |||
* | |||
* TODO: Adapt to work without store code |
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.
please create a separate ticket for this and mention id here
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.
Done
$this->productRepository->get('simple_10'), | ||
$this->productRepository->get('simple_20') |
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.
add product variants that represent 2 configurable options:
size: s, m, l
color: red, green, blue
so you'll have 9 simple products (variants):
s-red
s-green
s-blue
m-red
m-green
m-blue
l-red
l-green
l-blue
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.
Done
* @throws RuntimeException | ||
* @throws \Throwable | ||
*/ | ||
public function GetProductVariants(ProductVariantRequestInterface $request): ProductVariantResponseInterface |
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.
I have created configurable product with 2 options:
Color: red, green, blue
Size: s, m, l
result of this method is incorrect
Each variation should have 2 option values, but as we see on the screenshot only half of them have 2 options, the rest of them have 1 option value for some reason.
For id configurable/32/36
there's only one option value 32:color/Y29uZmlndXJhYmxlLzkzLzE0
however in storage we have 2 records
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.
Was a bug with max search size. Changed it to 5000 and added a ticket for pagination.
$simple1 = $this->getProduct(self::SIMPLE1_SKU); | ||
$simple1Id = $simple1->getId(); | ||
$simple2 = $this->getProduct(self::SIMPLE2_SKU); | ||
$simple2Id = $simple2->getId(); |
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.
add more variants to configurable product
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.
Done
@magento run all tests |
-Added more variants to tests -Fixed search bug
@magento run all tests |
@magento run all tests |
@magento run all tests |
@magento run WebApi Tests |
@magento run WebAPI Tests |
@magento run all tests |
1 similar comment
@magento run all tests |
@magento run Static tests |
@magento run Static Tests |
-Added debug statement to a test
@magento run WebAPI Tests |
This reverts commit 3ab8815.
@magento run WebAPI Tests |
-Added temp code for testing
@magento run WebAPI Tests |
@magento run Integration Tests |
@magento run Unit Tests |
This reverts commit 0c0fa11.
-Added debug code
@magento run all tests |
This reverts commit 7775563.
@magento run all tests |
@magento run Static Tests |
1 similar comment
@magento run Static Tests |
@magento import pr to magento-commerce/catalog-storefront-ce |
@RuslanKostiv1 the pull request successfully imported. |
Description (*)
Related Pull Requests
magento/commerce-data-export#8
https://github.com/magento-commerce/graphql/pull/4
https://github.com/magento-commerce/magento2-infrastructure/pull/1368
https://git.corp.adobe.com/ecp/api-protos/pull/22
duhon/magento-docker#30
Fixed Issues (if relevant)
Questions or comments
Code Review Checklist (*)
See detailed checklist