π OpenHands: AI-Driven Development
APP-1325: register GitlabV1CallbackProcessor for deserialization (#14110)
aivong-openhands9a743ff51ace
diff --git a/enterprise/saas_server.py b/enterprise/saas_server.pyindex 7936b315e2..35fb671643 100644--- a/enterprise/saas_server.py+++ b/enterprise/saas_server.py@@ -106,8 +106,15 @@ if GITHUB_APP_CLIENT_ID:# Add GitLab integration router only if GITLAB_APP_CLIENT_ID is setif GITLAB_APP_CLIENT_ID:+ # Make sure that the callback processor is loaded here so we don't get an error when deserializing+ from integrations.gitlab.gitlab_v1_callback_processor import ( # noqa: E402+ GitlabV1CallbackProcessor,+ )from server.routes.integration.gitlab import gitlab_integration_router # noqa: E402+ # Bludgeon mypy into not deleting my import+ logger.debug(f'Loaded {GitlabV1CallbackProcessor.__name__}')+base_app.include_router(gitlab_integration_router)base_app.include_router(api_keys_router) # Add routes for API key management