-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Multi provider impl #168
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
Conversation
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/FirstMatchStrategy.kt
Show resolved
Hide resolved
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
79a2d9a
to
2142879
Compare
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/FirstMatchStrategy.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/ProviderMetadata.kt
Show resolved
Hide resolved
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
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 a lot for the contributions, @PenguinDan, they look very promising! Nothing serious, only minor findings from my side!
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt
Outdated
Show resolved
Hide resolved
...dk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/FirstSuccessfulStrategy.kt
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/Strategy.kt
Outdated
Show resolved
Hide resolved
kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/Strategy.kt
Outdated
Show resolved
Hide resolved
...dk/src/commonTest/kotlin/dev/openfeature/kotlin/sdk/multiprovider/FirstMatchStrategyTests.kt
Outdated
Show resolved
Hide resolved
sampleapp/src/main/kotlin/dev/openfeature/kotlin/sdk/sampleapp/ExampleProvider.kt
Show resolved
Hide resolved
…rategy into MultiProvider Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
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 for the updates, going to the right direction!
...dk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/FirstSuccessfulStrategy.kt
Outdated
Show resolved
Hide resolved
...dk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/FirstSuccessfulStrategy.kt
Show resolved
Hide resolved
…ltiprovider/FirstSuccessfulStrategy.kt Co-authored-by: Bence Hornák <bence.hornak@gmail.com> Signed-off-by: Daniel Kim <daniel.seunkim@gmail.com>
Signed-off-by: penguindan <daniel.seunkim@gmail.com>
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.
Very exciting work! Thanks for this!
@nicklasl or @bencehornak Ah, looks like I don't have perms to get this merged in Can I get some help there |
Thanks for your work @PenguinDan ! |
## This PR - Adds multiprovider with `FirstMatchStrategy` and `FirstSuccessfulStrategy` implementations - Effectively is a port of this kotlin-sdk update: open-feature/kotlin-sdk#168 to swift ### Related Issues #68 ### Follow-up Tasks - Update documentation ### How to test - Adds unit test coverage, but open to ideas on additional ways to test! --------- Signed-off-by: jescriba <joshua.escribano@includedhealth.com> Signed-off-by: Joshua E. <escribirajoshua@gmail.com>
This PR
Multi Provider implementation according to the specifications outlined in https://openfeature.dev/specification/appendix-a/#multi-provider
Related Issues
Fixes #149
Notes
Work that still needs to be done
Follow-up Tasks
How to test
Updated the sample application to utilize a multi provider