add option enables syncing of datasources without their corresponding dimension values #56
+23
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… dimension values
Pull request type
Jira Link: INT-
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