Skip to content

Commit

Permalink
return jira project sync
Browse files Browse the repository at this point in the history
  • Loading branch information
talsabagport committed Oct 30, 2024
1 parent 23c4e19 commit 16c0ff8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions integrations/jira/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ async def setup_application() -> None:
)


# @ocean.on_resync(ObjectKind.PROJECT)
# async def on_resync_projects(kind: str) -> ASYNC_GENERATOR_RESYNC_TYPE:
# client = JiraClient(
# ocean.integration_config["jira_host"],
# ocean.integration_config["atlassian_user_email"],
# ocean.integration_config["atlassian_user_token"],
# )
#
# async for projects in client.get_paginated_projects():
# logger.info(f"Received project batch with {len(projects)} issues")
# yield projects
@ocean.on_resync(ObjectKind.PROJECT)
async def on_resync_projects(kind: str) -> ASYNC_GENERATOR_RESYNC_TYPE:
client = JiraClient(
ocean.integration_config["jira_host"],
ocean.integration_config["atlassian_user_email"],
ocean.integration_config["atlassian_user_token"],
)

async for projects in client.get_paginated_projects():
logger.info(f"Received project batch with {len(projects)} issues")
yield projects


@ocean.on_resync(ObjectKind.ISSUE)
Expand Down
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-dev043"
version = "0.1.89-dev044"
description = "Integration to bring information from Jira into Port"
authors = ["Mor Paz <[email protected]>"]

Expand Down

0 comments on commit 16c0ff8

Please sign in to comment.