Skip to content

Commit

Permalink
add more logs for api collection count
Browse files Browse the repository at this point in the history
  • Loading branch information
notshivansh committed Dec 31, 2024
1 parent 0a2bcb3 commit 7f86f63
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,17 @@ public List<ApiCollection> fillApiCollectionsUrlCount(List<ApiCollection> apiCol
if(apiCollectionWithCond.getConditions() != null && apiCollectionWithCond.getConditions().get(0) != null){
if(apiCollectionWithCond.getConditions().get(0).getType().equals(TestingEndpoints.Type.CUSTOM)){
CustomTestingEndpoints testingEndpoints = (CustomTestingEndpoints) apiCollectionWithCond.getConditions().get(0);
if(testingEndpoints.getApisList() != null && !testingEndpoints.getApisList().isEmpty()){
if (testingEndpoints.getApisList() != null && !testingEndpoints.getApisList().isEmpty()) {
conditionsCount = testingEndpoints.getApisList().size();
loggerMaker.infoAndAddToDb("fillApiCollectionsUrlCount collection: " + apiCollectionWithCond.getDisplayName() + " count: " + conditionsCount);
}
}
}
}

if(conditionsCount != 0){
count = conditionsCount;
}else if (count == null) {
if (conditionsCount != 0) {
count = conditionsCount;
} else if (count == null) {
count = fallbackCount;
}
apiCollection.setUrlsCount(count);
Expand Down

0 comments on commit 7f86f63

Please sign in to comment.