-
Notifications
You must be signed in to change notification settings - Fork 3
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
Closed
+427
−7
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
…ng service layer for controller to call. Updating test to include more of /cans/ POST endpoint. Added two new auth client config fixtures.
jonnalley
removed
the
Dev Backend Ready
Backend, Pipeline, or other UX related work is refined, and ready for Developers
label
Sep 13, 2024
…it tests. Functionality not complete because we are now using a service layer to isolate business logic. updated openapi doc to match new endpoint.
rajohnson90
changed the title
DRAFT: Adding missing CANs endpoints
Add POST and PATCH /cans/ endpoints
Sep 19, 2024
rajohnson90
requested review from
johndeange,
fpigeonjr,
maiyerlee and
Santi-3rd
September 19, 2024 18:58
…d test_service_patch_can to not rely on hard-coded id for table item.
fpigeonjr
approved these changes
Sep 19, 2024
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.
🟢 tests pass
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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