Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #2264 Migrate path aliases for nodes if they exist, otherwise turn on Pathauto. #2281

Merged
merged 7 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions modules/custom/az_migration/migrations/az_node_carousel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,19 @@ process:
changed: changed
promote: promote
sticky: sticky

path/pathauto:
-
plugin: skip_on_empty
- plugin: str_replace
source: alias
method: process
-
plugin: default_value
default_value: 0

path/alias:
-
plugin: skip_on_empty
regex: true
search: /.$/
replace: 0
- plugin: default_value
source: alias
method: process
default_value: 1
trackleft marked this conversation as resolved.
Show resolved Hide resolved
strict: true
- plugin: callback
callable: intval
path/alias:
plugin: skip_on_empty
source: alias
method: process
24 changes: 14 additions & 10 deletions modules/custom/az_migration/migrations/az_node_event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,22 @@ process:
changed: changed
promote: promote
sticky: sticky

path/pathauto:
-
plugin: skip_on_empty
- plugin: str_replace
source: alias
method: process
-
plugin: default_value
default_value: 0

path/alias: alias

regex: true
search: /.$/
replace: 0
- plugin: default_value
source: alias
default_value: 1
strict: true
- plugin: callback
callable: intval
path/alias:
plugin: skip_on_empty
source: alias
method: process
field_az_event_category:
-
plugin: migration_lookup
Expand Down
26 changes: 13 additions & 13 deletions modules/custom/az_migration/migrations/az_node_flexible_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,22 @@ process:
changed: changed
promote: promote
sticky: sticky

path/pathauto:
-
plugin: skip_on_empty
- plugin: str_replace
source: alias
method: process
-
plugin: default_value
default_value: 0

path/alias:
-
plugin: skip_on_empty
regex: true
search: /.$/
replace: 0
- plugin: default_value
source: alias
method: process

default_value: 1
strict: true
- plugin: callback
callable: intval
path/alias:
plugin: skip_on_empty
source: alias
method: process
field_az_page_category:
-
plugin: migration_lookup
Expand Down
25 changes: 13 additions & 12 deletions modules/custom/az_migration/migrations/az_node_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,19 @@ process:
changed: changed
promote: promote
sticky: sticky

path/pathauto:
-
plugin: skip_on_empty
- plugin: str_replace
source: alias
method: process
-
plugin: default_value
default_value: 0

path/alias:
-
plugin: skip_on_empty
regex: true
search: /.$/
replace: 0
- plugin: default_value
source: alias
method: process
default_value: 1
strict: true
- plugin: callback
callable: intval
path/alias:
plugin: skip_on_empty
source: alias
method: process
26 changes: 13 additions & 13 deletions modules/custom/az_migration/migrations/az_node_person.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,22 @@ process:
changed: changed
promote: promote
sticky: sticky

path/pathauto:
-
plugin: skip_on_empty
- plugin: str_replace
source: alias
method: process
-
plugin: default_value
default_value: 0

path/alias:
-
plugin: skip_on_empty
regex: true
search: /.$/
replace: 0
- plugin: default_value
source: alias
method: process

default_value: 1
strict: true
- plugin: callback
callable: intval
path/alias:
plugin: skip_on_empty
source: alias
method: process
field_az_person_category:
-
plugin: migration_lookup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ process:
changed: changed
promote: promote
sticky: sticky

path/pathauto:
-
plugin: skip_on_empty
- plugin: str_replace
source: alias
method: process
-
plugin: default_value
default_value: 0

path/alias:
-
plugin: skip_on_empty
regex: true
search: /.$/
replace: 0
- plugin: default_value
source: alias
method: process

default_value: 1
strict: true
- plugin: callback
callable: intval
path/alias:
plugin: skip_on_empty
source: alias
method: process
field_az_main_content/target_id:
-
plugin: migration_lookup
Expand Down