Stop throwing errors if no results (yet) #27765
Labels
bug
Something isn't working right
feature/experimentation
Feature Tag: Experimentation
team/experiments
Bug Description
Currently, if the experiment results could not be calculated due to missing events, we throw the following error with the response code 400 BAD REQUEST:
"[ErrorDetail(string='{"no-events": true, "no-flag-info": true, "no-control-variant": true, "no-test-variant": true}', code='no-results')]"
This is a relic of the old calculation API. In the absence of experiment results, we shouldn’t throw an error, as nothing is necessarily broken - there are simply missing events. We should return a success response with a descriptive status code and a status message.
This logic lives in experiment_trends_query_runner.py and experiments_funnels_query_runner.py
Additional context
Debug info
The text was updated successfully, but these errors were encountered: