Hi team,
After upgrading slice-machine-ui from 0.5.2 to 2.21.2, we noticed a major change in how Slice Machine handles synchronization with Prismic repositories.
Our setup consists of multiple projects that push slices and custom types to the same Prismic repository.
With the older 0.5.x versions, Slice Machine behaved in a more additive way:
-
new local slices/custom types were pushed
-
existing remote models that were not present locally were ignored
-
no deletion/removal changes were suggested
This worked very well for shared repositories across multiple projects.
After upgrading to 2.21.2, Slice Machine now actively compares the local filesystem with the remote repository state and detects remote-only models as changes or potential removals, even when nothing was modified locally.
Would it be possible to introduce an optional "additive-only" sync mode in slice-machine-ui?
For example:
-
only create/update local models
-
ignore remote-only slices/custom types
-
never suggest deletions for models missing locally
Something like:
{
"syncMode": "additive"
}
or:
{
"ignoreRemoteOnlyModels": true
}
This would greatly help teams that intentionally share a single Prismic repository across multiple applications/codebases.
Thanks!