tdm-calculator
tdm-calculator copied to clipboard
Create Web API endpoints to support Submitting a Project for Approval
trafficstars
Overview
In order to support features related to submitting a project for approval, we need to implement the web api endpoints and supporting database changes.
Action Items
- [x] Add a dateSubmitted column to the Project table.
- [ ] Add a web api endpoint for HTTP PUT requests with url /api/proects/submit. The body will consist of the project id, and the route will use the jwtSession.validateUser middleware to verify the user identity. The Controller function should verify that the project id corresponds to the loginId of the user that owns the corresponding project, and call a service that, in turn, calls a Project_Submit stored procedure. The stored procedure should have argument projectId, loginId, and update the dateSubmitted column value to the current datetime. Most of this is very similar to the existing /api/projects/snapshot endpoint.
Resources/Instructions
@heejung-hong Please provide update
- Progress: "What is the current status of your project? What have you completed and what is left to do?"
- Blockers: "Difficulties or errors encountered."
- Availability: "How much time will you have this week to work on this issue?"
- ETA: "When do you expect this issue to be completed?"
- Pictures or links* (if necessary): "Add any pictures or links that will help illustrate what you are working on."
- remember to add links to the top of the issue if they are going to be needed again.
@Parisajf
- Progress: Coded the backend, but could not complete route testing in Postman. Will work on creating the frontend submit button with modal and submit to John for review.
- Blockers: Wasn't able to complete test in Postman.
- Availability: Evenings
- ETA: Front-end by 6/19
@heejung-hong Please provide update
- Progress: "What is the current status of your project? What have you completed and what is left to do?"
- Blockers: "Difficulties or errors encountered."
- Availability: "How much time will you have this week to work on this issue?"
- ETA: "When do you expect this issue to be completed?"
- Pictures or links* (if necessary): "Add any pictures or links that will help illustrate what you are working on."
- remember to add links to the top of the issue if they are going to be needed again.
Please find my update below.
- Progress: Need to create new migration script for Project_Submit store procedure and continue to work on a new endpoint.
- Blockers: Need to review the project.
- Availability: Weekdays after 6pm.
- ETA: Can't confirm the ETA at this time.