Merge pull request #12894 from AndriiLandiak/fix-calculated-field-vc
Fix method getEntityDataInfo in VersionController
This commit is contained in:
		
						commit
						3182c1a88e
					
				@ -500,10 +500,9 @@ public class DefaultEntitiesVersionControlService implements EntitiesVersionCont
 | 
			
		||||
    @Override
 | 
			
		||||
    public ListenableFuture<EntityDataInfo> getEntityDataInfo(User user, EntityId entityId, String versionId) {
 | 
			
		||||
        return Futures.transform(gitServiceQueue.getEntity(user.getTenantId(), versionId, entityId),
 | 
			
		||||
                entity -> new EntityDataInfo(entity.hasRelations(), entity.hasAttributes(), entity.hasCredentials()), MoreExecutors.directExecutor());
 | 
			
		||||
                entity -> new EntityDataInfo(entity.hasRelations(), entity.hasAttributes(), entity.hasCredentials(), entity.hasCalculatedFields()), MoreExecutors.directExecutor());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public ListenableFuture<List<BranchInfo>> listBranches(TenantId tenantId) {
 | 
			
		||||
        return gitServiceQueue.listBranches(tenantId);
 | 
			
		||||
 | 
			
		||||
@ -26,4 +26,5 @@ public class EntityDataInfo {
 | 
			
		||||
    boolean hasRelations;
 | 
			
		||||
    boolean hasAttributes;
 | 
			
		||||
    boolean hasCredentials;
 | 
			
		||||
    boolean hasCalculatedFields;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user