SitecoreUnicorn / Unicorn

A Sitecore utility designed to simplify deployment of Sitecore items across environments automatically
MIT License
269 stars 117 forks source link

Missing sync checkboxes #108

Closed kamsar closed 8 years ago

kamsar commented 8 years ago

I've seen several folks report that they have been temporarily unable to see the checkboxes next to configurations to sync things.

I have not reproduced this, but it's worth looking into. It may also be a difficult to grok business rule (e.g. I think the boxes may hide unless all configs are valid with serialized items).

kamsar commented 8 years ago

From #unicorn

I followed the Habitat setup guide, and there were no checkboxes when I got to the sync part. The checkboxes did first appear when I had sync'ed all of the projects manually.

kamsar commented 8 years ago

https://github.com/kamsar/Unicorn/blob/master/src/Unicorn/ControlPanel/Controls/ConfigurationInfo.cs#L36 is the code that controls checkbox visibility:

 <h3{0}{1}</h3>".FormatWith(MultipleConfigurationsExist && configurationHasAnySerializedItems && configurationHasValidRootPaths ? @" class=""fakebox""><span></span>" : ">", _configuration.Name));

The relevant piece being:

 MultipleConfigurationsExist && 
 configurationHasAnySerializedItems && 
 configurationHasValidRootPaths

So one of those cases (only one of which takes into account other configurations) had to be false for checkboxes to disappear.