Skip to content

Spec change for named client -> provider mappings#183

Merged
justinabrahms merged 3 commits intomainfrom
client-provider-mapping
May 3, 2023
Merged

Spec change for named client -> provider mappings#183
justinabrahms merged 3 commits intomainfrom
client-provider-mapping

Conversation

@justinabrahms
Copy link
Copy Markdown
Member

This PR

Adds support for mapping a named client to a specific provider.

Related Issues

Refs open-feature/ofep#56

Notes

Example of this implemented in Java: open-feature/java-sdk#388

Comment thread specification/sections/01-flag-evaluation.md Outdated
Comment thread specification/sections/01-flag-evaluation.md
@toddbaert
Copy link
Copy Markdown
Member

I think we might need additional point(s) about retrieving a named client bound to a non-default provider. I'm also wondering if we need to spec that clients retrieved with a given name return the same object instance (or do they just generate a new client associated with the provider bound to that name?)

Comment thread specification.json
@justinabrahms justinabrahms force-pushed the client-provider-mapping branch from a44e6f2 to 1b08e0d Compare May 1, 2023 22:12
@toddbaert toddbaert self-requested a review May 2, 2023 16:01
Copy link
Copy Markdown
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

I think this is a good addition in principle, and the requirements are succinct enough. I'm still slightly concerned about this, but I'm not convinced it's something we need to specify.

Copy link
Copy Markdown
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

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

Spec seems fine like this and the use case is totally there.

Copy link
Copy Markdown
Member

@thomaspoignant thomaspoignant left a comment

Choose a reason for hiding this comment

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

This addition will make the switch between providers even simpler 👏

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.

6 participants