-
Notifications
You must be signed in to change notification settings - Fork 115
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
Moved item can end up deleted on sync #435
Comments
You really should have only 1 or at most a couple of Unicorn configurations. That aside; Unicorn can handle a move across configurations under other circumstances. I think you're possibly stumbling somwhere, in how you execute the above steps. E.g. not ensuring your serialization datastore is kept in sync properly and/or not executing a full sync when required.
Aight. So on the instance you're doing this, the .yml file will be deleted from Project.Website and a new .yml file will appear unter Feature.Something
So the question here is; how did you move your files to the target environment where you now execute this sync? Did you make sure to clean out your deployment target so that the (on local) deleted .yml file from Project.Website got cleared out?
This would suggest you did not.
And this is expected behaviour. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When an item, for instance a template item, is moved between different projects, it can end up deleted on the first sync run. Depending on the Helix layers between which it is moved, it can go wrong. If it is moved from the project layer to a feature, it ends up deleted. But it might be our team that has the unicorn configuration wrong.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
We would like the item not to be deleted, because it still exists, only in a different project.
I think dependencies cannot solve this easily, because it is not the dependency that creates the problem.
After all, at the same time another item could be moved the other way, from feature to project layer.
Somehow, unicorn should be aware of adds/deletes across different projects
Please mention your Sitecore version and Unicorn version.
Sitecore 10.2.0 and unicorn 4.1.6
The text was updated successfully, but these errors were encountered: