Skip to content

Commit

Permalink
try using lifespan differently
Browse files Browse the repository at this point in the history
  • Loading branch information
talsabagport committed Oct 31, 2024
1 parent 5163985 commit 5318752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integrations/jira/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jira"
version = "0.1.89-dev051"
version = "0.1.89-dev052"
description = "Integration to bring information from Jira into Port"
authors = ["Mor Paz <[email protected]>"]

Expand Down
3 changes: 2 additions & 1 deletion port_ocean/ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ async def lifecycle(_: FastAPI) -> AsyncIterator[None]:
*self.config.get_sensitive_fields_data()
)
self.integration_router = integration_router or APIRouter()
self.fast_api_app.include_router(self.integration_router, prefix="/integration")

@self.integration_router.post("/webhook")
async def handle_webhook_request(data: dict[str, Any]) -> dict[str, Any]:
return {"ok": True}

self.fast_api_app.include_router(self.integration_router, prefix="/integration")

self.port_client = PortClient(
base_url=self.config.port.base_url,
client_id=self.config.port.client_id,
Expand Down

0 comments on commit 5318752

Please sign in to comment.