Show guardrail metrics on the experiment page
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
調査の方向性
Start in frontend/web/components/experiments/results/ and trace how getPrimaryMetric(experiment) and results.metrics[0] feed the Analysis page. Check the experiment metric configuration for expected_direction and the results API shape described in the issue. Done means the page presents every metric, primary first, with lift, interval, win probability, and guardrail direction and breach status.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem?
An experiment can have more than one metric, each with an expected_direction, for example a guardrail with not_increase. Flagsmith analyses all of them: GET /api/v1/environments/{key}/experiments/{id}/results/ returns the lift, interval and chance to win for every metric.
But the experiment page only shows the primary metric. The results components use getPrimaryMetric(experiment) and results.metrics[0] (frontend/web/components/experiments/results/). So a guardrail's result, which tells you a winning variant isn't hurting something else, can only be seen through the API.
Example (self-hosted 2.295.2): an experiment with "Subscribe clicks" (increase) and a guardrail, "Help requests" (not_increase). For the guardrail, the API returns a lift of +25.4% with an interval from −22.4% to +73.2%. The page shows only Subscribe clicks.
Describe the solution you'd like.
Show every metric on the experiment page, primary first, each with its lift, credible interval and win probability. Guardrails would be labelled with their expected direction ("should not increase") and with whether their interval suggests a breach. A row or tab per metric under Analysis would do.
Describe alternatives you've considered
Reading the results API directly (we print it from a script), or running one experiment per metric.
Additional context
Experimentation on self-hosted Flagsmith is great: it uses Flagsmith's own Postgres, with no extra infrastructure. The data model already supports guardrails (the configuration card even has a "should not increase" label), so showing them would make them usable from the dashboard.
Found while building flagsmith-toolbar.
- 主要言語
- Python
- スター
- 9.9k
- フォーク
- 658
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 171
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Flagsmith/flagsmith のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Flagsmith/flagsmith#9119 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Fix Button Alignment in SDK Installation Section対応中かも @manueldezman が 4 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Flagsmith/flagsmith#9056 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidance対応中かも @jcd1991 が 5 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
Flagsmith/flagsmith#9045 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Expose whether an organisation is blocked for API usage対応中かも @PiUnknown が 39 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Flagsmith/flagsmith#8773 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Flagsmith/flagsmith の issue をすべて見る
似ている issue
-
documentation good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
documentation good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
collabnix/awesome-mcp-lists#490 ·
メンテナーはふだん 2 日以内に返信