init commit of removing code for entity service that loads in any property data
This commit is contained in:
@@ -201,8 +201,8 @@ namespace Umbraco.Web.Trees
|
||||
return HasPathAccess(entity, queryStrings);
|
||||
}
|
||||
|
||||
internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
=> Services.EntityService.GetChildren(entityId, UmbracoObjectType).ToList();
|
||||
//internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// => Services.EntityService.GetChildren(entityId, UmbracoObjectType).ToList();
|
||||
|
||||
protected override IEnumerable<IEntitySlim> GetChildEntities(string id, FormDataCollection queryStrings)
|
||||
{
|
||||
@@ -327,7 +327,7 @@ namespace Umbraco.Web.Trees
|
||||
|
||||
public IEnumerable<SearchResultEntity> Search(string query, int pageSize, long pageIndex, out long totalFound, string searchFrom = null)
|
||||
{
|
||||
return _treeSearcher.ExamineSearch(query, UmbracoEntityTypes.Document, pageSize, pageIndex, out totalFound, searchFrom);
|
||||
return _treeSearcher.ExamineSearch(query, UmbracoEntityTypes.Document, pageSize, pageIndex, out totalFound, false, searchFrom);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,12 +214,8 @@ namespace Umbraco.Web.Trees
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Abstract method to fetch the entities from the entity service
|
||||
/// </summary>
|
||||
/// <param name="entityId"></param>
|
||||
/// <returns></returns>
|
||||
internal abstract IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId);
|
||||
internal virtual IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
=> Services.EntityService.GetChildren(entityId, UmbracoObjectType).ToList();
|
||||
|
||||
/// <summary>
|
||||
/// Returns true or false if the current user has access to the node based on the user's allowed start node (path) access
|
||||
|
||||
@@ -164,14 +164,17 @@ namespace Umbraco.Web.Trees
|
||||
|
||||
public IEnumerable<SearchResultEntity> Search(string query, int pageSize, long pageIndex, out long totalFound, string searchFrom = null)
|
||||
{
|
||||
return _treeSearcher.ExamineSearch(query, UmbracoEntityTypes.Media, pageSize, pageIndex, out totalFound, searchFrom);
|
||||
return _treeSearcher.ExamineSearch(query, UmbracoEntityTypes.Media, pageSize, pageIndex, out totalFound, false, searchFrom);
|
||||
}
|
||||
|
||||
internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// Not pretty having to cast the service, but it is the only way to get to use an internal method that we
|
||||
// do not want to make public on the interface. Unfortunately also prevents this from being unit tested.
|
||||
// See this issue for details on why we need this:
|
||||
// https://github.com/umbraco/Umbraco-CMS/issues/3457
|
||||
=> ((EntityService)Services.EntityService).GetMediaChildrenWithoutPropertyData(entityId).ToList();
|
||||
//internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// => Services.EntityService.GetChildren(entityId, UmbracoObjectType).ToList();
|
||||
|
||||
//internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// // Not pretty having to cast the service, but it is the only way to get to use an internal method that we
|
||||
// // do not want to make public on the interface. Unfortunately also prevents this from being unit tested.
|
||||
// // See this issue for details on why we need this:
|
||||
// // https://github.com/umbraco/Umbraco-CMS/issues/3457
|
||||
// => ((EntityService)Services.EntityService).GetMediaChildrenWithoutPropertyData(entityId).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user