Skip to content

Added doc for repeatable step with items#3189

Open
mnocon wants to merge 2 commits into
5.0from
migrations-iterator
Open

Added doc for repeatable step with items#3189
mnocon wants to merge 2 commits into
5.0from
migrations-iterator

Conversation

@mnocon
Copy link
Copy Markdown
Contributor

@mnocon mnocon commented May 7, 2026

Doc for https://github.com/ibexa/migrations/pull/356

Target: v5 only
To be included in the next release.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Preview of modified files

Preview of modified Markdown:

- fieldDefIdentifier: name
languageCode: eng-GB
value: 'Folder ###SSS i SSS###'
value: 'Folder ###XXX i XXX###'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've decided to unify all the variable usages to ###XXX for consistency.

@mnocon mnocon marked this pull request as ready for review May 7, 2026 13:10
@mnocon mnocon added the Wait with merge PRs that shouldn't be merged instantly label May 7, 2026
@mnocon mnocon force-pushed the migrations-iterator branch from 4a00914 to 95cd910 Compare May 7, 2026 13:18
@mnocon mnocon requested a review from Steveb-p May 7, 2026 13:18
@mnocon mnocon mentioned this pull request May 11, 2026
7 tasks
@mnocon mnocon requested a review from a team May 13, 2026 12:27
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 Bot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team May 13, 2026 12:27
Comment thread docs/content_management/data_migration/importing_data.md Outdated
Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/data_migration/examples/repeatable_step.yaml


code_samples/data_migration/examples/repeatable_step.yaml

docs/content_management/data_migration/importing_data.md@91:``` yaml hl_lines="4"
docs/content_management/data_migration/importing_data.md@92:[[= include_file('code_samples/data_migration/examples/repeatable_step.yaml', 0, 5) =]]
docs/content_management/data_migration/importing_data.md@93:```

001⫶-
002⫶ type: repeatable
003⫶ mode: create
004❇️ iterations: 5
005⫶ steps:

docs/content_management/data_migration/importing_data.md@103:``` yaml hl_lines="16"
docs/content_management/data_migration/importing_data.md@104:[[= include_file('code_samples/data_migration/examples/repeatable_step.yaml', 0, 16) =]]
docs/content_management/data_migration/importing_data.md@105:```

001⫶-
002⫶ type: repeatable
003⫶ mode: create
004⫶ iterations: 5
005⫶ steps:
006⫶ - type: content
007⫶ mode: create
008⫶ metadata:
009⫶ contentType: folder
010⫶ mainTranslation: eng-GB
011⫶ location:
012⫶ parentLocationId: 2
013⫶ fields:
014⫶ - fieldDefIdentifier: name
015⫶ languageCode: eng-GB
016❇️ value: 'Folder ###SSS i SSS###'

docs/content_management/data_migration/importing_data.md@127:``` yaml
docs/content_management/data_migration/importing_data.md@128:[[= include_file('code_samples/data_migration/examples/repeatable_step.yaml', 16, 19) =]]
docs/content_management/data_migration/importing_data.md@129:```
docs/content_management/data_migration/importing_data.md@104:``` yaml hl_lines="4 16"
docs/content_management/data_migration/importing_data.md@105:[[= include_code('code_samples/data_migration/examples/repeatable_step.yaml', end_line=16) =]]
docs/content_management/data_migration/importing_data.md@106:```

001⫶ value: '### faker().name() ###'

docs/content_management/data_migration/importing_data.md@154:``` yaml
docs/content_management/data_migration/importing_data.md@155:[[= include_file('code_samples/data_migration/examples/repeatable_step.yaml', 16, 19) =]]
docs/content_management/data_migration/importing_data.md@156:```

001⫶ - fieldDefIdentifier: short_name
002⫶ languageCode: eng-GB
003⫶ value: '### faker().name() ###'


code_samples/data_migration/examples/repeatable_step_with_items.yaml


001⫶ - fieldDefIdentifier: short_name
002⫶ languageCode: eng-GB
003⫶ value: '### faker().name() ###'


code_samples/data_migration/examples/repeatable_step_with_items.yaml

docs/content_management/data_migration/importing_data.md@120:``` yaml hl_lines="10-13"
docs/content_management/data_migration/importing_data.md@121:[[= include_file('code_samples/data_migration/examples/repeatable_step_with_items.yaml') =]]
docs/content_management/data_migration/importing_data.md@122:```

001⫶- type: repeatable
002⫶ mode: create
003⫶ steps:
004⫶ - type: language
005⫶ mode: create
006⫶ metadata:
007⫶ languageCode: '###XXX code XXX###'
008⫶ name: '###XXX name XXX###'
009⫶ enabled: true
010❇️ items:
011❇️ - { code: afr-AF, name: Afrikaans }
012❇️ - { code: alb-SQ, name: Albanian }
013❇️ - { code: ara-AR, name: Arabic }


code_samples/data_migration/examples/repeatable_step_with_items_counter.yaml


code_samples/data_migration/examples/repeatable_step_with_items_counter.yaml

docs/content_management/data_migration/importing_data.md@130:``` yaml hl_lines="3 10 16"
docs/content_management/data_migration/importing_data.md@131:[[= include_code('code_samples/data_migration/examples/repeatable_step_with_items_counter.yaml') =]]
docs/content_management/data_migration/importing_data.md@132:```

001⫶- type: repeatable
002⫶ mode: create
003❇️ iteration_counter_name: index
004⫶ steps:
005⫶ - type: content
006⫶ mode: create
007⫶ metadata:
008⫶ contentType: folder
009⫶ mainTranslation: eng-GB
010❇️ remoteId: 'migration_folder_###XXX index XXX###'
011⫶ location:
012⫶ parentLocationId: 2
013⫶ fields:
014⫶ - fieldDefIdentifier: name
015⫶ languageCode: eng-GB
016❇️ value: '###XXX title XXX###'
017⫶ items:
018⫶ - { title: 'Getting Started' }
019⫶ - { title: 'Advanced Configuration' }
020⫶ - { title: 'API Reference' }

Download colorized diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for MERGE Wait with merge PRs that shouldn't be merged instantly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants