-
Notifications
You must be signed in to change notification settings - Fork 0
[SSF-107] Manufacturer Application Backend #83
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
605ec6d to
ac622e1
Compare
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.
A few very small changes, looks rly good so far 🔢
| enum: ManufacturerStatus, | ||
| enumName: 'manufacturers_status_enum', | ||
| }) | ||
| status: ManufacturerStatus; |
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.
I wonder if it is worth refactoring our application status enums for both manufacturer and pantry to be the same (since they are). Thoughts?
| ); | ||
| } | ||
|
|
||
| @Post('/approve/:manufacturerId') |
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.
Both of these should be Patch instead of Post I believe. While we are at it, I think we should change the same endpoints in the pantries controller.
| ], | ||
| }, | ||
| }) | ||
| @Post() |
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.
Personally, I feel like this should some form of name here. Can we give it something, like 'submit-application' or something like that?
ℹ️ Issue
Closes #107
📝 Description
✔️ Verification
Verified all endpoints on Postman and added controller tests.
🏕️ (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!