Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Multiple fixes for configurable products and add tests. #158

Open
wants to merge 6 commits into
base: 8.x-1.x
Choose a base branch
from

Conversation

nikunjkotecha
Copy link

No description provided.

nikunj added 6 commits May 30, 2019 21:07
Allow adding item to cart with multiple parents.
Remove obsolete code related to stock rework.
Update code to handle product tree, make it fast, efficient and less memory consuming.
$sku_ids = $query->execute();

if (count($sku_ids) > 1) {
$this->failedSkus[] = $product['sku'] . '(Duplicate product SKU found.)';
Copy link
Author

Choose a reason for hiding this comment

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

not sure why would we fail product update, removed this code to ensure we can update products

size:
label: 'Size'
type: integer
attribute_set:
Copy link
Author

Choose a reason for hiding this comment

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

this schema change was required to make sure tests work fine for dynamically added fields

Schema errors for acm_sku.configurable_form_settings with the following errors: acm_sku.configurable_form_settings:attribute_weights.default.color missing schema

@@ -8,3 +8,5 @@ product_publish: false
api_version: v2
filter_root_category: false
text_format: rich_text
delete_disabled_skus: true
Copy link
Author

Choose a reason for hiding this comment

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

missing config fields and schema was failing tests, haven't added update hook specifically for this one as I'm setting default values here, let me know if update hook is required (note: they are already editable via admin form)

@nikunjkotecha
Copy link
Author

Travis failure is not related to changes in PR or new tests added in PR

PHPUnit tests passed:

Time: 5.51 minutes, Memory: 16.00MB
OK (66 tests, 214 assertions)

Failure:

Running public Behat tests for drupal/acquia_commercemanager
------------------------------------------------------------
 // Resetting test fixture                                                      
> '/usr/bin/git' 'checkout' '--force' 'fresh-fixture'
HEAD is now at 9dce1ed... Enabled Acquia modules.
> '/usr/bin/git' 'clean' '--force' '-d'
Removing docroot/sites/simpletest/
 // Running tests                                                               
> '/home/travis/build/acquia/orca/vendor/bin/behat' '--colors' '--config=/home/travis/build/acquia/orca-build/docroot/modules/contrib/acquia_commercemanager/behat.yml' '--tags=~@orca_ignore'
In ExtensionManager.php line 194:
                                                                       
  `Behat\MinkExtension` extension file or class could not be located.  
                                                                       
The command "../orca/bin/travis/script.sh" exited with 1.

@nikunjkotecha
Copy link
Author

@miromichalicka @sdelbosc any feedback on this one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant