Skip to content

Commit

Permalink
Add docs about 'if' tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 10, 2018
1 parent bb62b82 commit e4c237c
Show file tree
Hide file tree
Showing 19 changed files with 171 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Resources/doc/DSL/ContentTypeGroups.yml
Expand Up @@ -9,6 +9,9 @@
attribute: attributeId # An attribute to get the value of for the reference.
# Supports content type group id and identifier
# The shorthand 'id' can be used instead of 'content_type_group_id'
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

-
type: content_type_group
Expand Down Expand Up @@ -38,6 +41,9 @@
# Supports content type group id and identifier
# The shorthand 'id' can be used instead of 'content_type_group_id'
# 'count' can be used to set a reference to the number of items matched
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

-
# Delete one (or more) content type group
Expand All @@ -60,3 +66,6 @@
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 above for allowed values
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
12 changes: 12 additions & 0 deletions Resources/doc/DSL/ContentTypes.yml
Expand Up @@ -123,6 +123,9 @@
# attributes.title.required (boolean value)
# attributes.ezobjectrelationlist."field-settings".selectionContentTypes.length(@) (nr. of cotent-types allowed in an object-relations field)
# (for the full syntax supported, see jmespath)
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

-
type: content_type
Expand Down Expand Up @@ -186,6 +189,9 @@
# The shorthand 'id' can be used instead of 'content_type_id'
# The shorthand 'identifier' can be used instead of 'content_type_identifier'
# 'count' can be used to set a reference to the number of items matched
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

-
# Delete one or more content type(s)
Expand All @@ -209,6 +215,9 @@
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 above for allowed values
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

# Attribute examples.

Expand Down Expand Up @@ -269,3 +278,6 @@
mode: load
match: # See docs above for update and delete
lang: xxx-YY # Optional, will fallback to default language if not provided (--default-language option or 'eng-GB' by default)
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
3 changes: 3 additions & 0 deletions Resources/doc/DSL/ContentVersions.yml
Expand Up @@ -5,3 +5,6 @@
versions: xxx # If an integer or array of integers: remove those specific versions
# If a negative integer -X: remove *all* versions except the last X (ie: -1 = leave only the last version)
references: # Optional. See Contents.yml for allowed values
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
12 changes: 12 additions & 0 deletions Resources/doc/DSL/Contents.yml
Expand Up @@ -101,6 +101,9 @@
# attributes.objectrelationlistattr.destinationContentIds[0] (1st element in an object-relation)
# attributes.objectrelationlistattr.destinationContentIds.length(@) (nr. of elements in an object-relation)
# (for the full syntax supported, see jmespath)
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

-
type: content
Expand Down Expand Up @@ -172,6 +175,9 @@
# attributes.objectrelationlistattr.destinationContentIds.length(@) (nr. of elements in an object-relation)
# (for the full syntax supported, see jmespath)
# 'count' can be used to set a reference to the number of items matched
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

-
type: content
Expand Down Expand Up @@ -211,6 +217,9 @@
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 above for allowed values
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

-
type: content
Expand Down Expand Up @@ -264,3 +273,6 @@
# attributes.objectrelationlistattr.destinationContentIds.length(@) (nr. of elements in an object-relation)
# (for the full syntax supported, see jmespath)
# 'count' can be used to set a reference to the number of items matched
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
25 changes: 25 additions & 0 deletions Resources/doc/DSL/Files.yml
Expand Up @@ -10,6 +10,9 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: size, uid, gid, ctime, mtime, atime, body
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

-
# Check file existence and save the information into a reference
Expand All @@ -22,6 +25,9 @@
-
identifier: referenceId # A string used to identify the reference
attribute: exists # only one type of attribute is supported: exists
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

-
type: file
Expand All @@ -39,6 +45,9 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: size, uid, gid, ctime, mtime, atime, body
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

-
type: file
Expand All @@ -55,6 +64,9 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: size, uid, gid, ctime, mtime, atime, body
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

-
type: file
Expand All @@ -71,6 +83,9 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: size, uid, gid, ctime, mtime, atime, body
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

