Skip to content

Commit

Permalink
Add withOwnerId directive to searchOrderForm query (#648)
Browse files Browse the repository at this point in the history
[Jira Issue](https://vtex-dev.atlassian.net/browse/CHK-2179)

#### What problem is this solving?

The `searchOrderForm` query did not include the
CheckoutOrderFormOwnership (lacking withOwnerId directive).

#### How to test it?

It is linked in `qastore` workspace `rodolfo`.

#### Screenshots or example usage:

Same as #633 .
  • Loading branch information
rodolfoams authored Jun 1, 2023
1 parent 2182fdc commit 4f095e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Use `withOwnerId` directive on `searchOrderForm` query.

## [2.162.0] - 2023-05-23

### Fixed
Expand Down
18 changes: 12 additions & 6 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,17 @@ type Query {
"""
returns a certain checkout cart details
"""
searchOrderForm(orderFormId: String!): OrderForm @cacheControl(scope: PRIVATE)
searchOrderForm(orderFormId: String!): OrderForm
@cacheControl(scope: PRIVATE)
@withOwnerId

"""
DEPRECATED
"""
orders: [Order] @cacheControl(scope: PRIVATE) @withOrderFormId
@deprecated(
reason: "Use orders endpoint of vtex.orders-graphql instead"
)
orders: [Order]
@cacheControl(scope: PRIVATE)
@withOrderFormId
@deprecated(reason: "Use orders endpoint of vtex.orders-graphql instead")

"""
Returns a specified user order
Expand Down Expand Up @@ -614,7 +616,11 @@ type Mutation {
reason: "Field is no longer needed. Checkout cookie is automatically taken into account now"
)
items: [OrderFormItemInput]
): OrderForm @withSegment @withOrderFormId @withOwnerId @cacheControl(scope: PRIVATE)
): OrderForm
@withSegment
@withOrderFormId
@withOwnerId
@cacheControl(scope: PRIVATE)

"""
Used to update the CL entity on masterData.
Expand Down

0 comments on commit 4f095e4

Please sign in to comment.