Fix method getEntityDataInfo in VersionController

This commit is contained in:
Andrii Landiak 2025-03-12 12:27:20 +02:00
parent 0c2b6fb499
commit 6d565b4ccb
2 changed files with 2 additions and 2 deletions

View File

@ -500,10 +500,9 @@ public class DefaultEntitiesVersionControlService implements EntitiesVersionCont
@Override @Override
public ListenableFuture<EntityDataInfo> getEntityDataInfo(User user, EntityId entityId, String versionId) { public ListenableFuture<EntityDataInfo> getEntityDataInfo(User user, EntityId entityId, String versionId) {
return Futures.transform(gitServiceQueue.getEntity(user.getTenantId(), versionId, entityId), 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 @Override
public ListenableFuture<List<BranchInfo>> listBranches(TenantId tenantId) { public ListenableFuture<List<BranchInfo>> listBranches(TenantId tenantId) {
return gitServiceQueue.listBranches(tenantId); return gitServiceQueue.listBranches(tenantId);

View File

@ -26,4 +26,5 @@ public class EntityDataInfo {
boolean hasRelations; boolean hasRelations;
boolean hasAttributes; boolean hasAttributes;
boolean hasCredentials; boolean hasCredentials;
boolean hasCalculatedFields;
} }