Add address management and user details retrieval functionality#24
Merged
NourAlPha merged 4 commits intoadd-actuatorfrom May 14, 2025
Merged
Add address management and user details retrieval functionality#24NourAlPha merged 4 commits intoadd-actuatorfrom
NourAlPha merged 4 commits intoadd-actuatorfrom
Conversation
YehiaFarghaly
approved these changes
May 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to enhance user profile management, including support for address handling, mobile number validation, and improved user details retrieval. The changes span multiple files and involve updates to the data model, service logic, and controller endpoints.
Enhancements to User Profile Management:
Address and Mobile Number Support:
Addressentity with fields for street, city, state, country, and postal code, along with a one-to-one relationship with theUserentity (src/main/java/com/podzilla/auth/model/Address.java).Userentity to include amobileNumberfield and a one-to-one relationship with theAddressentity (src/main/java/com/podzilla/auth/model/User.java).UserRepository(src/main/java/com/podzilla/auth/repository/UserRepository.java).Controller Updates:
/updateendpoint to accept anUpdateRequestobject for updating user name, mobile number, and address (src/main/java/com/podzilla/auth/controller/UserController.java)./detailsendpoint to fetch user details, including address and mobile number (src/main/java/com/podzilla/auth/controller/UserController.java).Service Layer Enhancements:
UserServiceto handle updates for name, mobile number, and address, with validation for address fields and mobile number uniqueness (src/main/java/com/podzilla/auth/service/UserService.java). [1] [2]UserService(src/main/java/com/podzilla/auth/service/UserService.java).DTO and Utility Updates:
New and Updated DTOs:
UpdateRequestandUserDetailsRequestDTOs to encapsulate update and user details payloads (src/main/java/com/podzilla/auth/dto/UpdateRequest.java,src/main/java/com/podzilla/auth/dto/UserDetailsRequest.java). [1] [2]SignupRequestto includemobileNumberandaddressfields (src/main/java/com/podzilla/auth/dto/SignupRequest.java).Custom User Details:
CustomUserDetailsto include aUUID idfield for better identification (src/main/java/com/podzilla/auth/dto/CustomUserDetails.java).Authentication Improvements:
AuthenticationServiceto include the user ID in response headers (src/main/java/com/podzilla/auth/service/AuthenticationService.java). [1] [2]src/main/java/com/podzilla/auth/service/AuthenticationService.java).Dependency Updates:
podzilla-utils-libdependency to versionv1.1.6in thepom.xmlfile for compatibility with new features (pom.xml).