diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34c0f791..8210e078 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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') @@ -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}} @@ -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 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0173f462..aedec983 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/jpl/dijit/LegendsAndOpacity.js b/src/jpl/dijit/LegendsAndOpacity.js index e38845b9..21700396 100644 --- a/src/jpl/dijit/LegendsAndOpacity.js +++ b/src/jpl/dijit/LegendsAndOpacity.js @@ -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) {