As we introduce the "Environment Name" context value, we are now unsure how /api/v1/flags should behave for segments that only operate on environment names.
Currently, /api/v1/flags simply returns the environment defaults without calling the segments evaluator. Arguably, it should call get_evaluation_result with provided environment context — this is the behaviour we're currently implementing in local evaluation.
As we introduce the "Environment Name" context value, we are now unsure how
/api/v1/flagsshould behave for segments that only operate on environment names.Currently,
/api/v1/flagssimply returns the environment defaults without calling the segments evaluator. Arguably, it should callget_evaluation_resultwith provided environment context — this is the behaviour we're currently implementing in local evaluation.