-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
ContentVersions.yml
45 lines (44 loc) · 3.21 KB
/
ContentVersions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
-
type: content_version
mode: delete
match: # Same as for Content update/delete/load actions
match_tolerate_misses: false # Same too
match_versions:
# NB: the migration will not fail if there are no matching versions found for the currently matched Contents
status: string|array # accepted values: draft, archived, published
version: xxx # If an integer or array of integers: remove those specific versions
or: # match any of the conditions below
- _condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
- _condition_: value # where _condition can be any of ones specified above, including 'and' and 'or'
and: # match all of the conditions below
- _condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
- _condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
not: # matches elements NOT satisfying the wrapped condition
_condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
references: # Optional. See Contents.yml for allowed values, except 'attributes', plus: version_no, version_status
expect: # Optional. See Contents.yml for details
if: # Optional. If set, the migration step will be skipped unless the condition is matched
"reference:_ref_name": # name of a reference to be used for the test
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies
-
type: content_version
mode: load
match: # Same as for Content update/delete/load actions
match_tolerate_misses: false # Same too
match_versions:
# NB: the migration will not fail if there are no matching versions found for the currently matched Contents
status: string|array # accepted values: draft, archived, published
version: xxx # If an integer or array of integers: match those specific versions
or: # match any of the conditions below
- _condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
- _condition_: value # where _condition can be any of ones specified above, including 'and' and 'or'
and: # match all of the conditions below
- _condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
- _condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
not: # matches elements NOT satisfying the wrapped condition
_condition_: value # where _condition_ can be any of ones specified above, including 'and' and 'or'
references: # Optional. See Contents.yml for allowed values, except 'attributes', plus: version_no, version_status
expect: # Optional. See Contents.yml for details
if: # Optional. If set, the migration step will be skipped unless the condition is matched
"reference:_ref_name": # name of a reference to be used for the test
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies