Skip to content

GraphQL Bundle Options could not resolved via customer query #34717

Closed
@larsroettig

Description

@larsroettig

Preconditions (*)

  1. Open Source 2.4.3

Steps to reproduce (*)

  1. Create Bundle Product with one Select
  2. Order this Bundle
  3. Use GraphQL to fetch Customer Orders

Expected result (*)

  • No Error for this Request

Actual result (*)

Problem is in

Options: Could be a string if you only one Bundle Option

Query

{
  customer {
    orders(pageSize: 20) {
      items {
        id
        order_date
        total {
          grand_total {
            value
            currency
          }
        }
        items {
          product_name
          ... on BundleOrderItem {
            id
            product_name
            entered_options {
              label
              value
            }
            selected_options {
              label
              value
            }
            bundle_options {
              id
              label
              uid
              values {
                product_sku
              }
            }
          }
          __typename
        }
        status
      }
    }
  }
}

Error

 "errors": [
    {
      "debugMessage": "Warning: implode(): Invalid arguments passed in module-bundle-graph-ql\/Model\/Resolver\/Order\/Item\/BundleOptions.php on line 151",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 26,
          "column": 13
        }
      ],
      "path": [
        "customer",
        "orders",
        "items",
        0,
        "items",
        0,
        "bundle_options"
      ]
    }
  ],

k3jeJxM


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: APIsComponent: BundleGraphQlComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S0A problem that is blocking the ability to work. An immediate fix is needed.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions