Skip to content

Commit

Permalink
Issue/fix release 4.10.1 - add granules to download harmony fix (#37)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: jbyrne <jimmy.byrne@jpl.nasa.gov>
  • Loading branch information
jbyrne6 and jbyrne authored Jun 10, 2024
1 parent 385c00d commit 7e32e8b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 74 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [4.9.8]
### Added
- Update github actions to have commit message trigger deploys
- Update github actions to have commit message trigger deploys.
- PODAAC-5326: Fixed 'Add matching granules to download' button.
### Changed
### Removed
Expand Down
102 changes: 32 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions server/client/harmony.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async function subset(job, accessToken) {
datasetId,
bbox,
granuleIds = [],
granuleNames = [],
variables,
merge,
} = job.subjobs[0];
Expand All @@ -26,10 +27,16 @@ async function subset(job, accessToken) {

// add granule names
const formData = new FormData();
if(granuleIds.length > 0) {
granuleIds.forEach((granuleId) => {
formData.append('granuleId', granuleId);
});
} else if (granuleNames.length > 0) {
granuleNames.forEach((granuleName) => {
formData.append('granuleName', granuleName);
});
}

granuleIds.forEach((granuleId) => {
formData.append('granuleId', granuleId);
});
if(merge) url += `&concatenate=true`;

let response, text;
Expand Down

0 comments on commit 7e32e8b

Please sign in to comment.