Skip to content

Commit

Permalink
Feature/issue 17 (#20)
Browse files Browse the repository at this point in the history
* /deploy sit

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* /deploy uat

* add code to handle multi groups

* update umm updater

* update workflow

* udpate workflow

* update changelog
  • Loading branch information
sliu008 authored Jul 17, 2023
1 parent 593a978 commit c63fe10
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
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

0 comments on commit c63fe10

Please sign in to comment.