Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/deploy-bamboo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ config="`jq '.application.mapPointsSimplifyThreshold = $newValue' --arg newValue
config="`jq '.application.nlpSearch = $newValue' --arg newValue $bamboo_NLP_SEARCH <<< $config`"
config="`jq '.application.numberOfGranules = $newValue' --arg newValue "$bamboo_NUMBER_OF_GRANULES" <<< $config`"
config="`jq '.application.placeLabelsStyleUrl = $newValue' --arg newValue $bamboo_PLACE_LABELS_STYLE_URL <<< $config`"
config="`jq '.application.growthbookEnabled = $newValue' --arg newValue $bamboo_GROWTHBOOK_ENABLED <<< $config`"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--argjson, --arg evaluates everything to a string

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of switching this, but I wouldn't only change this field, I'd want every boolean to behave the same way.

But that also means that environment variables used in a lambda would behave differently than those in React, because they are set within the dockerRun function in this file.

We should put a little thought into that separately


config="`jq '.environment.production.apiHost = $newValue' --arg newValue $bamboo_API_HOST <<< $config`"
config="`jq '.environment.production.edscHost = $newValue' --arg newValue $bamboo_EDSC_HOST <<< $config`"
config="`jq '.environment.production.growthbookFirehoseStreamName = $newValue' --arg newValue $bamboo_GROWTHBOOK_FIREHOSE_STREAM_NAME <<< $config`"
config="`jq '.environment.production.growthbookApiHost = $newValue' --arg newValue $bamboo_GROWTHBOOK_API_HOST <<< $config`"
config="`jq '.environment.production.growthbookClientKey = $newValue' --arg newValue $bamboo_GROWTHBOOK_CLIENT_KEY <<< $config`"

# Wrap the bamboo variable in quotes for a string value that could contain spaces
config="`jq '.application.emergencyNotification = $newValue' --arg newValue "$bamboo_EMERGENCY_NOTIFICATION" <<< $config`"
Expand Down
2 changes: 1 addition & 1 deletion cdk/earthdata-search-infrastructure/package-lock.json

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

2 changes: 1 addition & 1 deletion cdk/earthdata-search-infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "22.7.9",
"@types/node": "^22.7.9",
"aws-cdk": "^2.1129.0",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
Expand Down
18 changes: 18 additions & 0 deletions cdk/earthdata-search/lib/earthdata-search-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,24 @@ export class Functions extends Construct {
functionNamePrefix
})

/**
* Experiment Logger
*/
const experimentLoggerNestedStack = new cdk.NestedStack(scope, 'ExperimentLoggerNestedStack')
// eslint-disable-next-line no-new
new application.NodeJsFunction(experimentLoggerNestedStack, 'ExperimentLoggerLambda', {
...defaultLambdaConfig,
api: {
apiGatewayDeployment,
apiGatewayRestApi,
methods: ['POST'],
path: 'experiment_logger'
},
entry: '../../serverless/src/experimentLogger/handler.js',
functionName: 'experimentLogger',
functionNamePrefix
})

/**
* Fix Retrieval Collection Metadata
*/
Expand Down
2 changes: 1 addition & 1 deletion cdk/earthdata-search/package-lock.json

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

2 changes: 1 addition & 1 deletion cdk/earthdata-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "22.7.9",
"@types/node": "^22.7.9",
"aws-cdk": "^2.1129.0",
"esbuild": "^0.24.2",
"jest": "^29.7.0",
Expand Down
Loading
Loading