OpenHands / OpenHands/enterprise
Support pagination for branch search queries
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4
- Forks
- 2
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 101
Description
Problem
The current implementation of branch search does not support pagination. When a user tries to use pagination with branch search, they receive an error:
paging is not supported when searching branches. It will be supported after API refactoring.
Expected Behavior
Branch search should support pagination similar to how regular branch listing works, allowing users to navigate through large numbers of search results.
Technical Details
The search_branches method in the Git client does not support paging in the same way as get_branches. These two methods should be merged into a single paginated method.
See code location: openhands/app_server/git/git_router.py lines 245-252
Acceptance Criteria
- Implement pagination support for branch search queries
- Ensure consistent behavior between branch search and branch listing
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in openhands/app_server/git/git_router.py around lines 245-252, then compare the search_branches and get_branches implementations and their pagination handling. Implement shared paginated behavior for branch search and verify that search and listing return consistent navigable results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100