-
Notifications
You must be signed in to change notification settings - Fork 0
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
Run Note Endpoint #265
Run Note Endpoint #265
Conversation
…n with notes. The route now requires input for the driver, location, and notes.
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.
Looks good just those small changes and I'll merge at meeting today.
scylla-server/src/main.rs
Outdated
@@ -247,6 +247,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { | |||
.route("/runs", get(run_controller::get_all_runs)) | |||
.route("/runs/{id}", get(run_controller::get_run_by_id)) | |||
.route("/runs/new", post(run_controller::new_run)) | |||
.route("/runs/new/{driver}/{location}/{notes}", post(run_controller::new_run_with_data)) | |||
.route( | |||
"/runs/update/{id}/{notes}", |
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.
update should probably take driver and location as well... just in case we ever want to change that. I was thinking location could be used for something like testing in different areas... not just the general test day location. Unless Jack said otherwise.
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.
lgtm
…run note
Changes
Explanation of changes goes here
Notes
Any other notes go here
Test Cases
Screenshots
If you made UI changes you must post a screenshot of the whole page for each change in 1) a normal sized window and 2) the smallest possible window
If you did any manual testing (e.g., with Postman), put screenshots of the http request and before and after of the db
If none of this applies, you can delete this section
To Do
Any remaining things that need to get done
Checklist
It can be helpful to check the
Checks
andFiles changed
tabs.Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
package-lock.json
changes (unless dependencies have changed)Closes #248