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

feat: user management patch endpoint #1184

Merged
merged 34 commits into from
Apr 13, 2022
Merged

feat: user management patch endpoint #1184

merged 34 commits into from
Apr 13, 2022

Conversation

pujavs
Copy link
Contributor

@pujavs pujavs commented Apr 8, 2022

Changes for user management endpoint

  1. PATCH endpoint -> /jans-config-api/api/v1/user/{inum}
  2. Exclusion of userPassword
    Related issue 418

Impacted modules:

  1. jans-config-api
  2. jans-cli

@mo-auto mo-auto added comp-jans-cli-tui Component affected by issue or PR comp-jans-config-api Component affected by issue or PR labels Apr 8, 2022
@mo-auto mo-auto added comp-jans-orm Component affected by issue or PR kind-feature Issue or PR is a new feature request labels Apr 8, 2022
yuriyz
yuriyz previously approved these changes Apr 8, 2022
@moabu moabu changed the title feat: User management patch endpoint feat: user management patch endpoint Apr 12, 2022
@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2022

[jans-cli] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

yuriyz
yuriyz previously approved these changes Apr 12, 2022
private User updateCustomAttributes(User user, List<CustomObjectAttribute> customAttributes) {
logger.debug("Custom Attributes to update for - user:{}, customAttributes:{} ", user, customAttributes);

if (customAttributes != null && !customAttributes.isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets do early exit where possible.

if (customAttributes==null || customAttributes.isEmpty()) {
    return user;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@sonarcloud
Copy link

sonarcloud bot commented Apr 13, 2022

[Jans authentication server parent] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@pujavs pujavs requested a review from smansoft as a code owner April 13, 2022 10:53
@sonarcloud
Copy link

sonarcloud bot commented Apr 13, 2022

[jans-linux-setup] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@pujavs pujavs requested a review from yuriyz April 13, 2022 12:10
devrimyatar
devrimyatar previously approved these changes Apr 13, 2022
@sonarcloud
Copy link

sonarcloud bot commented Apr 13, 2022

[jans-config-api-parent] SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@devrimyatar devrimyatar merged commit f241cdf into main Apr 13, 2022
@devrimyatar devrimyatar deleted the jans-config-api-418 branch April 13, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cli-tui Component affected by issue or PR comp-jans-config-api Component affected by issue or PR comp-jans-orm Component affected by issue or PR kind-feature Issue or PR is a new feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants