-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: OFREP Bulk Evaluation #3412
Comments
Thanks for reporting this @lukas-reining |
Just for posterity I reported and then deleted a couple of phising comments. Update: GitHub acknowledged they were malicious and I think the accounts have been removed. |
Thank you for your report @lukas-reining I'd really like to discuss this https://github.com/open-feature/protocol/blob/main/service/adrs/0004-no-flag-filter-in-bulk-evaluation-request.md as well. How do you interpret the phrase |
I think you found a problem in the ADR there @erka. |
@lukas-reining Your question is quite challenging. I understand the concept, and it's a great solution for a small number of flags. However, in practice, a flag provider and an enterprise customer might deal with dozens or even hundreds of flags at once. Moreover, not all of those flags will be web or UI-related or client-related. It's similar to the REST vs GraphQL debate. This is why I would prefer to see the specification with clearly defined expectations for bulk evaluation. |
Mh I get that this is quite challenging and know the cases of enterprises with hundreds of flags @erka. I am completely with you that our spec should be more precise on the So what do you think could we make it possible to have the bulk evaluation without a filter, or do you see any point missing about the spec to make it more compatible with how you are doing the bulk/client evaluation? |
@lukas-reining I’m afraid I’m not in a position to discuss the internal decisions of any flag providers. Back to the OFREP bulk evaluation, it seems like you’re aiming for a design based on a As you said that OFREP is experimental the Flipt implementation is the same. We are open to making adjustments as we gain a better understanding of the design and goals. |
@GeorgeMac @markphelps @lukas-reining I have created the issue. Please add the details which I may have missed |
Rework bulk evaluation logic to fetch namespace flags if ones are not provided in the evaluation context. As result all boolean and enabled variant flags will be evaluated. fixes #3412 Signed-off-by: Roman Dmytrenko <[email protected]>
Rework bulk evaluation logic to fetch namespace flags if ones are not provided in the evaluation context. As result all boolean and enabled variant flags will be evaluated. fixes #3412 Signed-off-by: Roman Dmytrenko <[email protected]>
Rework bulk evaluation logic to fetch namespace flags if ones are not provided in the evaluation context. As result all boolean and enabled variant flags will be evaluated. fixes #3412 Signed-off-by: Roman Dmytrenko <[email protected]>
Bug Description
Hey, I tried to use the
OFREP client provider
[1] with flipt.The implementation of OFREP in flipt looks great, but there is one thing that does not fit to how we intended the
bulk evaluation
endpoint to be used.When I try to use the
OFREP client provider
I get the following error:{"errorCode":"INVALID_CONTEXT","errorDetails":"flags were not provided in context"}
and I can find the line in the code that returns this. [2]This behavior does not fit to the intended use of the endpoint as we described in the following ADR: [3]
As this describes, for the client we expect all the flags to be loaded for synchronous evaluation.
Do you have a reason for adding the
flags
context key as mandatory? If not can we make it optional or remove it?[1] https://github.com/open-feature/js-sdk-contrib/tree/main/libs/providers/ofrep-web
[2] https://github.com/open-feature/protocol/blob/main/service/adrs/0002-two-evaluation-endpoints.md#context
[3] https://github.com/open-feature/protocol/blob/main/service/adrs/0002-two-evaluation-endpoints.md#2-two-evaluation-endpoints
Version Info
v1.48.1
Search
Steps to Reproduce
Try this:
or try to use the OFREP client provider with flipt: https://github.com/open-feature/js-sdk-contrib/tree/main/libs/providers/ofrep-web#configurations-and-usage
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: