airbytehq / airbytehq/airbyte-api-python-sdk

ConnectionSyncModeEnum missing support for 'full_refresh_overwrite_deduped' sync mode

オープン
#122 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
61
フォーク
27
平均マージ
4分
マージ済み PR(30日)
2

説明

## Description
The SDK's `ConnectionSyncModeEnum` doesn't support the `full_refresh_overwrite_deduped` sync mode that is returned by Airbyte instances, causing connection listing operations to fail.

## Steps to Reproduce
1. Initialize AirbyteAPI client
2. Call `list_connections()` on a workspace that has connections using the `full_refresh_overwrite_deduped` sync mode
3. Observe the error when trying to deserialize the response

## Expected Behavior
The SDK should successfully parse all sync modes returned by the Airbyte API, including `full_refresh_overwrite_deduped`. See [here](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/full-refresh-overwrite-deduped)

## Actual Behavior
The SDK throws a ValueError:
```python
ValueError: 'full_refresh_overwrite_deduped' is not a valid ConnectionSyncModeEnum
```

## Verification of Other Endpoints
Using the same client configuration and authentication token, the following endpoints work successfully:
- `list_workspaces()` - Returns workspace data correctly, passed into the list_connections call
- `health_check()` - Confirms API is accessible and working

This confirms the issue is specifically with the ConnectionSyncModeEnum implementation and not related to authentication, connectivity, or general SDK configuration.

## Current SDK Supported Modes
The SDK currently only supports:
- full_refresh_overwrite
- full_refresh_append
- incremental_append
- incremental_deduped_history

## Environment Information
- SDK Version: 0.52.2
- Python Version: 3.12
- Operating System: Darwin 24.4.0

## Error Stack Trace
```python
Traceback (most recent call last):
File "/usr/local/lib/python3.12/enum.py", line 1158, in __new__
raise ve_exc
ValueError: 'full_refresh_overwrite_deduped' is not a valid ConnectionSyncModeEnum
```

## Additional Context
This appears to be a mismatch between the SDK's enum definitions and the actual sync modes supported by Airbyte instances. The SDK needs to be updated to include all possible sync modes that Airbyte can return.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Python SDK 内で ConnectionSyncModeEnum と list_connections レスポンスのデシリアライズ経路を特定します。full_refresh_overwrite_deduped のサポートを追加し、この同期モードを含む接続の一覧取得が報告された ValueError なしで完了することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。