You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Prerequisites:
Sitecore 9.3
Unicorn 4.1.1 (default setup after installing nuget package)
Ucommerce 8.4
Behaviour:
Sitecore Content tree doesnot show descendants.
(Extra information: I checked all previous posts for compatibility around UCommerceDataProvider and UnicornSqlServerDataProvider, GetChildIDs works as expected)
Descendants items are not shown in the content tree.
If the current behavior is a bug, please provide the steps to reproduce.
Default installation of Sitecore 9.3
Default installation of Ucommerce 8.4
Default installation of Unicorn 4.1.1
What is the expected behavior?
Default sitecore tree structure is visible and expandable.
That If item has descendants, the arrow is shown.
If I press to arrow, I see descendants
Technical details:
The method GetChildIDs makes a call to the base.GetChildIDs. (please see the picture in attachments: unicorn_native_GetChildIDs_implementation)
In my case UnicornDataProviders do not return any values when base.GetChildIDs returns.
(please check attachment: unicorn_returns_no_children)
HasChildren in current Unicorn Implementation only goes through the loop by UnicornDataProviders. And returns false.
This I found a bit inconsistent.
Currently, I made a new CustomDataProvider that has original sitecore implementation:
public override bool HasChildren(ItemDefinition itemDefinition, CallContext context)
{
var childIds = GetChildIDs(itemDefinition, context);
if (childIds != null)
return childIds.Count > 0;
return false;
}
By this behaviour I use the same GetChildIDs method that fix the inconsistency.
Could you please check that?
Please mention your Sitecore version and Unicorn version.
Default installation of Sitecore 9.3
Default installation of Ucommerce 8.4
Default installation of Unicorn 4.1.1
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Prerequisites:
Sitecore 9.3
Unicorn 4.1.1 (default setup after installing nuget package)
Ucommerce 8.4
Behaviour:
Sitecore Content tree doesnot show descendants.
(Extra information: I checked all previous posts for compatibility around UCommerceDataProvider and UnicornSqlServerDataProvider, GetChildIDs works as expected)
Descendants items are not shown in the content tree.
If the current behavior is a bug, please provide the steps to reproduce.
Default installation of Sitecore 9.3
Default installation of Ucommerce 8.4
Default installation of Unicorn 4.1.1
What is the expected behavior?
Default sitecore tree structure is visible and expandable.
That If item has descendants, the arrow is shown.
If I press to arrow, I see descendants
Technical details:
The method GetChildIDs makes a call to the base.GetChildIDs. (please see the picture in attachments: unicorn_native_GetChildIDs_implementation)
In my case UnicornDataProviders do not return any values when base.GetChildIDs returns.
(please check attachment: unicorn_returns_no_children)
HasChildren in current Unicorn Implementation only goes through the loop by UnicornDataProviders. And returns false.
This I found a bit inconsistent.
Currently, I made a new CustomDataProvider that has original sitecore implementation:
public override bool HasChildren(ItemDefinition itemDefinition, CallContext context)
{
var childIds = GetChildIDs(itemDefinition, context);
if (childIds != null)
return childIds.Count > 0;
return false;
}
By this behaviour I use the same GetChildIDs method that fix the inconsistency.
Could you please check that?
Please mention your Sitecore version and Unicorn version.
Default installation of Sitecore 9.3
Default installation of Ucommerce 8.4
Default installation of Unicorn 4.1.1
The text was updated successfully, but these errors were encountered: