Skip to content

Commit

Permalink
EHSTSWRQ-54: removed collectionParams from deletion endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jespinosaar committed Jan 23, 2025
1 parent 9e522eb commit 7c26d49
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,8 @@ public void read(InputStream in) throws IOException {
private List<DeletedObservation> readDeletedEntityList(DeletionListReader transformer, String inputCollection, Date start, Date end, Integer maxrec) {

// For HLSPs, inputCollection=HLSP?telescope={mission}
// Extract the additional query parameters for the collection and include them in the request
// Extract the collection only, as the deleted observation endpoint cannot support extra params
String collection = getCollection(inputCollection);
String collectionParams = getCollectionParams(inputCollection);

List<DeletedObservation> accList = new ArrayList<>();
List<DeletedObservation> partialList = null;
Expand Down Expand Up @@ -625,10 +624,6 @@ private List<DeletedObservation> readDeletedEntityList(DeletionListReader transf
surl = surl + "&end=" + df.format(end);
}

if (collectionParams != null) {
surl = surl + "&" + collectionParams;
}

URL url;
try {
url = new URL(surl);
Expand Down

0 comments on commit 7c26d49

Please sign in to comment.