-
Notifications
You must be signed in to change notification settings - Fork 116
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
unicorn ignoring config when programmatically creating items or publishing #33
Comments
Can you attach your config and an example scenario where excludes aren't working?
|
I've noticed the same behavior with the Schedule definition. I have |
this is my config...
and with this config i get items under vehicles for all sites even though they are excluded when i create the items programmatically and as part of that if i run a publish with code i get items from the web database saved to disk even though at no point is unicorn bound as a data provider for the web db |
You're getting web items serialized when you publish? (eg in serialization/web) Or are the master items being serialized as they get published to web? I'll take a look at the exclude issue - I have test coverage on that so I thought it was working, but tests are only so much of a safety net ;) Sorry for the delay in doing anything in depth; I'm in the middle of moving! |
if i run a publish programmatically then the items that are in master get published and as they are published they get items created for them on disk in serialization/web. the items i am publishing this way are the same items i am importing that should be excluded. when i publish the same items from within sitecore they do not get web items created |
What's the code you're using to programmatically publish? On Thu, Oct 16, 2014 at 7:20 AM, tommyhawk520 notifications@github.com
|
the code i'm using is...
|
I've retested the exclusion part of this issue and am unable to reproduce it in several different scenario tries. It's worth noting that Sitecore 8 defaults to having schedule items in the database like @RaYell mentioned above that change their last run field. I've got those excluded in several production or in-development Sitecore 8 sites without issue. I've also tried programmatically creating items in excluded locations:
No items were written either time. I'll see if I can replicate the publishing piece. |
Ok I tested using the exact publishing code from two comments ago, and I can't replicate that issue either. I tried publishing both with a root item that is excluded and one that is included, and no web database serialization occurred. My best guess is that there's some kind of event handler, pipeline processor, etc that is doing something unexpected to the way Sitecore works. But without reproduction, I'm going to close this for now. |
I have unicorn 2.0.4 set up in sitecore 7.2, the config is standard but i have added a few extra include and exclude rules. unicorn seems to ignore the exclude rules when i publish an item or create it programmatically. if i just create an item in content editor it doesnt get created
The text was updated successfully, but these errors were encountered: