Show guardrail metrics on the experiment page
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 9.9k
- Fork
- 658
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 171
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Flagsmith/flagsmith
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Flagsmith/flagsmith#9119 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix Button Alignment in SDK Installation SectionCó thể đã có người làm @manueldezman đã nhận 4 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Flagsmith/flagsmith#9056 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidanceCó thể đã có người làm @jcd1991 đã nhận 5 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Flagsmith/flagsmith#9045 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Expose whether an organisation is blocked for API usageCó thể đã có người làm @PiUnknown đã nhận 39 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Flagsmith/flagsmith#8773 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Flagsmith/flagsmith
Issue tương tự
-
documentation good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
documentation good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
[Suggestion]: AgentermĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
collabnix/awesome-mcp-lists#490 ·
Maintainer thường phản hồi trong vòng 2 ngày