66import static java .util .Objects .isNull ;
77import static java .util .stream .Collectors .joining ;
88import static java .util .stream .Collectors .toUnmodifiableList ;
9- import static org .hypertrace .core .documentstore .expression .operators .RelationalOperator .EQ ;
109import static org .hypertrace .core .documentstore .expression .operators .RelationalOperator .IN ;
1110import static org .hypertrace .core .documentstore .model .options .ReturnDocumentType .NONE ;
1211import 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