Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
  • Loading branch information
eirsep committed Jul 9, 2024
1 parent bbe005d commit bfe330d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ public void downloadFromUrlAndIndexIOCs(SATIFSourceConfig saTifSourceConfig, Act
}
break;
default:
// if the feed type doesn't match any of the supporting feed types, throw an exception
log.error("unsupported feed format for url download:" + source.getFeedFormat());
listener.onFailure(new UnsupportedOperationException("unsupported feed format for url download:" + source.getFeedFormat()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public List<String> validateSourceConfigDto(SATIFSourceConfigDto sourceConfigDto
break;
case URL_DOWNLOAD:
if (sourceConfigDto.getSchedule() == null) {
errorMsgs.add("Must pass in schedule for URL_DONWLOAD source type");
errorMsgs.add("Must pass in schedule for URL_DOWNLOAD source type");
}
if (sourceConfigDto.getSource() != null && sourceConfigDto.getSource() instanceof UrlDownloadSource == false) {
errorMsgs.add("Source must be URL_DONWLOAD source type");
errorMsgs.add("Source must be URL_DOWNLOAD source type");
}
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public DefaultTifSourceConfigLoaderService(BuiltInTIFMetadataLoader tifMetadataL
}

/**
* check if the default
* check if the default tif source configs are loaded. if not, try create them from the feedMetadata.json file.
*/
public void createDefaultTifConfigsIfNotExists(ActionListener<Void> listener) {
List<TIFMetadata> tifMetadataList = tifMetadataLoader.getTifMetadataList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void onFailure(Exception e) {
}
break;
default:
// if the feed type doesn't match any of the supporting feed types, throw an exception
onFailure(new UnsupportedOperationException("Not a supported feed format : " + tifMetadata.getFeedType()));
}
}
} catch (IOException ex) {
Expand Down

0 comments on commit bfe330d

Please sign in to comment.