I-ALiRT - add since parameter#26
Merged
Merged
Conversation
lacoak21
approved these changes
Mar 4, 2026
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 adds support for a new
--sinceparameter to theialirt-archive-queryCLI and underlying API, allowing users to query archive files from a specified date onward. It also enforces that--sincecannot be combined with the existing date filters (--year,--month,--day). Documentation and tests have been updated to reflect and validate this new functionality.New Feature: Archive Query by Date Range
--sinceargument to the CLI (ialirt_data_access/cli.py) and thearchive_queryfunction (ialirt_data_access/io.py), enabling users to retrieve all files on or after a given date inYYYYMMDDformat. [1] [2] [3]Input Validation
sincecannot be combined withyear,month, ordayin the API, raising aValueErrorif this rule is violated.Documentation Updates
README.mdandialirt_data_access/cli.pyto describe the new--sinceparameter and its constraints. [1] [2]Testing
since, and to ensure errors are raised whensinceis combined with other date filters.Internal Refactoring
sinceonly when provided, ensuring clean API requests.These changes collectively enhance the flexibility of archive queries and improve user guidance and code robustness.