-
type: file
Expand All @@ -83,6 +98,9 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: size, uid, gid, ctime, mtime, atime, body
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

-
type: file
Expand All @@ -97,6 +115,10 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference *taken from the source file*.
# Supports: size, uid, gid, ctime, mtime, atime, body
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

-
type: file
mode: move
Expand All @@ -110,3 +132,6 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference *taken from the source file*.
# Supports: size, uid, gid, ctime, mtime, atime, body
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
3 changes: 3 additions & 0 deletions Resources/doc/DSL/HTTP.yml
Expand Up @@ -21,6 +21,9 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: status_code, reason_phrase, protocol_version, body, body_size
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

# *** Setting it up: ***
#
Expand Down
6 changes: 6 additions & 0 deletions Resources/doc/DSL/Languages.yml
Expand Up @@ -11,9 +11,15 @@
identifier: referenceId # A string used to identify the reference
attribute: attributeId # An attribute to get the value of for the reference.
# Supports: language_id, enabled, language_code, name
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

-
# Delete an existing language
type: language
mode: delete
lang: abc-DE
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
12 changes: 12 additions & 0 deletions Resources/doc/DSL/Locations.yml
Expand Up @@ -39,6 +39,9 @@
# depth, is_hidden, main_language_code, main_location_id, main_language_code,
# modification_date, name, owner_id, parent_location_id, path, priority,
# publication_date, section_id, sort_field, sort_order)
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

-
type: location
Expand Down Expand Up @@ -116,6 +119,9 @@
# modification_date, name, owner_id, parent_location_id, path, priority,
# publication_date, section_id, sort_field, sort_order)
# 'count' can be used to set a reference to the number of items matched
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

-
type: location
Expand Down Expand Up @@ -171,6 +177,9 @@
# modification_date, name, owner_id, parent_location_id, path, priority,
# publication_date, section_id, sort_field, sort_order)
# 'count' can be used to set a reference to the number of items matched
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

# Same as location delete, but send to the trash instead
-
Expand Down Expand Up @@ -233,3 +242,6 @@
# modification_date, name, owner_id, parent_location_id, path, priority,
# publication_date, section_id, sort_field, sort_order)
# 'count' can be used to set a reference to the number of items matched
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
3 changes: 3 additions & 0 deletions Resources/doc/DSL/Mails.yml
Expand Up @@ -17,3 +17,6 @@
return_path: string # references will be resolved
reply_to: string # references will be resolved
sender: string # references will be resolved
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
18 changes: 18 additions & 0 deletions Resources/doc/DSL/ObjectStatesAndGoups.yml
Expand Up @@ -16,6 +16,9 @@
attribute: attribute # An attribute to get the value of for the reference.
# Supports: object_state_group_id, object_state_group_identifier
# The shorthand 'id' can be used instead of 'object_state_group_id'
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

-
mode: update
Expand Down Expand Up @@ -52,6 +55,9 @@
# Supports: object_state_group_id, object_state_group_identifier
# The shorthand 'id' can be used instead of 'object_state_group_id'
# 'count' can be used to set a reference to the number of items matched
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

-
# The users which are not assigned to other groups will be deleted.
Expand All @@ -74,6 +80,9 @@
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 above for allowed values
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

-
mode: create
Expand All @@ -94,6 +103,9 @@
attribute: attribute # An attribute to get the value of for the reference.
# Supports object_state_id, priority
# The shorthand 'id' can be used instead of 'object_state_id'
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

-
mode: update
Expand Down Expand Up @@ -130,6 +142,9 @@
# Supports object_state_id, priority
# The shorthand 'id' can be used instead of 'object_state_id'
# 'count' can be used to set a reference to the number of items matched
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

-
mode: delete
Expand All @@ -151,3 +166,6 @@
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 above for allowed values
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
3 changes: 3 additions & 0 deletions Resources/doc/DSL/Processes.yml
Expand Up @@ -18,3 +18,6 @@
-
identifier: referenceId # A string used to identify the reference
attribute: # An attribute to get the value of for the reference. Supports: output, error_output, exit_code
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

0 comments on commit e4c237c

Please sign in to comment.