Skip to content

Commit

Permalink
Remove status from custom view draft (#428)
Browse files Browse the repository at this point in the history
* refactor: remove status from custom view draft

* chore: add changeset
  • Loading branch information
Rhotimee authored Nov 9, 2023
1 parent 9040a6b commit 64de71d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-turkeys-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-test-data/custom-view': patch
---

Remove status from custom view draft
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ describe('builder', () => {
oAuthScopes: expect.arrayContaining([expect.any(String)]),
}),
]),
status: 'DRAFT',
type: 'CustomPanel',
typeSettings: expect.objectContaining({
size: expect.stringMatching(/^(SMALL|LARGE)$/),
Expand Down Expand Up @@ -52,7 +51,6 @@ describe('builder', () => {
oAuthScopes: expect.arrayContaining([expect.any(String)]),
}),
]),
status: 'DRAFT',
type: 'CustomPanel',
typeSettings: expect.objectContaining({
size: expect.stringMatching(/^(SMALL|LARGE)$/),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const generator = Generator<TCustomViewDraft>({
CustomViewPermission.presets.ViewOnlyPermissions(),
CustomViewPermission.presets.ManageOnlyPermissions(),
]),
status: 'DRAFT',
type: fake((f) => f.helpers.arrayElement(['CustomPanel'])),
typeSettings: fake((f) => CustomViewTypeSettings.random()),
},
Expand Down
2 changes: 1 addition & 1 deletion models/custom-view/src/custom-view/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type TCustomViewGraphql = TCustomView & {

export type TCustomViewDraft = Omit<
TCustomView,
'id' | 'createdAt' | 'updatedAt' | 'ownerId'
'id' | 'createdAt' | 'updatedAt' | 'ownerId' | 'status'
>;
export type TCustomViewDraftGraphql = TCustomViewDraft & {
__typename: 'CustomViewDraftDataInput';
Expand Down

0 comments on commit 64de71d

Please sign in to comment.