π OpenHands: AI-Driven Development
(Chore): Rm deprecate `/installations` route (#7945)
Rohit Malhotraa09ecadba6c9
diff --git a/openhands/server/routes/git.py b/openhands/server/routes/git.pyindex ce8dbf48f9..3f737684e8 100644--- a/openhands/server/routes/git.py+++ b/openhands/server/routes/git.py@@ -88,39 +88,6 @@ async def get_user()[email protected]('/installations', response_model=list[int])-async def get_github_installation_ids(- provider_tokens: PROVIDER_TOKEN_TYPE | None = Depends(get_provider_tokens),- access_token: SecretStr | None = Depends(get_access_token),-):- if provider_tokens and ProviderType.GITHUB in provider_tokens:- token = provider_tokens[ProviderType.GITHUB]-- client = GithubServiceImpl(- user_id=token.user_id, external_auth_token=access_token, token=token.token- )- try:- installations_ids: list[int] = await client.get_installation_ids()- return installations_ids-- except AuthenticationError as e:- return JSONResponse(- content=str(e),- status_code=status.HTTP_401_UNAUTHORIZED,- )-- except UnknownException as e:- return JSONResponse(- content=str(e),- status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,- )-- return JSONResponse(- content='GitHub token required.',- status_code=status.HTTP_401_UNAUTHORIZED,- )--@app.get('/search/repositories', response_model=list[Repository])async def search_repositories(query: str,