This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(entities): total entites was never fetched for composite sources (#…
…61) * chore: using data fetcher node instead of selection and filter node * added unit tests * added debug logs and comments * optimize filter and order by single source * remove redundant method * remove redundant method * fix optimization for QS * remove redundant method * remove redundant utils method * revert back entity id equals filter * remove entity id equals filter * remove redundant code * added entity response * added unit tests * data fetcher node is paginated for non null limit and offset * got rid of the total entities request * set equals in unit test method * removed redundant total entities test
- Loading branch information
1 parent
e906caf
commit a0e5c44
Showing
22 changed files
with
465 additions
and
843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...-impl/src/main/java/org/hypertrace/gateway/service/common/datafetcher/EntityResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.hypertrace.gateway.service.common.datafetcher; | ||
|
||
import org.hypertrace.gateway.service.entity.EntityKey; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
public class EntityResponse { | ||
private final EntityFetcherResponse entityFetcherResponse; | ||
// set of entity keys, irrespective of offset and limit | ||
private final Set<EntityKey> entityKeys; | ||
|
||
public EntityResponse() { | ||
this.entityFetcherResponse = new EntityFetcherResponse(); | ||
this.entityKeys = new HashSet<>(); | ||
} | ||
|
||
public EntityResponse(EntityFetcherResponse entityFetcherResponse, Set<EntityKey> entityKeys) { | ||
this.entityFetcherResponse = entityFetcherResponse; | ||
this.entityKeys = entityKeys; | ||
} | ||
|
||
public EntityFetcherResponse getEntityFetcherResponse() { | ||
return entityFetcherResponse; | ||
} | ||
|
||
public Set<EntityKey> getEntityKeys() { | ||
return entityKeys; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.