This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
[256] Fixed variant collection #331
Merged
magento-engcom-team
merged 5 commits into
2.3-develop
from
256_configurable_products_variants_attributes_are_empty
Feb 12, 2019
Merged
[256] Fixed variant collection #331
magento-engcom-team
merged 5 commits into
2.3-develop
from
256_configurable_products_variants_attributes_are_empty
Feb 12, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@VitaliyBoyko Looks like we need to cover functionality with API-functional test |
I've added an additional check if attributes array contains an item. |
…re empty -- fix static tests
…re empty -- fix static tests
@VitaliyBoyko
these tests are faliled on Jenkins |
…le_products_variants_attributes_are_empty
naydav
suggested changes
Feb 6, 2019
@@ -35,12 +45,12 @@ public function resolve( | |||
$data = []; | |||
foreach ($value['options'] as $option) { | |||
$code = $option['attribute_code']; | |||
if (!isset($value['product'][$code])) { | |||
if (!isset($value['product']['model'][$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.
Looks like we have a problem at this place because $value['product']['model']
contains Product model object
magento-engcom-team
pushed a commit
that referenced
this pull request
Feb 11, 2019
naydav
added a commit
that referenced
this pull request
Feb 11, 2019
Hi @VitaliyBoyko, thank you for your contribution! |
naydav
deleted the
256_configurable_products_variants_attributes_are_empty
branch
April 12, 2019 19:35
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (*)
This PR fixed empty response for variant in ConfigurableProduct with sample data.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Request
Response
Contribution checklist (*)