Skip to content

Commit

Permalink
feat(order): Add display_id to order table (medusajs#7242)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos R. L. Rodrigues <[email protected]>
  • Loading branch information
olivermrbl and carlos-r-l-rodrigues authored May 5, 2024
1 parent 5443c69 commit cf9605f
Show file tree
Hide file tree
Showing 6 changed files with 624 additions and 123 deletions.
1 change: 1 addition & 0 deletions integration-tests/modules/__tests__/order/order.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ medusaIntegrationTestRunner({
id: expect.any(String),
status: "pending",
version: 1,
display_id: 1,
summary: expect.objectContaining({
// TODO: add all summary fields
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/medusa/src/api-v2/admin/orders/query-config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const defaultAdminOrderFields = [
"id",
"display_id",
"status",
"version",
"summary",
Expand All @@ -10,6 +11,7 @@ export const defaultAdminOrderFields = [

export const defaultAdminRetrieveOrderFields = [
"id",
"display_id",
"status",
"version",
"summary",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ moduleIntegrationTestRunner({
const expectation = expect.objectContaining({
id: expect.stringContaining("order_"),
version: 1,
display_id: 1,
summary: expect.objectContaining({
// TODO: add all summary fields
}),
Expand Down Expand Up @@ -203,6 +204,7 @@ moduleIntegrationTestRunner({
const getOrder = await service.retrieve(createdOrder.id, {
select: [
"id",
"display_id",
"version",
"items.id",
"summary",
Expand Down
Loading

0 comments on commit cf9605f

Please sign in to comment.