Skip to content

Commit

Permalink
Added not-timeExceeded to the totalResult constraints.
Browse files Browse the repository at this point in the history
Change-Id: I5589886571124af8e0f81c9dc4b412bb826450b6
  • Loading branch information
margaretha committed Oct 24, 2024
1 parent 8631ee3 commit bf6b058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- Changed memberUsername to member in the new member-role-addition web-service.
- Removed user-privileges from user-group list response.
- Added role names to user-group list
- Added not-timeExceeded to the totalResult constraints.


# version 0.74.1-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ private String afterCheckTotalResultCache (int hashedKoralQuery,
else {
JsonNode node = JsonUtils.readTree(result);
totalResults = node.at("/meta/totalResults").asText();
if (totalResults != null && !totalResults.isEmpty()
boolean timeExceeded = node.at("/meta/timeExceeded").asBoolean();

if (!timeExceeded && totalResults != null && !totalResults.isEmpty()
&& Integer.parseInt(totalResults) > 0)
totalResultCache.storeInCache(hashedKoralQuery, totalResults);
}
Expand Down

0 comments on commit bf6b058

Please sign in to comment.