Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

customizable_options.values contains everything but value(s) #712

Merged
merged 8 commits into from
Jul 30, 2019

Conversation

XxXgeoXxX
Copy link
Member

Description (*)

Original Issue: #698

according to the issue #474 and PR #525
The field 'value' was moved to 'CartItemSelectedOptionValuePrice'
I debugged and rechecked all product custom options and field 'value' is missed and always return NULL.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@naydav
Copy link
Contributor

naydav commented Jun 14, 2019

@TomashKhamlai
Copy link
Contributor

@naydav, value is null now.
The full response is:

{
  "data": {
    "addVirtualProductsToCart": {
      "cart": {
        "items": [
          {
            "id": "4",
            "quantity": 1,
            "customizable_options": [
              {
                "id": 1,
                "label": "Multiple",
                "values": [
                  {
                    "id": 6,
                    "value": null,
                    "label": "Opt-multiple-1"
                  },
                  {
                    "id": 6,
                    "value": null,
                    "label": "Opt-multiple-2"
                  }
                ]
              }
            ],
            "product": {
              "sku": "Virtual-Product-281557499732285-multiple"
            }
          }
        ]
      }
    }
  }
}

@XxXgeoXxX
Copy link
Member Author

class app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/CustomizableOptionValue/Multiple.php has missed param 'value' in returned data
@TomashKhamlai
Could you check?

@XxXgeoXxX XxXgeoXxX added Progress: ready for qa Add this in any case when you need some feedback, even if automated tests are failing and removed QA failed labels Jul 10, 2019
@TomashKhamlai TomashKhamlai added QA in progress We are checking and removed Progress: ready for qa Add this in any case when you need some feedback, even if automated tests are failing labels Jul 10, 2019
@XxXgeoXxX
Copy link
Member Author

@naydav
changes in schema.graphs were reverted
Tests for operation 'Add product with customizable options' have already existed.
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/AddSimpleProductWithCustomOptionsToCartTest.php
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/AddVirtualProductWithCustomOptionsToCartTest.php

Copy link
Contributor

@lenaorobei lenaorobei left a comment

Choose a reason for hiding this comment

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

@XxXgeoXxX there might be some issues with tests if they didn't fail before the fix. Could you please re-check it. Thanks.

@lenaorobei lenaorobei changed the base branch from 2.3-develop to 1-graphql-develop-prs-fast July 26, 2019 17:52
@lenaorobei lenaorobei changed the base branch from 1-graphql-develop-prs-fast to 2.3-develop July 26, 2019 17:52
@magento magento deleted a comment from magento-cicd2 Jul 26, 2019
@magento-engcom-team
Copy link
Contributor

Hi @lenaorobei, thank you for the review.
ENGCOM-5496 has been created to process this Pull Request
✳️ @lenaorobei, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@ghost
Copy link

ghost commented Jul 30, 2019

Hi @XxXgeoXxX, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

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

Successfully merging this pull request may close these issues.

5 participants