Show guardrail metrics on the experiment page
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 9.9k
- Fork
- 658
- Merge medio
- 1g 15h
- PR unite (30g)
- 171
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Flagsmith/flagsmith
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Flagsmith/flagsmith#9119 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Fix Button Alignment in SDK Installation SectionForse già presa @manueldezman l’ha presa 4 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Flagsmith/flagsmith#9056 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidanceForse già presa @jcd1991 l’ha presa 5 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
Flagsmith/flagsmith#9045 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Expose whether an organisation is blocked for API usageForse già presa @PiUnknown l’ha presa 39 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Flagsmith/flagsmith#8773 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Flagsmith/flagsmith
Issue simili
-
documentation good first issue help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
documentation good first issue help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
[Suggestion]: AgentermAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
collabnix/awesome-mcp-lists#490 ·
I maintainer di solito rispondono entro 2 giorni