Skip to content
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

Merged
merged 5 commits into from
Jan 22, 2025
Merged

Run Note Endpoint #265

merged 5 commits into from
Jan 22, 2025

Conversation

justinsoto
Copy link
Contributor

@justinsoto justinsoto commented Jan 19, 2025

…run note

Changes

Explanation of changes goes here

Notes

Any other notes go here

Test Cases

  • Case A
  • Edge case
  • ...

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

  • item 1
  • ...

Checklist

It can be helpful to check the Checks and Files 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.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No package-lock.json changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #248

@justinsoto justinsoto changed the title included routes to create runs with a note and to update an existing … Rune Note Endpoint Jan 19, 2025
@justinsoto justinsoto changed the title Rune Note Endpoint Run Note Endpoint Jan 19, 2025
@justinsoto justinsoto self-assigned this Jan 19, 2025
…n with notes. The route now requires input for the driver, location, and notes.
@bracyw bracyw self-requested a review January 21, 2025 15:37
Copy link
Contributor

@bracyw bracyw left a 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.

@@ -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}",
Copy link
Contributor

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.

@bracyw bracyw self-requested a review January 22, 2025 14:55
Copy link
Contributor

@bracyw bracyw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bracyw bracyw merged commit a18b7d9 into develop Jan 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Scylla] - Endpoint for changing a Run note
2 participants