MCPcopy Create free account

hub / github.com/OpenHands/OpenHands / functions

Functions11,022 in github.com/OpenHands/OpenHands

↓ 6 callersMethodget_webhooks_by_resources
Bulk fetch webhooks for multiple resources. This is more efficient than fetching one at a time in a loop. Args: project_
enterprise/storage/gitlab_webhook_store.py:251
↓ 6 callersFunctiongitlab_callback_processor
()
enterprise/tests/unit/integrations/gitlab/test_gitlab_v1_callback_processor.py:39
↓ 6 callersFunctionhandleAuthRedirect
(redirectUrl: string)
frontend/src/components/features/auth/login-content.tsx:84
↓ 6 callersFunctionhandleCaptureConsent
( posthog: PostHog | undefined, consent: boolean, )
frontend/src/utils/handle-capture-consent.ts:8
↓ 6 callersFunctionhandle_callback_error
Handle callback processing errors with appropriate logging and user messages. This centralizes the error handling logic for V1 callback processor
enterprise/integrations/v1_utils.py:27
↓ 6 callersFunctioninfer_repo_from_message
Extract repository names as 'owner/repo' from URLs and direct mentions. Supports cloud and self-hosted Git providers: GitHub / GitHub Enterprise,
enterprise/integrations/utils.py:173
↓ 6 callersMethodis_system_key_name
Check if a key name indicates a system key.
enterprise/storage/api_key_store.py:73
↓ 6 callersMethodis_token_expired
Check if an invitation token has expired. Args: invitation: The invitation to check Returns: bool: True if e
enterprise/storage/org_invitation_store.py:252
↓ 6 callersMethodlist
(self, path: str)
openhands/app_server/file_store/s3.py:122
↓ 6 callersMethodlist_summaries
Metadata projection ``{id, name, agent_kind, revision, llm_profile_ref, mcp_server_refs}`` per profile — the shape the SDK FK scans and the li
openhands/app_server/settings/agent_profiles.py:134
↓ 6 callersFunctionlogout
(request: Request)
enterprise/server/routes/auth.py:1185
↓ 6 callersFunctionmake_service
()
tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_branches.py:17
↓ 6 callersMethodmark_uploaded
Mark this metrics record as successfully uploaded.
enterprise/storage/telemetry_metrics.py:84
↓ 6 callersMethodmark_user_synced
Mark a user as synced to a specific audience. Uses upsert to handle race conditions - if the user is already marked as synced, this i
enterprise/storage/resend_synced_user_store.py:53
↓ 6 callersMethodprocess_stats_event
Process a stats event and update conversation statistics. Args: event: The ConversationStateUpdateEvent with key='stats'
openhands/app_server/app_conversation/app_conversation_info_service.py:107
↓ 6 callersFunctionrefresh_managed_llm_api_key
Refresh the managed OpenHands LiteLLM key for the current user/org. Delegates the full managed-key lifecycle (effective-config classification,
enterprise/server/routes/api_keys.py:443
↓ 6 callersFunctionrequest_json
( path: str, *, method: str = 'GET', body: dict[str, Any] | None = None, )
scripts/auto_close_duplicate_issues.py:52
↓ 6 callersMethodrevoke_super_admin
Revoke the instance-level super-admin role from a user. Clears ``user.role_id``. Refuses to remove the **last** remaining super admin
enterprise/storage/user_store.py:943
↓ 6 callersMethodsaveSettings
* Save the settings to the server. Only valid settings are saved. * @param settings - the settings to save
frontend/src/api/settings-service/settings-service.api.ts:37
↓ 6 callersMethodsearch_event_callbacks
Search for event callbacks, optionally filtered by event_id.
openhands/app_server/event_callback/event_callback_service.py:34
↓ 6 callersMethodsearch_sandbox_specs
Search for sandbox specs.
openhands/app_server/sandbox/sandbox_spec_service.py:48
↓ 6 callersMethodsearch_shared_events
Search events for a specific shared conversation.
enterprise/server/sharing/shared_event_service.py:26
↓ 6 callersFunctionsetConversationState
( conversationId: string, updates: Partial<ConversationState>, )
frontend/src/utils/conversation-local-storage.ts:103
↓ 6 callersFunctionset_response_cookie
( request: Request, response: Response, keycloak_access_token: str, keycloak_refresh_token: st
enterprise/server/routes/auth.py:98
↓ 6 callersMethodstore
Store session init data.
openhands/app_server/settings/settings_store.py:42
↓ 6 callersMethodstore_user_repo_mappings
Store user-repository mappings in database (async version) 1. Make sure to store mappings if they don't exist 2. If a mappin
enterprise/storage/user_repo_map_store.py:10
↓ 6 callersMethodto_settings
(self)
enterprise/storage/user_settings.py:102
↓ 6 callersFunctionunlink_workspace
Unlink from Jira DC and, for integration owners, optionally revoke the hook. A non-owner user is only detached from the workspace (their personal
enterprise/server/routes/integration/jira_dc.py:1229
↓ 6 callersMethodupdate_current_org
Update the user's current organization. Args: user_id: The user's ID (Keycloak user ID) org_id: The organization ID t
enterprise/storage/user_store.py:825
↓ 6 callersMethodupdate_invitation_status
Update an invitation's status. Args: invitation_id: The invitation ID status: New status (pending, accepted, revoked,
enterprise/storage/org_invitation_store.py:202
↓ 6 callersFunctionuseAppMode
()
frontend/src/hooks/use-app-mode.ts:17
↓ 6 callersFunctionuseTaskPolling
()
frontend/src/hooks/query/use-task-polling.ts:22
↓ 6 callersFunctionvalidate_service_api_key
Validate the service API key from the request header. Args: x_service_api_key: The service API key from the X-Service-API-Key header
enterprise/server/routes/service.py:57
↓ 6 callersFunctionvalidate_workspace_integration
Validate if the user's organization has an active Jira integration.
enterprise/server/routes/integration/jira.py:735
↓ 6 callersFunctionverify_email
(request: Request, user_id: str, is_auth_flow: bool = False)
enterprise/server/routes/email.py:190
↓ 5 callersMethod__aenter__
(self)
enterprise/server/app_lifespan/saas_app_lifespan_service.py:26
↓ 5 callersMethod__init__
(self, message: str = 'Your email does not match the invitation')
enterprise/server/routes/org_invitation_models.py:57
↓ 5 callersFunction_convert_skill_info_to_skill
Convert skill info from API response to Skill object. Args: skill_info: SkillInfo model from API response Returns: Skill obj
openhands/app_server/app_conversation/skill_loader.py:620
↓ 5 callersFunction_create_byor_key_alias
(user_id: str, org_id: str)
enterprise/server/routes/api_keys.py:64
↓ 5 callersFunction_create_chunks_from_raw_string
(content: str, size: int)
openhands/app_server/utils/chunk_localizer.py:29
↓ 5 callersMethod_delete_key
( client: httpx.AsyncClient, key_id: str, key_alias: str | None = None, )
enterprise/storage/lite_llm_manager.py:1600
↓ 5 callersMethod_delete_team
( client: httpx.AsyncClient, team_id: str, )
enterprise/storage/lite_llm_manager.py:1102
↓ 5 callersMethod_distinct_id
Return the PostHog distinct_id for the given user. In feature/staging environments, prefixes with 'FEATURE_' to keep test traffic sep
openhands/analytics/analytics_service.py:544
↓ 5 callersMethod_extract_owner_info
Extract owner information from the webhook payload. Different providers structure their payloads differently, so this method
enterprise/server/services/automation_event_service.py:279
↓ 5 callersFunction_fetch_last_used
(async_session_maker, api_key_value: str)
enterprise/tests/unit/test_api_key_store.py:568
↓ 5 callersFunction_finalize_sandbox_delete
Archive the conversation's workspace, then delete the sandbox if unreferenced. Runs detached (background task) AFTER the delete response was alre
openhands/app_server/app_conversation/app_conversation_router.py:878
↓ 5 callersMethod_get_active_workspace
Validate and return the workspace for the webhook. Returns None if: - Workspace not found - Workspace is inactive - R
enterprise/integrations/jira/jira_manager.py:176
↓ 5 callersFunction_get_agent_server_context
Get the agent server context for a conversation. This helper retrieves all necessary information to communicate with the agent server for a g
openhands/app_server/app_conversation/app_conversation_router.py:134
↓ 5 callersMethod_get_all_keys_for_user
Get all keys for a user from LiteLLM. Returns a list of key info dictionaries containing: - token: the key value (hashed or partial)
enterprise/storage/lite_llm_manager.py:1469
↓ 5 callersFunction_get_auth_url
Get authentication service URL from environment variable. Reads AUTH_URL from environment. If not set or empty, returns None.
openhands/app_server/web_client/default_web_client_config_injector.py:44
↓ 5 callersMethod_get_bucket_name
Get bucket name, falling back to environment variable if not set.
openhands/app_server/file_store/s3.py:34
↓ 5 callersMethod_get_effective_llm_api_key
( org: Org, org_member: OrgMember, )
enterprise/storage/saas_settings_store.py:163
↓ 5 callersFunction_get_github_app_slug
Get GitHub app slug from environment variable. Reads GITHUB_APP_SLUG from environment. If set, returns the value. If empty or unset, returns
openhands/app_server/web_client/default_web_client_config_injector.py:103
↓ 5 callersMethod_get_issue_number_from_payload
Extract issue/PR number from a GitHub webhook payload. Supports all event types that can trigger jobs: - Labeled issues: payload['iss
enterprise/integrations/github/github_manager.py:138
↓ 5 callersFunction_get_maintenance_start_time
Get maintenance start time from environment variable. Reads MAINTENANCE_START_TIME from environment. If set to a valid ISO 8601 timestamp, re
openhands/app_server/web_client/default_web_client_config_injector.py:53
↓ 5 callersMethod_get_overrides
(self, org_id: UUID)
enterprise/server/services/org_budget_service.py:290
↓ 5 callersFunction_get_posthog_client_key
Get PostHog client key from environment variable. Reads POSTHOG_CLIENT_KEY from environment. If not set or empty, returns the OSS default key
openhands/app_server/web_client/default_web_client_config_injector.py:34
↓ 5 callersMethod_get_runtimes_batch
Get multiple runtimes in a single batch request. Args: sandbox_ids: List of sandbox IDs to fetch Returns: Di
openhands/app_server/sandbox/remote_sandbox_service.py:253
↓ 5 callersMethod_get_user_keys
Get all keys for a user from LiteLLM. Args: client: The HTTP client to use for the request keycloak_user_id: The user
enterprise/storage/lite_llm_manager.py:1001
↓ 5 callersFunction_get_user_orgs_with_data
Load Org objects for a user's org memberships. Uses OrgStore.get_orgs_by_ids() to batch-load all Org objects in a single query, avoiding N+1.
enterprise/server/routes/auth.py:157
↓ 5 callersMethod_install_managed_key_refresh_modules
( monkeypatch, *, get_key, rotate_key, verify_key )
tests/unit/app_server/test_live_status_app_conversation_service.py:770
↓ 5 callersMethod_invitation
(invitation_id=1)
enterprise/tests/unit/test_org_invitation_service.py:839
↓ 5 callersFunction_is_azure_devops_repository
Check if a repository is hosted on Azure DevOps. Args: repo_name: Repository name (e.g., "org/project/repo") user_context: UserCo
openhands/app_server/app_conversation/skill_loader.py:84
↓ 5 callersFunction_is_gitlab_repository
Check if a repository is hosted on GitLab. Args: repo_name: Repository name (e.g., "gitlab.com/org/repo" or "org/repo") user_cont
openhands/app_server/app_conversation/skill_loader.py:64
↓ 5 callersMethod_is_last_owner
Check if user is the last owner of the organization.
enterprise/server/services/org_member_service.py:399
↓ 5 callersFunction_load_persisted_conversation_settings
Load persisted conversation settings via the SDK loader.
openhands/app_server/settings/settings_models.py:600
↓ 5 callersMethod_make_me_response
Create a MeResponse for testing.
enterprise/tests/unit/server/routes/test_orgs.py:3053
↓ 5 callersFunction_make_registration
Build a MarketplaceRegistration with private-repo defaults.
tests/unit/app_server/test_skill_loader.py:1021
↓ 5 callersMethod_parse_refresh_response
(self, data: dict)
enterprise/server/auth/token_manager.py:529
↓ 5 callersMethod_parse_repository
( self, repo: dict, link_header: str | None = None )
openhands/app_server/integrations/forgejo/service/base.py:170
↓ 5 callersMethod_patched_route
Like ``_patched`` but also patches ``get_instance`` to return a real ``SaasSettingsStore`` bound to the test DB, so the route exercises the
enterprise/tests/unit/server/routes/test_api_keys.py:555
↓ 5 callersMethod_post_summary_to_github
Post a resolver response comment to the configured GitHub issue.
enterprise/integrations/github/github_v1_callback_processor.py:131
↓ 5 callersMethod_process_raw_comments
Convert raw comment data to Comment objects.
openhands/app_server/integrations/github/service/resolver.py:191
↓ 5 callersMethod_resolve_default_org_fallback
Resolve unclaimed events to the bootstrapped default org. Applies only when the default org is enabled (OPENHANDS_DEFAULT_ORG_*) and
enterprise/server/services/automation_event_service.py:239
↓ 5 callersMethod_resolve_personal_org
Resolve a provider user to their personal OpenHands org. For personal repos (owner type is 'User'), the OpenHands org_id is
enterprise/server/services/automation_event_service.py:400
↓ 5 callersFunction_resolved_profile_user
( *, tools=None, system_message_suffix='PROFILE_SUFFIX', disabled_skills=None, available_s
tests/unit/app_server/test_live_status_app_conversation_service.py:174
↓ 5 callersFunction_role
(name)
enterprise/tests/unit/test_agent_profiles.py:1140
↓ 5 callersMethod_search_repositories
Search repositories for a user with optional query filtering. Args: user_auth: The user's authentication context quer
enterprise/integrations/slack/slack_manager.py:309
↓ 5 callersMethod_send_error_from_payload
Send error comment before view is created (using payload directly).
enterprise/integrations/jira/jira_manager.py:382
↓ 5 callersFunction_set_agent_profiles
(async_session_maker, org_id, agent_profiles)
enterprise/tests/unit/test_agent_profiles.py:527
↓ 5 callersMethod_set_cached_value
Set a cached value in Redis with TTL. Fails silently if Redis is unavailable (graceful degradation).
enterprise/server/services/automation_event_service.py:512
↓ 5 callersFunction_settings_with_mcp_auth
( url: str = 'https://integration.example.com/mcp', )
tests/unit/storage/data_models/test_settings.py:233
↓ 5 callersMethod_setup_active_profile
Profile with the given refs, member pointed at it, member mcp_config with three servers, full load() viable.
enterprise/tests/unit/test_agent_profiles.py:806
↓ 5 callersMethod_store_patches
(self, async_session_maker)
enterprise/tests/unit/test_agent_profiles.py:847
↓ 5 callersMethod_team_alias_for_org
Resolve the dashboard-friendly team_alias for an org (its display name, or 'Personal Workspace' for the user's personal org). The org
enterprise/storage/lite_llm_manager.py:656
↓ 5 callersFunction_to_llm_models
Convert raw model strings into ``LLMModel`` objects with verified flags. Hidden models (served by the backend but not promoted, e.g. legacy alias
openhands/app_server/config_api/default_llm_model_service.py:43
↓ 5 callersMethod_user_exists
Check if a user exists in LiteLLM. Returns True if the user exists, False otherwise.
enterprise/storage/lite_llm_manager.py:795
↓ 5 callersFunction_webhook
( *, webhook_id: int = 123, project_key: str = 'PROJ', repo_slug: str = 'myrepo', webhook_
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_webhook.py:49
↓ 5 callersFunctionadd_shutdown_listener
(callable: Callable)
openhands/app_server/utils/shutdown_listener.py:76
↓ 5 callersFunctionasync_session_maker
Create an async session maker for testing.
enterprise/tests/unit/storage/test_user_app_settings_store.py:35
↓ 5 callersMethodbackfill_user_email
Set User.email and email_verified from IDP if they are still NULL. Called during login to gradually fix existing users whose email wa
enterprise/storage/user_store.py:1113
↓ 5 callersMethodbatchGetAppConversations
* Batch get V1 app conversations by their IDs * Returns null for any missing conversations * * @param ids Array of conversation IDs (max 100)
frontend/src/api/conversation-service/v1-conversation-service.api.ts:298
↓ 5 callersFunctionbuildHttpBaseUrl
( conversationUrl: string | null | undefined, )
frontend/src/utils/websocket-url.ts:63
↓ 5 callersMethodcount_app_conversation_start_tasks
Count conversation start tasks.
openhands/app_server/app_conversation/app_conversation_start_task_service.py:30
↓ 5 callersMethodcount_events
Count events matching the given filters.
openhands/app_server/event/event_service.py:39
↓ 5 callersMethodcount_shared_events
Count events for a specific shared conversation.
enterprise/server/sharing/shared_event_service.py:39
↓ 5 callersMethodcreate_invitations_batch
Create multiple organization invitations concurrently. Validates permissions once upfront, then creates invitations in parallel. Arg
enterprise/server/services/org_invitation_service.py:160
↓ 5 callersFunctioncreate_jira_workspace
Create a new Jira workspace registration.
enterprise/server/routes/integration/jira.py:353
↓ 5 callersMethodcreate_litellm_integration
Create LiteLLM team integration for the organization. Args: org_id: Organization ID user_id: User ID who wil
enterprise/storage/org_service.py:56
↓ 5 callersFunctioncreate_org
Helper to create an org in the test database.
enterprise/tests/unit/server/auth/test_saas_user_auth_org_info.py:68
← previousnext →601–700 of 11,022, ranked by callers