Skip to content

Commit

Permalink
Fixed case where integration creation failed when using WEBHOOKS_ONLY…
Browse files Browse the repository at this point in the history
… event listener
  • Loading branch information
matan84 committed Jan 8, 2025
1 parent 5473284 commit 06d23e5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"console": "integratedTerminal",
"cwd": "${workspaceFolder}/integrations/jira",
"envFile": "${workspaceFolder}/integrations/jira/.env",
"justMyCode": true,
"name": "Run jira integration",
"program": "${workspaceFolder}/integrations/jira/debug.py",
"python": "${workspaceFolder}/integrations/jira/.venv/bin/python",
"request": "launch",
"type": "debugpy"
},
{
"console": "integratedTerminal",
"cwd": "${workspaceFolder}/integrations/snyk",
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

<!-- towncrier release notes start -->

## 0.17.7 (2025-01-08)

### Bug Fixes

- Fixed a bug where creating an integration with WEBHOOKS_ONLY event listener failed.


## 0.17.6 (2025-01-08)

### Bug Fixes
Expand Down
5 changes: 4 additions & 1 deletion port_ocean/core/event_listener/webhooks_only.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Literal
from typing import Any, Literal

from loguru import logger

Expand All @@ -17,6 +17,9 @@ class WebhooksOnlyEventListenerSettings(EventListenerSettings):
type: Literal["WEBHOOKS_ONLY"]
should_resync: bool = False

def to_request(self) -> dict[str, Any]:
return {}


class WebhooksOnlyEventListener(BaseEventListener):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "port-ocean"
version = "0.17.6"
version = "0.17.7"
description = "Port Ocean is a CLI tool for managing your Port projects."
readme = "README.md"
homepage = "https://app.getport.io"
Expand Down

0 comments on commit 06d23e5

Please sign in to comment.