Add --created-before and --updated-before filters to maniphest search#129
Merged
Add --created-before and --updated-before filters to maniphest search#129
Conversation
This adds support for filtering tasks created or updated more than N days ago, complementing the existing --created-after and --updated-after filters. New filters: - --created-before=N: Tasks created more than N days ago - --updated-before=N: Tasks updated more than N days ago These filters use the Phabricator API constraints createdEnd and modifiedEnd to filter tasks by date. They can be combined with the existing "after" filters to create date ranges (e.g., tasks created between 7 and 30 days ago). Changes: - CLI: Added new options to help and parameter extraction - Core: Added parameters to task_search() with Unix timestamp conversion - API: Applied createdEnd/modifiedEnd constraints in all search code paths - Docs: Added examples and updated filter documentation - YAML: Added support in search templates via supported_params 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
Summary
This PR adds support for filtering tasks created or updated more than N days ago, complementing the existing
--created-afterand--updated-afterfilters that find tasks within the last N days.New Filters
--created-before=N: Tasks created more than N days ago--updated-before=N: Tasks updated more than N days agoUse Cases
These filters enable several useful queries:
--updated-before=14 --priority="in:High"(high-priority tasks not updated in 2 weeks)--created-after=30 --created-before=7for tasks created between 7-30 days ago)--created-before=90(tasks older than 3 months)Implementation Details
createdEndandmodifiedEnd--created-afterand--updated-afterfilterssupported_paramsdocs/maniphest-cli.mdChanges
phabfive/cli.py): Added options to help and parameter extractionphabfive/maniphest.py): Added parameters totask_search()with Unix timestamp conversion and API constraint mappingdocs/maniphest-cli.md): Added examples and updated all filter referencesTest Plan
Tested with:
All filters work correctly and appear properly in filter descriptions.
🤖 Generated with Claude Code