Skip to content

Commit 135e3d5

Browse files
authored
Merge pull request #85 from the-grid/reorder_publish_flag
Add publish flag to reordering
2 parents c7121e2 + 11b3336 commit 135e3d5

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

examples/reorderitems.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,51 @@
4040
- "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
4141
site: "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
4242
published: false
43+
-
44+
_valid: true
45+
_name: "valid-publish"
46+
_data:
47+
items:
48+
- "bdcc6765-114a-4184-977d-b01d3132ef69"
49+
- "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
50+
site: "the-domains/example.net"
51+
published: true
52+
publish: true
53+
-
54+
_valid: false
55+
_name: "invalid-publish-no-site"
56+
_data:
57+
items:
58+
- "bdcc6765-114a-4184-977d-b01d3132ef69"
59+
- "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
60+
published: true
61+
publish: true
62+
-
63+
_valid: false
64+
_name: "invalid-publish-wrong-site"
65+
_data:
66+
items:
67+
- "bdcc6765-114a-4184-977d-b01d3132ef69"
68+
- "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
69+
site: "6be70565-709e-4ee3-9e73-7113175b8101"
70+
published: true
71+
publish: true
72+
-
73+
_valid: false
74+
_name: "invalid-publish-empty-site"
75+
_data:
76+
items:
77+
- "bdcc6765-114a-4184-977d-b01d3132ef69"
78+
- "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
79+
site: ""
80+
published: true
81+
publish: true
82+
-
83+
_valid: false
84+
_name: "invalid-publish-no-published"
85+
_data:
86+
items:
87+
- "bdcc6765-114a-4184-977d-b01d3132ef69"
88+
- "b04d3a7f-689f-4bc5-a7c6-304b39f271f3"
89+
site: "the-domains/example.net"
90+
publish: true

schemata/reorderitems.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ properties:
1919
published:
2020
description: "Filter reordered items by published status"
2121
type: boolean
22+
publish:
23+
description: "Publish items after reordering"
24+
type: boolean
2225
required: [items]
26+
dependencies:
27+
publish: [site, published]

0 commit comments

Comments
 (0)