Skip to content
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 #22617: #4751

Merged
merged 1 commit into from Apr 13, 2023
Merged

Fixes #22617: #4751

merged 1 commit into from Apr 13, 2023

Conversation

fanf
Copy link
Member

@fanf fanf commented Apr 7, 2023

https://issues.rudder.io/issues/22617

I tried several option with lift-json (deserializing List[JValue], or List[NodePropWithJValue], or even a JValue but the problem really seems to be somewhere in the lift-json parser for that very specific structure. So I just switched to zio-json

@fanf fanf requested a review from VinceMacBuche April 7, 2023 08:43
import zio.json.internal.Write

implicit val codecConfigValue: JsonCodec[ConfigValue] = JsonCodec(
new JsonEncoder[ConfigValue] {
Copy link
Member Author

Choose a reason for hiding this comment

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

strictly speaking, we don't need codec but we are going more and more toward zio-json, so it makes sense to have codec for that directly I think

@fanf fanf requested review from ElaadF and removed request for VinceMacBuche April 12, 2023 09:54
@ElaadF
Copy link
Member

ElaadF commented Apr 13, 2023

I have tested, it seems to be ok

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/4751
-- Your faithful QA
Kant merge: "It is beyond a doubt that all our knowledge begins with experience."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/67379/console)

@fanf
Copy link
Member Author

fanf commented Apr 13, 2023

OK, merging this PR

1 similar comment
@fanf
Copy link
Member Author

fanf commented Apr 13, 2023

OK, merging this PR

@fanf fanf merged commit 58c4360 into Normation:branches/rudder/7.2 Apr 13, 2023
19 checks passed
@fanf fanf deleted the bug_22617/_ branch March 15, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants