-
Notifications
You must be signed in to change notification settings - Fork 86
Fixes #28055: Migrate SettingsApi to zio-json #6818
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
Fixes #28055: Migrate SettingsApi to zio-json #6818
Conversation
|
Commit modified |
714ffc1 to
be06578
Compare
be06578 to
ee5dabf
Compare
|
Commit modified |
ee5dabf to
9783872
Compare
|
Commit modified |
|
PR updated with a new commit |
2 similar comments
|
PR updated with a new commit |
|
PR updated with a new commit |
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.
LGTM, just squash the commits and I think it's ready to be merged
|
This PR is not mergeable to upper versions. |
|
OK, squash merging this PR |
7ead784 to
f0b9a5e
Compare
https://issues.rudder.io/issues/28055
This PR removes the lift-json import from
SettingsApi.scala.It :
toJsonandparseJsonmethod of each setting by an idiomatic "JsonCodecinstance" in zio-json➡️ the main change is about adding
given JsonCodec[...]in place of lift-json. In some places, we need to use the JSON AST types since the settings are implemented in a generic wayAlong the way :
BoxwithEitherimplicitwithgivenEDIT: there is another change, to avoid referencing settings key as hardcoded String, it's possible to extract settings implementation (using ZLayer) and make each setting be an enum