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 #24114: Migrate user-management API to zio-json #643

Conversation

clarktsiory
Copy link
Contributor

@clarktsiory clarktsiory commented Feb 2, 2024

https://issues.rudder.io/issues/24114

Remove the code dependency on lift-json. That makes this PR the last of the series of migrating to zio-json on rudder-plugins !
There are some uncommon json response structures (objects with nesting e.g. {"reload":{"status":"Done"}}) that are not really used by the Elm. It introduces superfluous case classes for serialisation but this can be changed later.

@clarktsiory clarktsiory requested a review from fanf February 2, 2024 13:38
@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
Copy link
Member

Choose a reason for hiding this comment

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

don't we use:

      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <version>3.1.0</version>
      <scope>provided</scope>

In other projects, we should/need to homogeneize that. Perhaps we should just put it in the parent pom since it seems we need it everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally ! We used 3.1.0 as well when migrating other plugins
I don't know where I copied that from...

63834f6

@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

Copy link
Member

@fanf fanf left a comment

Choose a reason for hiding this comment

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

Everything works, new tests are well, the resulting code is cleaner and faster, GG!

@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

@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-plugins/pull/643
-- Your faithful QA
Kant merge: "Science is organized knowledge. Wisdom is organized life."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/79630/console)

@fanf
Copy link
Member

fanf commented Feb 5, 2024

OK, squash merging this PR

@fanf fanf force-pushed the arch_24114/migrate_user_management_api_to_zio_json branch from 25f9c97 to 5eedb39 Compare February 5, 2024 19:46
@fanf fanf merged commit 5eedb39 into Normation:branches/rudder/8.1 Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants