-
Notifications
You must be signed in to change notification settings - Fork 51
fix: return metadata for the bound provider in hookContext #883
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
fix: return metadata for the bound provider in hookContext #883
Conversation
|
Good catch! Could you please add some tests so that we can ensure we don't accidentally introduce a regression? |
Agreed on this one, but if you have any trouble let me know and I'll happily add them myself; I know you're usually our "Python guy" so feel free to let me know if adding those tests is too tedious! |
27b2c1b to
ba0f4cf
Compare
Clients were incorrectly populating the hook context provider metadata field with metadata from the default provider instead of the one bound to the client. Signed-off-by: Federico Bond <federicobond@gmail.com>
ba0f4cf to
a6ac8c6
Compare
|
Would something like this work? I wasn't sure where to put the mock provider definition. |
beeme1mr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
🤖 I have created a release *beep* *boop* --- ## [1.0.2](web-sdk-v1.0.1...web-sdk-v1.0.2) (2024-04-02) ### 🐛 Bug Fixes * return metadata for the bound provider in hookContext ([#883](#883)) ([fd84025](fd84025)) ### 🧹 Chore * **main:** release core 1.1.0 ([#899](#899)) ([b3e5f7e](b3e5f7e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.13.4](server-sdk-v1.13.3...server-sdk-v1.13.4) (2024-04-02) ### 🐛 Bug Fixes * return metadata for the bound provider in hookContext ([#883](#883)) ([fd84025](fd84025)) ### 🧹 Chore * **main:** release core 1.1.0 ([#899](#899)) ([b3e5f7e](b3e5f7e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com> Signed-off-by: Todd Baert <todd.baert@dynatrace.com> Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
Clients were incorrectly populating the hook context provider metadata field with metadata from the default provider instead of the one bound to the client.