Mixpanel integration: falsy variant values collapse into enabled-state
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Comienza localizando la integración con Mixpanel y el mapeo de flag state y variant value a la event property. Reproduce el caso con flags habilitados y variantes false, empty, zero, None y non-falsy, y después verifica el mapeo documentado para cada caso. Se considera terminado cuando el comportamiento y la documentación coinciden y se ha comunicado la situación a los clientes afectados antes del release.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
How are you running Flagsmith
- Self Hosted with Docker
- Self Hosted with Kubernetes
- SaaS at flagsmith.com
- Some other way (add details in description below)
Describe the bug
When a flag is enabled and the variant value is falsy, the mixpanel integration incorrectly fallbacks the value to the flag state true instead of false.
The documentation is ambiguous, only stating if the flag has no remote config value, pass the boolean state
# Current mapping
Flag state | Variant value | Sent to Mixpanel
-----------+----------------------------+----------------------
ON | True | true (value)
ON | False / None / 0 / "" | true (enabled state)
ON | "hello" / 42 | the value
OFF | anything | false (enabled state)
Steps To Reproduce
- Activate Mixpanel integration in your environment
- Create a multivariate feature
- Enable the flag
- Set a variant value to be
false - Mixpanel will show the variant as
true
Expected behavior
The mapping should be:
Flag state | Variant value | Sent to Mixpanel
-----------+----------------------------+----------------------
ON | True | true (value)
ON | False / "" / 0 | false
ON | None / null | true (enabled state)
ON | "hello" / 42 | the value
OFF | anything | false (enabled state)
The resolution of the issue includes:
- Updating the doc to be exhaustive in relation to the behavior
- Communicate with impacted customers before releasing
Screenshots
No response
- Lenguaje dominante
- Python
- Estrellas
- 9.9k
- Forks
- 658
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 168
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
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 3 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 4 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 38 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
-
influx_query_manager doesn't catch ApiException, so Influx error responses 500Posiblemente ocupada @SAY-5 la tomó hace 13 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Flagsmith/flagsmith#8510 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Flagsmith/flagsmith
Issues similares
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NousResearch/hermes-official-plugins#538 ·
Los mantenedores suelen responder en 3 días
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidatePosiblemente ocupada @houzhongyu la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MakazhanAlpamys/Soup#3415 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días