vehicles db interfacing layer #197
No reviewers
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja!197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "db-interface-vehicles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
update main with vehicle repository code to continue development (the routes)
Pull request overview
This pull request implements the vehicle repository database interfacing layer, replacing placeholder
NotImplementedErrorimplementations with functional CRUD operations using the Beanie ODM. The implementation includes comprehensive test coverage for all repository methods.Changes:
infotodebugfor repository operationsReviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@ -0,0 +66,4 @@brand="Other",model="Car",kilometers=10,vin="1234567890ABCDEFG",The VIN value used in this test is the same as the sample_vehicle's VIN ("1234567890ABCDEFG"). Since both license_plate and vin have unique constraints in the Vehicle model, this test will fail due to duplicate VIN rather than duplicate license plate as intended. Change the VIN to a different value to properly test the duplicate license plate constraint.
Apart from the small detail on
test_create_vehicle_duplicate_license_plate, everything looks good!@ -0,0 +66,4 @@brand="Other",model="Car",kilometers=10,vin="1234567890ABCDEFG",True, the VIN needs changing here.