-
Notifications
You must be signed in to change notification settings - Fork 9
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
NoMethodError: undefined method `evaluation_context' for module OpenFeature::SDK #152
Comments
Hey @maxveldink, is this something you could help with? |
Sure! I've got an idea to expand that section out anyway and remove that metaprogramming. I'll clean it up tomorrow morning if I've got some time, and when I'm back from vacation Monday if not. |
Apologies for the delay here; I'm taking a look this morning. I'm not able to replicate this locally loading the gem in a console and my projects utilizing OF don't appear to have this issue. That method is being appropriately forwarded to the API instance. Do you have a snippet of calling code which is triggering this? Related to this issue, I do plan on expanding this metaprogramming out so it's clearer and tooling can better analyze the eval methods. That could eliminate this issue as well, or help us pinpoint it. |
Hello @maxveldink
client = OpenFeature::SDK::API.instance.build_client
evaluation_details = client.fetch_string_details(flag_key: feature_key, default_value: 'test',
evaluation_context: eval_context) throws:
|
Hello @maxveldink. Hope you're well. Do you have any news? Estimated time? Thanks! |
Yes, sorry for the delay; I'll be working on this tomorrow (I think I've got the under lying reason) and will cut a release once that's approved. |
@Kameleoon I've been playing around with this issue tonight, and I'm unable to replicate that problem locally on One thing I noticed was you're creating the I've been meaning to refactor away from metaprogramming here in favor of explicit method defs, so I've created a draft to do that at #154. Could you also build off of that branch and see if you're seeing the same issue? @Kameleoon can you provide any more context around how you're initializing OF in your project, or a wider code snippet? Thank you 🙏🏻 |
Hello @maxveldink I hope you're doing well. I want to sincerely apologize for the delayed response. After applying your suggestion to call methods without We deeply regret any inconvenience this may have caused you. Your guidance was invaluable, and we greatly appreciate your support throughout this process. Thank you once again for your help! Best regards, P.S. Please disregard the message from @DmitryAE, which is the personal account of one of our developers. It pertained to the same issue. |
Glad that we got it solved! Reach out if you have any other issues with the SDK! |
Hello guys!
In the latest version (0.4.0), the
fetch_{result_type}_{suffix}
evaluation methods are not functioning as expected. This issue appears to stem from a call to an undefined methodevaluation_context
in theOpenFeature::SDK
. Below is the problematic code:There is a problematic line in the code:
Any call to
fetch_{result_type}_{suffix}
throws the following error:The text was updated successfully, but these errors were encountered: