-
Notifications
You must be signed in to change notification settings - Fork 51
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
HARMONY-2007: Add is_sequential: true where missing for query-cmr in services.yml and validations for same #698
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c4dc93d
HARMONY-2007: Add is_sequential: true where missing for query-cmr in …
indiejames 961592d
HARMONY-2007: Clean up nested ifs
indiejames e0a0f62
HARMONY-2007: Add missed file commits for test
indiejames 1ab24fe
HARMONY-2007: Add docs for is_sequential
indiejames File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
52 changes: 52 additions & 0 deletions
52
services/harmony/test/resources/services_with_false_is_sequential_query_cmr_prod.yml
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,52 @@ | ||
# Order for each CMR endpoint in this file will reflect precedence of the service when | ||
# multiple services handle a collection | ||
|
||
# Default turbo configuration | ||
x-turbo-config: &default-turbo-config | ||
name: turbo | ||
params: &default-turbo-params | ||
env: &default-turbo-env | ||
USE_LOCALSTACK: !Env ${USE_LOCALSTACK} | ||
LOCALSTACK_HOST: !Env ${BACKEND_HOST} | ||
AWS_DEFAULT_REGION: us-west-2 | ||
STAGING_BUCKET: !Env ${STAGING_BUCKET} | ||
TEXT_LOGGER: !Env ${TEXT_LOGGER} | ||
BACKEND_HOST: !Env ${BACKEND_HOST} | ||
EDL_USERNAME: !Env ${EDL_USERNAME} | ||
EDL_PASSWORD: !Env ${EDL_PASSWORD} | ||
OAUTH_UID: !Env ${OAUTH_UID} | ||
OAUTH_PASSWORD: !Env ${OAUTH_PASSWORD} | ||
OAUTH_HOST: !Env ${OAUTH_HOST} | ||
OAUTH_CLIENT_ID: !Env ${OAUTH_CLIENT_ID} | ||
OAUTH_REDIRECT_URI: !Env ${OAUTH_REDIRECT_URI} | ||
FALLBACK_AUTHN_ENABLED: !Env ${FALLBACK_AUTHN_ENABLED} | ||
|
||
https://cmr.earthdata.nasa.gov: | ||
|
||
- name: non-sequential-query-cmr | ||
description: | | ||
testing service configuration with query-cmr with no is_sequential: | ||
data_operation_version: '0.20.0' | ||
type: | ||
<<: *default-turbo-config | ||
params: | ||
<<: *default-turbo-params | ||
env: | ||
<<: *default-turbo-env | ||
STAGING_PATH: public/asf/opera-rtc-s1-browse | ||
umm_s: S1271728813-ASF | ||
maximum_sync_granules: 0 | ||
capabilities: | ||
concatenation: false | ||
subsetting: | ||
bbox: false | ||
variable: false | ||
temporal: false | ||
output_formats: | ||
- image/png | ||
reprojection: true | ||
steps: | ||
- image: !Env ${QUERY_CMR_IMAGE} | ||
is_sequential: false | ||
- image: !Env ${OPERA_RTC_S1_BROWSE_IMAGE} | ||
- image: !Env ${HYBIG_IMAGE} |
52 changes: 52 additions & 0 deletions
52
services/harmony/test/resources/services_with_false_is_sequential_query_cmr_uat.yml
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,52 @@ | ||
# Order for each CMR endpoint in this file will reflect precedence of the service when | ||
# multiple services handle a collection | ||
|
||
# Default turbo configuration | ||
x-turbo-config: &default-turbo-config | ||
name: turbo | ||
params: &default-turbo-params | ||
env: &default-turbo-env | ||
USE_LOCALSTACK: !Env ${USE_LOCALSTACK} | ||
LOCALSTACK_HOST: !Env ${BACKEND_HOST} | ||
AWS_DEFAULT_REGION: us-west-2 | ||
STAGING_BUCKET: !Env ${STAGING_BUCKET} | ||
TEXT_LOGGER: !Env ${TEXT_LOGGER} | ||
BACKEND_HOST: !Env ${BACKEND_HOST} | ||
EDL_USERNAME: !Env ${EDL_USERNAME} | ||
EDL_PASSWORD: !Env ${EDL_PASSWORD} | ||
OAUTH_UID: !Env ${OAUTH_UID} | ||
OAUTH_PASSWORD: !Env ${OAUTH_PASSWORD} | ||
OAUTH_HOST: !Env ${OAUTH_HOST} | ||
OAUTH_CLIENT_ID: !Env ${OAUTH_CLIENT_ID} | ||
OAUTH_REDIRECT_URI: !Env ${OAUTH_REDIRECT_URI} | ||
FALLBACK_AUTHN_ENABLED: !Env ${FALLBACK_AUTHN_ENABLED} | ||
|
||
https://cmr.uat.earthdata.nasa.gov: | ||
|
||
- name: non-sequential-query-cmr | ||
description: | | ||
testing service configuration with query-cmr with no is_sequential: | ||
data_operation_version: '0.20.0' | ||
type: | ||
<<: *default-turbo-config | ||
params: | ||
<<: *default-turbo-params | ||
env: | ||
<<: *default-turbo-env | ||
STAGING_PATH: public/asf/opera-rtc-s1-browse | ||
umm_s: S1271728813-ASF | ||
maximum_sync_granules: 0 | ||
capabilities: | ||
concatenation: false | ||
subsetting: | ||
bbox: false | ||
variable: false | ||
temporal: false | ||
output_formats: | ||
- image/png | ||
reprojection: true | ||
steps: | ||
- image: !Env ${QUERY_CMR_IMAGE} | ||
is_sequential: false | ||
- image: !Env ${OPERA_RTC_S1_BROWSE_IMAGE} | ||
- image: !Env ${HYBIG_IMAGE} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should we remove the
is_sequential: true
setting fromquery-cmr
step and enforce it in the code? This feels like leaking unnecessary implementation details to the client.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a client error. This is an error that shows up when you start Harmony if it is misconfigured. I think I want to keep it this way instead of adding separate handling for query-cmr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have said service provider rather than client. The service providers shouldn't have to know the
query-cmr
step is sequential when they set up the service chain in services.yml. The fact that Harmony always execute query cmr sequentially shouldn't have to be spelled out in the service configuration especially when it is something the service providers doesn't care or know. Like I said that I am ok with having it spelled out because we do have other steps that also use theis_sequential
attribute, but I don't think it is necessary.