Skip to content

Commit

Permalink
Add TODO note about manipulating filters directly via FilterRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Aug 16, 2018
1 parent c8bf479 commit 8c4945d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public ResponseEntity<?> delete(@PathVariable String metadataResolverId,
@PathVariable String resourceId) {

MetadataResolver resolver = findResolverOrThrowHttp404(metadataResolverId);
//TODO: consider implementing delete of filter directly from RDBMS via FilterRepository
boolean removed = resolver.getMetadataFilters().removeIf(f -> f.getResourceId().equals(resourceId));
if(!removed) {
throw HTTP_404_CLIENT_ERROR_EXCEPTION.get();
Expand Down

0 comments on commit 8c4945d

Please sign in to comment.