Skip to content

Commit d425959

Browse files
authored
Revert "fix | fix the query for fetching the updated document (#282)" (#283)
This reverts commit a5b594f.
1 parent a5b594f commit d425959

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

entity-service-impl/src/main/java/org/hypertrace/entity/query/service/EntityQueryServiceImpl.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import static java.util.Objects.isNull;
77
import static java.util.stream.Collectors.joining;
88
import static java.util.stream.Collectors.toUnmodifiableList;
9-
import static org.hypertrace.core.documentstore.expression.operators.RelationalOperator.EQ;
109
import static org.hypertrace.core.documentstore.expression.operators.RelationalOperator.IN;
1110
import static org.hypertrace.core.documentstore.model.options.ReturnDocumentType.NONE;
1211
import static org.hypertrace.entity.data.service.v1.AttributeValue.VALUE_LIST_FIELD_NUMBER;
@@ -343,10 +342,7 @@ public void update(EntityUpdateRequest request, StreamObserver<ResultSetChunk> r
343342
// Finally, return the selections
344343
List<Document> documents =
345344
getProjectedDocuments(
346-
maybeTenantId.get(),
347-
request.getEntityIdsList(),
348-
request.getSelectionList(),
349-
requestContext);
345+
request.getEntityIdsList(), request.getSelectionList(), requestContext);
350346

351347
responseObserver.onNext(
352348
convertDocumentsToResultSetChunk(documents, request.getSelectionList()));
@@ -535,7 +531,6 @@ private JSONDocument convertToJsonDocument(LiteralConstant literalConstant) {
535531
}
536532

537533
private List<Document> getProjectedDocuments(
538-
final String tenantId,
539534
final Iterable<String> entityIds,
540535
final List<Expression> selectionList,
541536
final RequestContext requestContext)
@@ -555,11 +550,6 @@ private List<Document> getProjectedDocuments(
555550
IdentifierExpression.of(EntityServiceConstants.ENTITY_ID),
556551
IN,
557552
ConstantExpression.ofStrings(entityIdList)))
558-
.expression(
559-
RelationalExpression.of(
560-
IdentifierExpression.of(EntityServiceConstants.TENANT_ID),
561-
EQ,
562-
ConstantExpression.of(tenantId)))
563553
.build();
564554

565555
final org.hypertrace.core.documentstore.query.Query query =

0 commit comments

Comments
 (0)