Experimentation: completing an experiment does not compute final results, while the docs say they are frozen as final
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 67/100
Direção de pesquisa
Trace the experiment completion endpoint and the results refresh endpoint described in the reproduction, then read the “Analyse an experiment” documentation page. Check what triggers the final results computation and how the five-minute refresh limit affects it. Done means completion makes results final without waiting for a later refresh, or the documentation and results page explain when that refresh is available.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
After POST .../experiments/{id}/complete/, the results endpoint keeps returning the last snapshot from before completion, with is_final: false. Final results appear only after the next results refresh, which is still subject to the 5-minute limit counted from the last refresh before completion, and only if something requests it.
The "Analyse an experiment" page says that after ending an experiment "Results are frozen as final and the flag is unlocked." A user who ends an experiment and reads the results page straight away sees a non-final snapshot, and nothing finalises it unless they come back and refresh.
Observed on self-hosted v2.295.2 (CI_COMMIT_SHA 5369ece3ff3aefbd021d2496f82a7ce0e9cd04d6), Postgres warehouse.
Steps To Reproduce
- Create a multivariate flag (control plus
blue,green), a metric and an experiment, start it, and send exposures for 300 identities with the Python SDK. POST .../results/refresh/and readGET .../results/:is_final: false, with anas_of.POST .../complete/with{"rollout_decision": "variant", "rollout_variant": <blue option id>}.ended_atis set.- Read
GET .../results/5 s and 60 s later, with no refresh requested: sameas_ofas in step 2,is_final: false. POST .../results/refresh/straight away: HTTP 429,{"detail":"A refresh was requested recently. Try again later. Expected available in 239 seconds."}.- After the limit,
POST .../results/refresh/: the results now readis_final: true. - A further refresh: HTTP 400,
{"detail":"Results are final for this completed experiment."}.
Expected behavior
Either completing queues the final computation (so the results become final shortly after completion without another request, regardless of the refresh limit), or the docs and the results page say that final results need one more refresh after ending the experiment, and when it will be allowed.
How are you running Flagsmith
- Self-hosted with Docker
- 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á 38 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
-
triage
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
kornia/kornia-rs#1416 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
PolicyEngine/ai-inequality#64 ·
Mantenedores costumam responder em até 1 dia
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timeTalvez já em andamento @PabloRoque assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
pymc-devs/pymc-extras#839 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia