-
Notifications
You must be signed in to change notification settings - Fork 15
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
#95 | Implement the process of searching Assignment by location #159
Conversation
…pper I added assignmentSearchService and assignmentToAssignmentResponseMapper to AssignmentController. I updated assignment search endpoint. It does not search assignment but gets by coordinates to test for now. I added mappings for latitude and longitude fields.
The longitude wil be x-axis and latitude will be y-axis.
I added isReady method to UserEntity class. isReady checks is active and ready. I added user status control searchAssignment method of AssignmentSearchService. This control checks whether user's support status is ready and user's status is active. I added AysAssignmentUserNotReadyException exception to throw when the above control fails.
I added active status control to search assignment query. I added reserve method to AssignmentEntity class. I implemented findNearestAvailableAssignment and reserve method of AssigmentEntity.
# Conflicts: # src/main/java/com/ays/assignment/controller/AssignmentController.java # src/main/java/com/ays/assignment/repository/AssignmentRepository.java # src/test/java/com/ays/assignment/controller/AssignmentControllerTest.java # src/test/java/com/ays/assignment/controller/AssignmentSystemTest.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Yorumlarım var, mergelenmesin diye approve'ları kaldırdım bilginize.
src/main/java/com/ays/assignment/controller/AssignmentController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/ays/assignment/service/impl/AssignmentSearchServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/ays/assignment/service/impl/AssignmentSearchServiceImpl.java
Show resolved
Hide resolved
src/main/java/com/ays/assignment/repository/AssignmentRepository.java
Outdated
Show resolved
Hide resolved
I Added fourth user has supportStatus READY in second database changes (`2-ays-dml.xml`). Then, I added fourth user token to use assignment search system test
src/main/java/com/ays/assignment/model/dto/request/AssignmentSearchRequest.java
Show resolved
Hide resolved
src/main/java/com/ays/assignment/service/impl/AssignmentSearchServiceImpl.java
Show resolved
Hide resolved
src/test/java/com/ays/assignment/service/impl/AssignmentSearchServiceImplTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
PULL REQUEST TEMPLATE
Description
Imploement the process of searching Assignment by location
Related Issue
#95
Proposed Changes
Please provide a brief and descriptive title for your pull request, summarizing the changes or features introduced. It
should be in English and clearly indicate the purpose of the pull request. Optionally, you can provide a more detailed
description of what you have done.
Naming Conventions of Branchs
header in README.md FileAdditional Information
If there's any additional information or context that the reviewers should know, please provide it here.
Checklist
Please check the following before submitting your pull request:
board or milestone. However, if there is no issue, the pull request should be associated with the appropriate project
board (BE Board, In Review column) and milestone to track the progress.
Reviewers
The default project maintainers and team members will be automatically assigned as reviewers for this pull request.