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

CORE-20731: Implement DeleteUser endpoint #6224

Merged

Conversation

BenYip123
Copy link
Contributor

@BenYip123 BenYip123 commented Jun 24, 2024

  • Sends the delete user request and publishes the deleted user to kafka
  • Returns the deleted user in the response
  • Adds a new entry to the audit log
  • Add new test

corda-api changes: corda/corda-api#1663
e2e-test changes: https://github.com/corda/corda-e2e-tests/pull/663

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Jun 24, 2024

Jenkins build for PR 6224 build 6

Build Successful:
Jar artifact version produced by this PR: 5.3.0.0-alpha-1719500118837
Helm chart version produced by this PR: 5.3.0-alpha.1719500118837
Helm chart pushed to: oci://corda-os-docker-dev.software.r3.com/helm-charts/pr-6224/corda
Helm chart Polaris score: 82

gradle.properties Outdated Show resolved Hide resolved
@BenYip123 BenYip123 marked this pull request as ready for review June 27, 2024 13:51
@BenYip123 BenYip123 requested a review from a team as a code owner June 27, 2024 13:51
Copy link
Contributor

@vkolomeyko vkolomeyko left a comment

Choose a reason for hiding this comment

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

Overall, looks fine to me - one minor remark posted.

* @param loginName The login name of the user to be deleted.
* @param user The user to be published.
*/
fun publishDeletedUser(loginName: String, user: AvroUser?)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we ever going to pass a non-null AvroUser to this method?
If not, it would probably make more sense:

Suggested change
fun publishDeletedUser(loginName: String, user: AvroUser?)
fun publishDeletedUser(loginName: String)

@vkolomeyko vkolomeyko requested review from a team and aadhavskthvl June 27, 2024 14:13
Copy link

sonarcloud bot commented Jun 27, 2024

@vkolomeyko vkolomeyko self-requested a review June 28, 2024 08:11
Copy link
Contributor

@vkolomeyko vkolomeyko left a comment

Choose a reason for hiding this comment

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

LGTM

@BenYip123 BenYip123 merged commit 1876501 into release/os/5.3 Jun 28, 2024
5 checks passed
@BenYip123 BenYip123 deleted the benyip/CORE-20731/implement-DeleteUser-endpoint branch June 28, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants