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

Removed location creation and update logic along with associated test from user #117

Merged
merged 6 commits into from
Mar 15, 2024

Conversation

jamalsoueidan
Copy link
Owner

@jamalsoueidan jamalsoueidan commented Mar 15, 2024

Removing nested locations in user documents, there is no need to have locations inside user documents!

…s and validation from location services. Added new customer location service files for create, destroy, get, list, set-default, and update operations with corresponding tests.
@jamalsoueidan jamalsoueidan self-assigned this Mar 15, 2024
…ts; refactored location services and controllers; updated CustomerServiceStatus to count locations directly.
…schema

 • Remove user locations array from User schema and related types
 • Refactor UserLocationServiceGetOne to query directly from LocationModel
 • Delete location.spec.ts tests as part of removing user locations
 • Remove UserServiceGetLocations and related location manipulation methods
…ress validation

 Deleted the following endpoints and their associated response schemas:
 - POST /customer/{customerId}/locations/add for adding a new location
 - GET /customer/{customerId}/locations/get-all-origins for retrieving all origin locations
 - GET /location/validate-address for validating an address

 This change simplifies the API by removing unused or redundant functionality.
@jamalsoueidan jamalsoueidan added the enhancement New feature or request label Mar 15, 2024
@jamalsoueidan jamalsoueidan merged commit 98b0413 into main Mar 15, 2024
2 checks passed
@jamalsoueidan jamalsoueidan deleted the refactor-locations-model branch March 15, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant