Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

add option enables syncing of datasources without their corresponding dimension values#56

Open
CaprinaeWT wants to merge 4 commits into
storyblok:masterfrom
CaprinaeWT:option_to_disable_datasource_dimension_sync
Open

add option enables syncing of datasources without their corresponding dimension values#56
CaprinaeWT wants to merge 4 commits into
storyblok:masterfrom
CaprinaeWT:option_to_disable_datasource_dimension_sync

Conversation

@CaprinaeWT
Copy link
Copy Markdown
Contributor

@CaprinaeWT CaprinaeWT commented Jun 26, 2023

… dimension values

Pull request type

Jira Link: INT-

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Other (please describe):

How to test this PR

storyblok sync --type datasources --source <SourceSpaceId> --target <TargetSpaceId> --datasource-disable-dimensions-value-sync

The --datasource-disable-dimension-sync options can be useful in certain scenarios where the synchronization of dimension values is not necessary or desired. While datasources are commonly used for translations, there may be cases where you only need to sync the structure or metadata of the datasources without including the actual dimension values.

For example, if you have a large dataset with frequently changing dimension values and you want to reduce the sync time or avoid potential conflicts, you may choose to disable the dimension sync. By doing so, you can focus on syncing the datasources themselves while excluding the specific dimension values, which can be later populated or updated separately if needed.

In summary, the option provides flexibility and efficiency by allowing users to selectively sync datasources without the burden of syncing the associated dimension values.

What is the new behavior?

The expected behavior when using the --datasource-disable-dimension-sync option is that the synchronization process will exclude the dimension values associated with the datasources. Only the structure and metadata of the datasources will be synced over to the target space, while the actual values of the dimensions will not be transferred.

This means that the target space will have the same datasources as the source space, including their names, configurations, but the specific values within those datasources' dimensions will not be replicated.

Other information

Comment thread src/cli.js Outdated
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants