Show guardrail metrics on the experiment page
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 9.9k
- Forks
- 658
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 171
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Flagsmith/flagsmith
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Flagsmith/flagsmith#9119 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Fix Button Alignment in SDK Installation SectionPosiblemente ocupada @manueldezman la tomó hace 4 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Flagsmith/flagsmith#9056 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidancePosiblemente ocupada @jcd1991 la tomó hace 5 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Flagsmith/flagsmith#9045 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Expose whether an organisation is blocked for API usagePosiblemente ocupada @PiUnknown la tomó hace 39 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Flagsmith/flagsmith#8773 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Flagsmith/flagsmith
Issues similares
-
documentation good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
documentation good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
[Suggestion]: AgentermAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
collabnix/awesome-mcp-lists#490 ·
Los mantenedores suelen responder en 2 días