feat: allow computed fractional bucket variants
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 77/100
調査の方向性
Python SDKへのコントリビューションで、fractional bucketの評価とそのテストを見つけてください。bucketingの前にバリアントがどのように評価、確認されるかを読み、バリアントがcatのようなJSON Logic式である場合のテストを追加してください。式が一度だけ評価され、選択されたバケットに対してその結果が返され、bucketingが引き続きbucketing値と重みだけに依存することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
A fractional bucket variant can be any JSON Logic expression, not only a literal:
{
"state": "ENABLED",
"defaultVariant": "blue",
"variants": {
"red": "#FF0000",
"blue": "#0000FF"
},
"targeting": {
"fractional": [
[{ "cat": ["r", "ed"] }, 50],
["blue", 50]
]
}
}
- Evaluate each variant expression once, before bucketing, and return the result for the selected bucket.
- Don't reject a variant based on its result type. Pass the result through, and let the resolver handle it like any other targeting result.
- Bucketing doesn't change; it depends only on the bucketing value and the weights.
This may already work, or only need a variant type check relaxed. Either way, please add a test.
Why: this allows the new resolve operator as a bucket variant (e.g. [{ "resolve": ["red", "SPLIT"] }, 50]), so each bucket can set its own reason and metadata.
References:
- Go implementation: open-feature/flagd#2127 (the
fractional.gochange and the "fractional bucket variant is terminal" test inresolve_test.go) - Gherkin scenarios: open-feature/flagd-testbed#448
- 主要言語
- Python
- スター
- 27
- フォーク
- 36
- 平均マージ
- 4時間 22分
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
open-feature/python-sdk-contrib のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-feature/python-sdk-contrib#478 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
open-feature/python-sdk-contrib#469 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
flagd: remove deprecated sync.GetMetadata RPC call (use sync_context)対応中かも @buildingisfun23 が 31 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-feature/python-sdk-contrib#439 ·
メンテナーはふだん 1 日以内に返信
-
Restore the .gitmodules branch pins so Renovate tracks flagd submodule versions again対応中かも @aepfli が 66 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-feature/python-sdk-contrib#421 ·
メンテナーはふだん 1 日以内に返信
-
A boolean flag satisfies a Float request in flagd-core: bool is a subclass of int対応中かも @abhinavrastogi2627 が 17 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
open-feature/python-sdk-contrib#417 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
open-feature/python-sdk-contrib の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 61/100
scverse/infercnvpy#238 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
skrub-data/skrub#2442 ·
メンテナーはふだん 1 日以内に返信
-
due_at is one hour late on the autumn DST change day (real-time delta added to a zoneinfo datetime)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
warlock20/StartWithA#443 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
daniel-ospina/tortoise#13876 ·
メンテナーはふだん 1 日以内に返信