Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/issue 17 #20

Merged
merged 16 commits into from
Jul 17, 2023
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
git push origin "${{ env.THE_VERSION }}" --force
- name: Publish UMM-T with new version
uses: podaac/cmr-umm-updater@0.4.0
uses: podaac/cmr-umm-updater@0.5.0
if: |
github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/heads/release')
Expand All @@ -172,6 +172,7 @@ jobs:
timeout: 60
disable_removal: 'true'
umm_type: 'umm-t'
use_associations: 'false'
env:
LAUNCHPAD_TOKEN_SIT: ${{secrets.LAUNCHPAD_TOKEN_SIT}}
LAUNCHPAD_TOKEN_UAT: ${{secrets.LAUNCHPAD_TOKEN_UAT}}
Expand Down Expand Up @@ -221,4 +222,4 @@ jobs:
github.event.head_commit.message == '/deploy sit' ||
github.event.head_commit.message == '/deploy uat'
run:
aws s3 sync ./dist s3://podaac-services-${{ env.THE_ENV }}-hitide --exclude dataset-configs/* --exclude palettes/* --delete
aws s3 sync ./dist s3://podaac-services-${{ env.THE_ENV }}-hitide --exclude dataset-configs/* --exclude palettes/* --delete
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add in commit message triggers
- PODAAC-5326: Fixed 'Add matching granules to download' button.
- issue-17: Add way to read config files to allow for multiple lat lon for variables images.
### Changed
### Removed
### Fixed
Expand Down
23 changes: 21 additions & 2 deletions src/jpl/dijit/LegendsAndOpacity.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,27 @@ define([
this.open = false;
},
handleVariablesFetched: function(message) {
if (this.datasets[message.datasetId]) {
this.datasets[message.datasetId].updateVariables(message.imgVariables);

// code to modify imgVariables when there are mutli groups
if('multi_lon_lat' in message){
var new_variables = [];
for(var i = 0; i < message.multi_groups.length; i++){
var group_name = message.multi_groups[i];
for(var j = 0; j < message.imgVariables.length; j++){
var image_variable = { ...message.imgVariables[j] };
image_variable['id'] = group_name + '/' + image_variable['id'];
new_variables.push(image_variable);
}
}
if (this.datasets[message.datasetId]) {
this.datasets[message.datasetId].updateVariables(new_variables);
}
}

else{
if (this.datasets[message.datasetId]) {
this.datasets[message.datasetId].updateVariables(message.imgVariables);
}
}
},
handleAddGranuleFootprint: function(message) {
Expand Down