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

[DS-1640] - Update demo content for the Partners block after a block structure was changed #52

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
22 changes: 7 additions & 15 deletions config/install/migrate_plus.migration.y_lb_demo_block_partners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ langcode: en
status: true
dependencies:
module:
- lb_testimonials
- lb_partners_blocks
enforced:
module:
- y_lb_demo_content
Expand All @@ -22,31 +22,23 @@ source:
title: "Our Partners"
subtitle: "We put our all into making sure everyone has the opportunity to learn, grow and thrive. And we couldn't do it alone. Interested in making a positive impact in the community? Contact us for details."
content_ids:
- content_id: partner_1
- content_id: partner_2
- content_id: partner_3
- content_id: partner_4
- content_id: tier_1

- id: 381
uuid: '06466af2-9449-4494-8bb5-aed8b1452050'
title: "Our Sponsors"
subtitle: "Want to be a sponsor? Email us at youthsports@example.org for details."
format: full_html
content_ids:
- content_id: partner_1
- content_id: partner_2
- content_id: partner_3
- content_id: partner_4
- content_id: tier_2

- id: 382
uuid: 'a3ab972b-e6f5-4a6c-9c1e-1c7ccb94d7d4'
title: "Our Sponsors"
subtitle: "Youth Soccer is proudly sponsored by"
content_ids:
- content_id: partner_1
- content_id: partner_2
- content_id: partner_3
- content_id: partner_4
- content_id: tier_3

ids:
id:
type: integer
Expand Down Expand Up @@ -74,13 +66,13 @@ process:
target_id:
plugin: migration_lookup
migration:
- y_lb_demo_block_partners_item
- y_lb_demo_block_partners_tier
source: content_id

destination:
plugin: entity:block_content
default_bundle: 'lb_partners'
migration_dependencies:
required:
- y_lb_demo_block_partners_item
- y_lb_demo_block_partners_tier
optional: { }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ langcode: en
status: true
dependencies:
module:
- lb_testimonials
- lb_partners_blocks
enforced:
module:
- y_lb_demo_content
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
langcode: en
status: true
dependencies:
module:
- lb_partners_blocks
enforced:
module:
- y_lb_demo_content
id: y_lb_demo_block_partners_tier
migration_tags:
- openy_complete_installation
- openy_standard_installation
- openy_extended_installation
migration_group: y_lb_demo_content
label: 'Create Partners Tier blocks'
source:
plugin: embedded_data
data_rows:
-
id: tier_1
uuid: '2bc90be5-f9df-490d-8cee-056eba836e57'
name: 'Lorem ipsum'
content_ids:
- content_id: partner_1
- content_id: partner_2
- content_id: partner_3
- content_id: partner_4
-
id: tier_2
uuid: '2d92a210-d4b1-407d-9c2a-96459e45cece'
name: 'Lorem ipsum'
content_ids:
- content_id: partner_1
- content_id: partner_2
- content_id: partner_3
- content_id: partner_4
-
id: tier_3
uuid: 'da204378-b020-480d-8389-6ed8d6743410'
name: 'Lorem ipsum'
content_ids:
- content_id: partner_1
- content_id: partner_2
- content_id: partner_3
- content_id: partner_4
ids:
id:
type: string
process:
langcode:
plugin: default_value
source: language
default_value: en
status:
plugin: default_value
default_value: 1
reusable:
plugin: default_value
default_value: 0
type:
plugin: default_value
default_value: partners_tier
uuid: uuid
info: name
field_partners_items:
plugin: sub_process
source: content_ids
process:
target_id:
plugin: migration_lookup
migration:
- y_lb_demo_block_partners_item
source: content_id
destination:
plugin: entity:block_content
default_bundle: 'partners_tier'
migration_dependencies: { }