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

Add POST and PATCH /cans/ endpoints #2783

Closed
wants to merge 11 commits into from

Conversation

rajohnson90
Copy link
Contributor

@rajohnson90 rajohnson90 commented Sep 12, 2024

What changed

Adding the following /cans/ endpoints:

POST /cans/ (create a new CAN)
PATCH /cans/{id} (Update a can, replacing only the changed fields

I added a new service layer for CANs so that we can isolate the business logic away from the API logic. New unit tests were written with mockers in order to isolate and test these layers individually. Additionally, I added OpsEvents for the creation and update of CANs. Finally, I added the obligate_by field to the CAN schema because that information is missing and is needed by the front end.

Issue

#2781
#2754

How to test

Run python unit tests

Definition of Done Checklist

  • OESA: Code refactored for clarity
  • OESA: Dependency rules followed
  • Automated unit tests updated and passed
  • Automated integration tests updated and passed
  • Automated quality tests updated and passed
  • Automated load tests updated and passed
  • Automated a11y tests updated and passed
  • Automated security tests updated and passed
  • 90%+ Code coverage achieved
  • Form validations updated

@rajohnson90 rajohnson90 added task task for an associated story or backlog item python Pull requests that update Python code Dev Backend Ready Backend, Pipeline, or other UX related work is refined, and ready for Developers labels Sep 12, 2024
@rajohnson90 rajohnson90 self-assigned this Sep 12, 2024
@rajohnson90 rajohnson90 marked this pull request as draft September 12, 2024 13:02
…ng service layer for controller to call. Updating test to include more of /cans/ POST endpoint. Added two new auth client config fixtures.
@jonnalley jonnalley removed the Dev Backend Ready Backend, Pipeline, or other UX related work is refined, and ready for Developers label Sep 13, 2024
@rajohnson90 rajohnson90 changed the title DRAFT: Adding missing CANs endpoints Add POST and PATCH /cans/ endpoints Sep 19, 2024
@rajohnson90 rajohnson90 marked this pull request as ready for review September 19, 2024 19:00
Copy link
Contributor

@fpigeonjr fpigeonjr left a comment

Choose a reason for hiding this comment

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

🟢 tests pass

@rajohnson90
Copy link
Contributor Author

I ended up finishing all the work before this could be merged in. The second PR was a branch off this branch and should include EVERYTHING in the merge to main. Closing this PR to clean up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code task task for an associated story or backlog item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants