Skip to content

GraphQl. Mutation: customerOrders query and gift_message attribute #28957

Closed
@atwixfirster

Description

@atwixfirster

Preconditions (*)

Error Can't load gift message for order is returned when order does not have a gift_message:

001

Steps to reproduce (*)

  1. Magento (2.4-develop) with a sample data
  2. Generate customer token:
mutation {
  generateCustomerToken(
    email: "[email protected]"
    password: "[email protected]"
  ) {
    token
  }
}
  1. Retrieve customer orders:
query {
    customerOrders {
        items {
            order_number
            gift_message {
                to
                from
                message
            }
        }
    }
}

Expected result (*)

We do not need to have a Can't load gift message for order error in the response when an order does not have gift_message.

Actual result (*)

There is a Can't load gift message for order error in the response when an order does not have gift_message.


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: GiftMessageGraphQlIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions