Filter non ccompat artifact types form storage facade
@@ -91,6 +91,7 @@ public class RegistryStorageFacadeImpl implements RegistryStorageFacade {
return storage.searchArtifacts(Set.of(SearchFilter.ofGroup(null)), OrderBy.createdOn, OrderDirection.asc, 0, 1000)
.getArtifacts()
.stream()
+ .filter(searchedArtifactDto -> isCcompatManagedType(searchedArtifactDto.getType()))
.map(SearchedArtifactDto::getId).collect(Collectors.toList());
}
@@ -375,4 +376,8 @@ public class RegistryStorageFacadeImpl implements RegistryStorageFacade {
return Collections.emptyList();
}
}
+
+ private boolean isCcompatManagedType(ArtifactType artifactType) {
+ return artifactType.equals(ArtifactType.AVRO) || artifactType.equals(ArtifactType.PROTOBUF) || artifactType.equals(ArtifactType.JSON);
+ }
}
