Mixpanel integration: falsy variant values collapse into enabled-state
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Comece localizando a integração com o Mixpanel e o mapeamento de flag state e variant value para a event property. Reproduza o caso com flags habilitadas e variantes false, empty, zero, None e non-falsy e, em seguida, verifique o mapeamento documentado para cada caso. Considera-se concluído quando o comportamento e a documentação estiverem de acordo e os clientes afetados tiverem sido comunicados antes do release.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Python
- Estrelas
- 9.9k
- Forks
- 658
- Merge médio
- 1d 15h
- PRs com merge (30d)
- 168
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Flagsmith/flagsmith
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Flagsmith/flagsmith#9119 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Fix Button Alignment in SDK Installation SectionTalvez já em andamento @manueldezman assumiu há 3 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Flagsmith/flagsmith#9056 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidanceTalvez já em andamento @jcd1991 assumiu há 4 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
Flagsmith/flagsmith#9045 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Expose whether an organisation is blocked for API usageTalvez já em andamento @PiUnknown assumiu há 39 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Flagsmith/flagsmith#8773 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
influx_query_manager doesn't catch ApiException, so Influx error responses 500Talvez já em andamento @SAY-5 assumiu há 13 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Flagsmith/flagsmith#8510 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Flagsmith/flagsmith
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meetecho/juturna_nodes#43 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
TigreGotico/text2spoken#726 ·
Mantenedores costumam responder em até 1 dia
-
bug dependencies
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
nolte/claude-shared#822 ·
Mantenedores costumam responder em até 1 dia
-
`RequestHandler.build_request_kwargs` drops empty request bodies such as `{}` or `""`Talvez já em andamento @abhirajadhikary06 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
typesense/typesense-python#170 ·
Mantenedores costumam responder em até 1 dia
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NousResearch/hermes-official-plugins#538 ·
Mantenedores costumam responder em até 3 dias