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

User service #38

Merged
merged 11 commits into from Oct 2, 2021
Merged

User service #38

merged 11 commits into from Oct 2, 2021

Conversation

moustaphastar
Copy link
Collaborator

  1. Implemented new endpoints and objects in order
  • to get a paged list of users
  • to get a single user
  • delete a user
  1. Added access rule for delete and list endpoints
  2. Implemented user page, details modal and api request for admin panel.

@moustaphastar moustaphastar linked an issue Sep 28, 2021 that may be closed by this pull request
@moustaphastar moustaphastar added this to the User Management milestone Sep 28, 2021
@moustaphastar moustaphastar linked an issue Sep 28, 2021 that may be closed by this pull request
@moustaphastar
Copy link
Collaborator Author

Create user (#31 ) implementation is missing.

Copy link
Collaborator Author

@moustaphastar moustaphastar left a comment

Choose a reason for hiding this comment

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

CreateUser (#31) missing.



const columns = [
"id", "Ad", "Email", "Telefon", "Lokasyon", "İşlemler"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What columns to show/hide?

path: "/api/v1/file",
data: formData,
params: ["firebasePath"],
values: ["product-images"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Value should be user-image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, do we have the implementation to add a user image?


@Override
public UserImageInsertResponse insertUserImage(UserImageInsertRequest request) {
return new UserImageInsertResponse();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

User image insertion is done through FileResource endpoints.

public ResponseEntity<PageResponse<UserResponse>> pageList(
@RequestParam("page") int page,
@RequestParam("size") int size) {
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can we refactor to use hasRole or hasAuthority annotations?

@Mapping(target = "revisedAt",
dateFormat = "dd-MM-yyyy HH:mm:ss")
UserResponse entityToUserResponse(UserEntity entity);

Copy link
Owner

Choose a reason for hiding this comment

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

We don't need target attribute for entity properties that has same name with response property

@aliturgutbozkurt aliturgutbozkurt merged commit 275c583 into master Oct 2, 2021
Copy link
Collaborator Author

@moustaphastar moustaphastar left a comment

Choose a reason for hiding this comment

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

Reviewed.

@ilkaypolat1985 ilkaypolat1985 moved this from In progress to Done in Open Source Petshop Project Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

List Users Deactivate User
2 participants