Skip to content

Conversation

@federicobond
Copy link
Member

Clients were incorrectly populating the hook context provider metadata field with metadata from the default provider instead of the one bound to the client.

@federicobond federicobond requested a review from a team as a code owner March 24, 2024 23:00
@beeme1mr
Copy link
Member

Good catch! Could you please add some tests so that we can ensure we don't accidentally introduce a regression?

@toddbaert
Copy link
Member

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!

@federicobond federicobond force-pushed the fix/hookcontext-metadata branch 3 times, most recently from 27b2c1b to ba0f4cf Compare March 25, 2024 21:50
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>
@federicobond federicobond force-pushed the fix/hookcontext-metadata branch from ba0f4cf to a6ac8c6 Compare March 25, 2024 21:51
@federicobond
Copy link
Member Author

Would something like this work? I wasn't sure where to put the mock provider definition.

Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@toddbaert toddbaert added this pull request to the merge queue Mar 26, 2024
Merged via the queue into open-feature:main with commit fd84025 Mar 26, 2024
@federicobond federicobond deleted the fix/hookcontext-metadata branch March 27, 2024 23:07
toddbaert pushed a commit that referenced this pull request Apr 2, 2024
🤖 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>
github-merge-queue bot pushed a commit that referenced this pull request Apr 2, 2024
🤖 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants