Skip to content

Commit

Permalink
Merge branch 'main' into gitlab_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir-heed authored Nov 10, 2024
2 parents 5aaef00 + cdb650d commit afe4874
Show file tree
Hide file tree
Showing 107 changed files with 14,392 additions and 12,716 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/apply-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: 'poetry'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integrations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: 'poetry'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: 'poetry'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
name: Publish Ocean
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Make install and build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upgrade-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-integration-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.12
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

<!-- towncrier release notes start -->

## 0.13.0 (2024-11-10)


### Improvements

- Bump python from 3.11 to 3.12 (0.13.0)

## 0.12.9 (2024-11-07)


### Bug Fixes

- Await logger writing exception on exit (Integration logs not being ingested)
- Await logger thread on exit (Integration logs not being ingested)
- Serialize exception (Integration logs not being ingested)


## 0.12.8 (2024-11-04)


Expand Down
16 changes: 16 additions & 0 deletions integrations/argocd/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

## 0.1.100 (2024-11-10)


### Improvements

- Bumped ocean version to ^0.13.0


## 0.1.99 (2024-11-10)


### Improvements

- Bumped ocean version to ^0.12.9


## 0.1.98 (2024-11-06)


Expand Down
117 changes: 57 additions & 60 deletions integrations/argocd/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions integrations/argocd/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tool.poetry]
name = "argocd"
version = "0.1.98"
version = "0.1.100"
description = "Argo CD integration powered by Ocean"
authors = ["Isaac Coffie <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.11"
port_ocean = {version = "0.12.8", extras = ["cli"]}
python = "^3.12"
port_ocean = {version = "^0.13.0", extras = ["cli"]}

[tool.poetry.group.dev.dependencies]
# Uncomment this if you want to debug the ocean core together with your integration
Expand Down
16 changes: 16 additions & 0 deletions integrations/aws/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

## 0.2.56 (2024-11-10)


### Improvements

- Bumped ocean version to ^0.13.0


## 0.2.55 (2024-11-10)


### Improvements

- Bumped ocean version to ^0.12.9


## 0.2.54 (2024-11-06)


Expand Down
1,601 changes: 824 additions & 777 deletions integrations/aws/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions integrations/aws/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tool.poetry]
name = "aws"
version = "0.2.54"
version = "0.2.56"
description = "This integration will map all your resources in all the available accounts to your Port entities"
authors = ["Shalev Avhar <[email protected]>", "Erik Zaadi <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.11"
port_ocean = {version = "^0.12.8", extras = ["cli"]}
python = "^3.12"
port_ocean = {version = "^0.13.0", extras = ["cli"]}
python-dotenv = "^1.0.1"
aioboto3 = "^12.4.0"
boto3-stubs = {version = "1.34.76", extras = ["acm", "apigateway", "appconfig", "athena", "cloudcontrol", "cloudformation", "cloudwatch", "dynamodb", "ec2", "ec2-instance-connect", "ecr", "ecs", "elasticache", "elb", "elbv2", "events", "iam", "lambda", "logs", "organizations", "rds", "route53", "s3", "sagemaker", "secretsmanager", "sns", "sqs", "ssm", "sts"]}
Expand Down
24 changes: 24 additions & 0 deletions integrations/azure-devops/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

## 0.1.81 (2024-11-10)


### Improvements

- Bumped ocean version to ^0.13.0


## 0.1.80 (2024-11-10)


### Improvements

- Bumped ocean version to ^0.12.9


## 0.1.79 (2024-11-07)


### Bug Fixes

- Fixed the API endpoint used in the boards kind to iterate through all project teams, ensuring non-default team boards and columns are ingested


## 0.1.78 (2024-11-06)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,24 +286,27 @@ async def get_columns(self) -> AsyncGenerator[list[dict[str, Any]], None]:
]

async def _enrich_boards(
self, boards: list[dict[str, Any]], project_id: str
self, boards: list[dict[str, Any]], project_id: str, team_id: str
) -> list[dict[str, Any]]:
for board in boards:
response = await self.send_request(
"GET",
f"{self._organization_base_url}/{project_id}/{API_URL_PREFIX}/work/boards/{board['id']}",
f"{self._organization_base_url}/{project_id}/{team_id}/{API_URL_PREFIX}/work/boards/{board['id']}",
)
board.update(response.json())
return boards

async def _get_boards(self, project_id: str) -> list[dict[str, Any]]:
get_boards_url = (
f"{self._organization_base_url}/{project_id}/{API_URL_PREFIX}/work/boards"
)
response = await self.send_request("GET", get_boards_url)
board_data = response.json().get("value", [])
logger.info(f"Found {len(board_data)} boards for project {project_id}")
return await self._enrich_boards(board_data, project_id)
async def _get_boards(
self, project_id: str
) -> AsyncGenerator[list[dict[str, Any]], None]:
teams_url = f"{self._organization_base_url}/{API_URL_PREFIX}/projects/{project_id}/teams"
async for teams_in_project in self._get_paginated_by_top_and_skip(teams_url):
for team in teams_in_project:
get_boards_url = f"{self._organization_base_url}/{project_id}/{team['id']}/{API_URL_PREFIX}/work/boards"
response = await self.send_request("GET", get_boards_url)
board_data = response.json().get("value", [])
logger.info(f"Found {len(board_data)} boards for project {project_id}")
yield await self._enrich_boards(board_data, project_id, team["id"])

@cache_iterator_result()
async def get_boards_in_organization(
Expand All @@ -313,7 +316,8 @@ async def get_boards_in_organization(
yield [
{**board, "__project": project}
for project in projects
for board in await self._get_boards(project["id"])
async for boards in self._get_boards(project["id"])
for board in boards
]

async def generate_subscriptions_webhook_events(self) -> list[WebhookEvent]:
Expand Down
Loading

0 comments on commit afe4874

Please sign in to comment.