Skip to content

Commit

Permalink
Datasets listing treat {} as empty filter
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Lamparelli <[email protected]>
  • Loading branch information
lampajr authored and johnaohara committed Nov 6, 2024
1 parent 9eff3a3 commit 9ba5fc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public DatasetService.DatasetList listByTest(int testId, String filter, Integer
.append(SCHEMAS_SELECT).append(" WHERE testid = :testId GROUP BY dataset_id")
.append("), ").append(VALIDATION_SELECT);
JsonNode jsonFilter = null;
if (filter != null && !filter.isBlank()) {
if (filter != null && !filter.isBlank() && !filter.equals("{}")) {
sql.append(", all_labels AS (").append(ALL_LABELS_SELECT).append(" WHERE testid = :testId GROUP BY dataset.id)");
sql.append(DATASET_SUMMARY_SELECT);
addViewIdCondition(sql, viewId);
Expand Down

0 comments on commit 9ba5fc2

Please sign in to comment.