-
Notifications
You must be signed in to change notification settings - Fork 0
[SSF-114] Remove Order–Pantry Relationship #90
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
base: main
Are you sure you want to change the base?
Conversation
dburkhart07
left a comment
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.
Few small things ☕
| } | ||
|
|
||
| async findOrderPantry(orderId: number): Promise<Pantry> { | ||
| validateId(orderId, 'Order'); |
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.
Why did we delete this validation?
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.
it is validated when i call this.findOrderFoodRequest
| const qb = this.repo | ||
| .createQueryBuilder('order') | ||
| .leftJoinAndSelect('order.pantry', 'pantry') | ||
| .leftJoinAndSelect('order.request', 'request') |
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.
This current call when I tested it returned no info on the volunteers or pantry. With this relation being removed, however, I wonder if we still even need them. Can you check with Sam on this, and whether we even still want the pantryNames aspect of the filter, or just reclarify what fields we would want this endpoint to return?
ℹ️ Issue
Closes SSF-114
📝 Description
✔️ Verification
Make sure all tests passed and verified updated endpoints on Postman.
🏕️ (Optional) Future Work / Notes
Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!