[Bug] Bug: purge_instance_history_by has incorrect parameter handling and time filter behavior
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
DurableOrchestrationClient の purge_instance_history_by から始め、issue に記載された動作を azure-functions-durable==1.2.10 の要件と併せて確認してください。提供された呼び出しを使用して、created_time_from を省略しても 400 応答が発生しなくなったこと、および created_time_from と created_time_to が交差する区間を定義することを検証してください。
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
The created_time_from parameter should be optional, and the time filters should be combined with an intersection (AND) to allow precise time intervals.
Actual Behavior
Observe that the API returns a 400 Bad Request error.
Steps to Reproduce
Use the following code to call purge_instance_history_by
await client.purge_instance_history_by(
created_time_to=datetime.now(timezone.utc) - timedelta(days=1),
runtime_status=[
df.OrchestrationRuntimeStatus.Completed,
df.OrchestrationRuntimeStatus.Failed,
df.OrchestrationRuntimeStatus.Terminated,
],
)
Observe that the API returns a 400 Bad Request error.
requirements.txt file
azure-functions-durable==1.2.10
Description:
When using the purge_instance_history_by method in the DurableOrchestrationClient I encountered the following issues:
-
Missing Mandatory Parameter:
The created_time_from parameter is treated as optional in the SDK, but it is actually mandatory in the underlying API. If created_time_from is not
provided, the API returns a 400 Bad Request error. -
Time Filter Behavior:
The time filters (created_time_from and created_time_to) are combined with a union (OR) instead of an intersection (AND). This makes it impossible
to define precise time intervals for purging.
- 主要言語
- Python
- スター
- 157
- フォーク
- 70
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-functions-durable-python のほかの issue
-
Enhancement fixed-in-v2 P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/azure-functions-durable-python#617 · コメント 1 件 ·
-
bug Debuggability fixed-in-v2 P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/azure-functions-durable-python#587 · コメント 2 件 · リアクション 1 件 ·
-
Custom object serialization broken for orchestrator return values対応中かも @andystaples が 69 日前に担当しました。 オープンbug fixed-in-v2 P2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Azure/azure-functions-durable-python#568 · コメント 1 件 ·
-
bug fixed-in-v2 P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/azure-functions-durable-python#475 · コメント 1 件 ·
-
Enhancement fixed-in-v2 P3
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
Azure/azure-functions-durable-python#618 · コメント 1 件 ·
Azure/azure-functions-durable-python の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
MystenLabs/MemWal#1163 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
infertopics leaves new nodes without a topic when untopiced neighbours outnumber topiced ones対応中かも @moneebullah25 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FinanceFlash/unvibecode#218 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NVIDIA/earth2studio#1241 ·
メンテナーはふだん 3 日以内に返信