-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update processes to have
s3BucketIdentifier
key as input
- Add migration to update all existing processes in `processes_table` to have the mentioned input key - Update `ProcessRunnerImpl` - Change `validateInput` logic to send back 400 Bad Request error in case of missing/empty keys along w/ offending keys - Checking for the `s3BucketIdentifier` key from input now - Update process tests - Update tests for onboarding, appending and tiles metadata onboarding tests to add the extra input key `s3BucketIdentifier` with value `default`
- Loading branch information
1 parent
a66ef92
commit bc03412
Showing
5 changed files
with
99 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...urces/db/migration/V19_2__Update_processes_that_use_S3_to_have_s3_bucket_id_in_inputs.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
UPDATE processes_table SET input = jsonb_set(input, '{inputs}', input -> 'inputs' || '{"s3BucketIdentifier" : "Identifier of the S3 bucket that the process will operate upon"}') where title = ANY('{CollectionOnboarding,CollectionAppending,TilesMetaDataOnboarding,S3PreSignedURLGeneration,TilesOnboardingFromExistingFeature}'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters