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

task(int-1075): Sync only certain pages from one space to the other #80

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

ademarCardoso
Copy link
Member

@ademarCardoso ademarCardoso commented Feb 16, 2024

Pull request type

Jira Link: INT-1075

  • Feature

How to test this PR

# Sync only stories that starts with `myStartsWithString` from `00001` space to `00002` space
$ storyblok sync --type stories --source 00001 --target 00002 --starts-with myStartsWithString

# Sync only stories with a category field like `reference` from `00001` space to `00002` space
$ storyblok sync --type stories --source 00001 --target 00002 --filter --keys category --operations like --values reference

# Sync only stories with a category field like `reference` and a name field not like `demo` from `00001` space to `00002` space
$ storyblok sync --type stories --source 00001 --target 00002 --filter --keys "category name" --operations "like not_like" --values "reference demo"

What is the new behavior?

  • Now it's possible to sync spaces using filter query to sync only filtered stories

Other information

@ademarCardoso ademarCardoso changed the title feat(int-1075): add again the feature to sync spaces using `filter-qu… feat(int-1075): Sync only certain pages from one space to the other Feb 16, 2024
@ademarCardoso ademarCardoso changed the title feat(int-1075): Sync only certain pages from one space to the other task(int-1075): Sync only certain pages from one space to the other Feb 16, 2024
@ademarCardoso ademarCardoso marked this pull request as ready for review February 16, 2024 20:26
@ademarCardoso ademarCardoso requested a review from a user February 16, 2024 20:26
@scmx
Copy link

scmx commented Mar 13, 2024

🎉 Nice feature. We tried --starts-with and it worked great. One thing we noted was that it didn't work with --type folders, but maybe that can be added at some later point. Could this get merged? 🙏

@ademarCardoso
Copy link
Member Author

🎉 Nice feature. We tried --starts-with and it worked great. One thing we noted was that it didn't work with --type folders, but maybe that can be added at some later point. Could this get merged? 🙏

Regarding the folders, we will add them in a future update.

@ademarCardoso ademarCardoso merged commit 71d5c4a into master Apr 2, 2024
1 check passed
Copy link

github-actions bot commented Apr 2, 2024

🎉 This PR is included in version 3.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants