OpenHands / OpenHands/enterprise

Support pagination for branch search queries

Open
#22 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.