Skip to content

Commit

Permalink
feat: add hasCheckpointMatchers attribute to views (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsSmets authored Aug 29, 2024
1 parent e135e02 commit 496f515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/nl/nn/testtool/filter/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,8 @@ public List<String> getMetadataLabels() {

return metadataLabels;
}

public boolean hasCheckpointMatchers() {
return this.checkpointMatchers != null && !this.checkpointMatchers.isEmpty();
}
}
1 change: 1 addition & 0 deletions src/main/java/nl/nn/testtool/web/api/TestToolApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public Response getViewsResponse() {
map.put("metadataLabels", view.getMetadataLabels());
map.put("crudStorage", view.getDebugStorage() instanceof CrudStorage);
map.put("nodeLinkStrategy", view.getNodeLinkStrategy());
map.put("hasCheckpointMatchers", view.hasCheckpointMatchers());
Map<String, String> metadataTypes = new HashMap<>();
for (String metadataName : view.getMetadataNames()) {
metadataTypes.put(metadataName, metadataExtractor.getType(metadataName));
Expand Down

0 comments on commit 496f515

Please sign in to comment.