Always respect value of evaluate field in the gateway api#2947
Conversation
Always use the value of the evaluate field to force result generation, which previously was not performed for frontends. This improves API consistency, and ensures the value is used regardless of whether the solver uses a frontend, or a raw definition. Signed-off-by: Justin Chadwell <me@jedevc.com>
|
What's the use case for this? Usually, a frontend itself should define if solve is lazy or not. |
|
A couple reasons:
|
|
You could just call like a
This API call already has two modes depending if I have a slight worry that this could be abused somehow by a client who is just supposed to forward the request and doesn't know about the LLB doing a premature unlazy and messing up the performance. |
That definitely works, but it would need to be called per-ref, so a result that has multiple platforms, would need a trip back-and-forth per I wonder if we could potentially rename the field from |
Always use the value of the evaluate field to force result generation, which previously was not performed for frontends. This improves API consistency, and ensures the value is used regardless of whether the solver uses a frontend, or a raw definition.