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

show warning in ui if user or role could not be resolved #3593

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

thoniTUB
Copy link
Collaborator

@thoniTUB thoniTUB commented Oct 7, 2024

grafik

@thoniTUB thoniTUB requested a review from awildturtok October 7, 2024 16:03
@thoniTUB
Copy link
Collaborator Author

thoniTUB commented Oct 7, 2024

@awildturtok ich musste einige dateien anfassen, aber der pr ist durch das methoden sortieren so groß geworden

}
return name;
}
catch (java.text.ParseException e) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

FQN?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In der Klasse gibt leider zwei unterschiedliche mit selben namen

Comment on lines +74 to 76
public Response deleteRoleFromUser(@PathParam(GROUP_ID) Group group, @PathParam(ROLE_ID) RoleId role) {
processor.deleteRoleFrom(group, role);
return Response.ok().build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public Response deleteRoleFromUser(@PathParam(GROUP_ID) Group group, @PathParam(ROLE_ID) RoleId role) {
processor.deleteRoleFrom(group, role);
return Response.ok().build();
public void deleteRoleFromUser(@PathParam(GROUP_ID) Group group, @PathParam(ROLE_ID) RoleId role) {
processor.deleteRoleFrom(group, role);

Comment on lines +67 to 69
public Response deleteUserFromGroup(@PathParam(GROUP_ID) Group group, @PathParam(USER_ID) UserId user) {
processor.deleteUserFromGroup(group, user);
return Response.ok().build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public Response deleteUserFromGroup(@PathParam(GROUP_ID) Group group, @PathParam(USER_ID) UserId user) {
processor.deleteUserFromGroup(group, user);
return Response.ok().build();
public void deleteUserFromGroup(@PathParam(GROUP_ID) Group group, @PathParam(USER_ID) UserId user) {
processor.deleteUserFromGroup(group, user);

Comment on lines +50 to 52
public Response deleteRole(@PathParam(ROLE_ID) RoleId role) throws JSONException {
processor.deleteRole(role);
return Response.ok().build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public Response deleteRole(@PathParam(ROLE_ID) RoleId role) throws JSONException {
processor.deleteRole(role);
return Response.ok().build();
public void deleteRole(@PathParam(ROLE_ID) RoleId role) throws JSONException {
processor.deleteRole(role);

Comment on lines +107 to +111
User user = getStorage().getUser(id);
if (user != null) {
return getUserContent(user);
}
return FrontendUserContent.builder().id(id).build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

lässt sich das nicht in getUserContent(UserId) einbetten?

Comment on lines +58 to 61
public Response deleteUser(@PathParam(USER_ID) UserId user) {
processor.deleteUser(user);
return Response.ok().build();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public Response deleteUser(@PathParam(USER_ID) UserId user) {
processor.deleteUser(user);
return Response.ok().build();
}
public void deleteUser(@PathParam(USER_ID) UserId user) {
processor.deleteUser(user);
}

Comment on lines +65 to 67
public Response deleteRoleFromUser(@PathParam(USER_ID) User user, @PathParam(ROLE_ID) RoleId role) {
processor.deleteRoleFrom(user, role);
return Response.ok().build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public Response deleteRoleFromUser(@PathParam(USER_ID) User user, @PathParam(ROLE_ID) RoleId role) {
processor.deleteRoleFrom(user, role);
return Response.ok().build();
public void deleteRoleFromUser(@PathParam(USER_ID) User user, @PathParam(ROLE_ID) RoleId role) {
processor.deleteRoleFrom(user, role);

@thoniTUB thoniTUB merged commit aee3231 into release Oct 16, 2024
2 checks passed
@thoniTUB thoniTUB mentioned this pull request Oct 16, 2024
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