-
Notifications
You must be signed in to change notification settings - Fork 50
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-1780: Set up SAMBAH chain to skip concise if extend is requested but not concatenation. #685
Conversation
…ted but not concatenation.
FYI @danielfromearth and @ank1m so you can verify the behavior matches your expectations. |
Question: When concatenate is true and extend is false (explicitly), the default extend dimension is used for the request currently. i.e. extend is false is ignored. Do we want this behavior or a validation error instead for this case? |
|
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.
Tested successfully.
…e and concatenate=true, batchee and stitchee will be skipped and only l2ss-py and concise will run.
I made the change to only run l2ss-py and concise in this scenario. |
Just wanted to make sure that |
Yes, that's the behavior - tested by this case: |
Jira Issue ID
HARMONY-1780
Description
ASDC asked for us to change the behavior of the SAMBAH chain to skip calling podaac-concise if the user requested extend, but did not specify concatenation. They also specified a few other AC that are already working as expected prior to this PR.
Note that the extend parameter is overloaded - it can be treated as a boolean ('true' or 'false') or as a comma-separated list of dimensions to use as the extend dimensions.
Local Test Steps
See the behavior requested in the AC and make sure that all of it passes.
batchee,stitchee,podaac-l2-subsetter,podaac-concise
to yourLOCALLY_DEPLOYED_SERVICES
in .envCustom dimensions, concatenate true - runs all services: http://localhost:3000/C1254854453-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?subset=lat(-70%3A30)&subset=lon(-157.5%3A-10)&concatenate=true&extend=foo,bar&maxResults=2
Custom dimensions, no concatenation - skips Concise: http://localhost:3000/C1254854453-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?subset=lat(-70%3A30)&subset=lon(-157.5%3A-10)&extend=foo,bar&maxResults=2
No extend, only concatenation - runs all services: http://localhost:3000/C1254854453-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?subset=lat(-70%3A30)&subset=lon(-157.5%3A-10)&concatenate=true&maxResults=2
No extend, no concatenation - only runs l2ss-py: http://localhost:3000/C1254854453-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?subset=lat(-70%3A30)&subset=lon(-157.5%3A-10)&maxResults=2
Extend true, no concatenation - skips Concise, uses default extendDimensions (will need to look at the operation in the database or print out the operation in the code): http://localhost:3000/C1254854453-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?subset=lat(-70%3A30)&subset=lon(-157.5%3A-10)&maxResults=2&extend=true
Extend false, no concatenation - only runs l2ss-py: http://localhost:3000/C1254854453-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?subset=lat(-70%3A30)&subset=lon(-157.5%3A-10)&maxResults=2&extend=false
PR Acceptance Checklist