-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add FeatureKey #171
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
Add FeatureKey #171
Conversation
This generalizes and polishes up a pattern that I've seen in our internal adoption of LaunchDarkly - define a key and it's default once, to make any updates easy to manage. It follows that the type of each key will be mostly static as well, so a way to define this once in the code is provided.
This provides interop between LDValue and circe.Json, as well as helper methods to retrieve variations that are either JSON or encoded as JSON.
|
@bplommer could I get a review on this PR? |
circe/src/main/scala/org.typelevel/catapult/circe/LDValueCodec.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org.typelevel/catapult/circe/LDValueCodec.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org/typelevel/catapult/circe/syntax/client.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org/typelevel/catapult/circe/syntax/client.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org/typelevel/catapult/circe/syntax/client.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org.typelevel/catapult/circe/CirceFeatureKey.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org.typelevel/catapult/circe/CirceFeatureKey.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org/typelevel/catapult/circe/syntax/mtlClient.scala
Outdated
Show resolved
Hide resolved
circe/src/main/scala/org/typelevel/catapult/circe/syntax/mtlClient.scala
Outdated
Show resolved
Hide resolved
….scala Co-authored-by: Darren Gibson <[email protected]>
….scala Co-authored-by: Darren Gibson <[email protected]>
…t.scala Co-authored-by: Darren Gibson <[email protected]>
…t.scala Co-authored-by: Darren Gibson <[email protected]>
…Key.scala Co-authored-by: Darren Gibson <[email protected]>
…Key.scala Co-authored-by: Darren Gibson <[email protected]>
…ient.scala Co-authored-by: Darren Gibson <[email protected]>
…ient.scala Co-authored-by: Darren Gibson <[email protected]>
Needed to support circe functionality
zarthross
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.
Looks good to me, @bplommer Mind taking a look?
|
Hi! Apologies for dropping the ball on this. I'm happy to try and take a look soon - however I've been dealing with some health issues and burnout so I don't want to over-promise. I'm happy for you to go ahead with merging / releasing if you prefer so that I won't be a blocker. |
That's fair, hope you get the rest you need 👍🏻 |
This generalizes and polishes up a pattern that I've seen in our internal adoption of LaunchDarkly - define a key and it's default once, to make any updates easy to manage.
It follows that the type of each key will be mostly static as well, so a way to define this once in the code is provided.