I-ALiRT - Archive query api#1143
Merged
laspsandoval merged 5 commits intoIMAP-Science-Operations-Center:devfrom Feb 27, 2026
Merged
I-ALiRT - Archive query api#1143laspsandoval merged 5 commits intoIMAP-Science-Operations-Center:devfrom
laspsandoval merged 5 commits intoIMAP-Science-Operations-Center:devfrom
Conversation
lacoak21
reviewed
Feb 27, 2026
| config=botocore.client.Config(signature_version="s3v4"), | ||
| ) | ||
|
|
||
| response = s3_client.list_objects_v2(Bucket=bucket, Prefix=prefix) |
Contributor
There was a problem hiding this comment.
This list objects call only returns up to 1000. Not sure if that will cause an issue here but may be worth double checking in case someone wants to query without any parameters specified.
Contributor
Author
There was a problem hiding this comment.
Nice point. I might make the year required then.
lacoak21
approved these changes
Feb 27, 2026
Contributor
lacoak21
left a comment
There was a problem hiding this comment.
LGTM - I just had one question
34b3caa to
2a0e9a3
Compare
5328a3a
into
IMAP-Science-Operations-Center:dev
2 checks passed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces a new Lambda-based Archive Query API for the I-ALiRT system, enabling users to query available archive files in S3 by date and version. The API is fully integrated into the infrastructure and is accompanied by comprehensive unit tests to ensure correct filtering and error handling.
Key changes:
Archive Query API Implementation:
ialirt_archive_query_api.py) that handles GET requests to query available I-ALiRT archive files in S3, supporting optional filtering by year, month, day, and version. The Lambda validates input parameters, constructs the appropriate S3 prefix, and returns matching filenames as JSON.Infrastructure Integration:
ialirt_api_manager_construct.py), including role permissions and an API route (/ialirt-archive-query) for GET requests.Testing:
test_ialirt_archive_query_api.py) covering various query scenarios, including filtering by date and version, as well as error cases for invalid or incomplete parameters.# Change Summary