Preload callback processor class to prevent Pydantic Deserialization Error (#12776)

This commit is contained in:
Tim O'Farrell
2026-02-06 04:29:28 -07:00
committed by GitHub
parent 05d5f8848a
commit 89475095d9

View File

@@ -78,8 +78,15 @@ base_app.include_router(shared_event_router)
# Add GitHub integration router only if GITHUB_APP_CLIENT_ID is set
if GITHUB_APP_CLIENT_ID:
# Make sure that the callback processor is loaded here so we don't get an error when deserializing
from integrations.github.github_v1_callback_processor import ( # noqa: E402
GithubV1CallbackProcessor,
)
from server.routes.integration.github import github_integration_router # noqa: E402
# Bludgeon mypy into not deleting my import
logger.debug(f'Loaded {GithubV1CallbackProcessor.__name__}')
base_app.include_router(
github_integration_router
) # Add additional route for integration webhook events