-
Notifications
You must be signed in to change notification settings - Fork 35
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
Main b 21506 prime port update failure #14501
Merged
brianmanley-caci
merged 12 commits into
main
from
MAIN-B-21506-Prime-Port-Update-Failure
Jan 3, 2025
Merged
Main b 21506 prime port update failure #14501
brianmanley-caci
merged 12 commits into
main
from
MAIN-B-21506-Prime-Port-Update-Failure
Jan 3, 2025
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
…rt-Update-Failure
…Prime-Port-Update-Failure
…Prime-Port-Update-Failure
…Prime-Port-Update-Failure
…rt-Update-Failure
brianmanley-caci
requested review from
deandreJones,
danieljordan-caci,
WeatherfordAaron,
elizabeth-perkins,
samaysofo,
msaki-caci,
ryan-mchugh and
stevengleason-caci
January 2, 2025 15:25
danieljordan-caci
approved these changes
Jan 3, 2025
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.
Matches up
msaki-caci
approved these changes
Jan 3, 2025
pambecker
approved these changes
Jan 3, 2025
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.
Agility ticket
INT PR
Summary
This story was created to handle the common error cases when updating the port for a service item. By the time I got around to working this story I realized that all the common error cases were already handle in the upstream story for updating the port (B-21505). This story will still be used for testing these error cases so the testing load on B-21505 isn't too high. Since there was no validation code needed for the port error handling we decided to use this story to update the port locations model to be readonly as this reflects the current business rules which weren't settled on until recently.
Is there anything you would like reviewers to give additional scrutiny?
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
Note: the functionality for ordering POEFSC and PODFSC service items does not yet exist. Therefore in order to test you will need to manually create either a POEFSC or PODFSC service item for a shipment.
INSERT INTO mto_service_items ( id, mto_shipment_id, move_id, re_service_id, status, created_at, updated_at, approved_at ) VALUES ( uuid_generate_v4(), '8eeba537-bb40-4f58-a534-74ea9ff64590', '813b7a43-2e3f-42f3-8c4e-eca95390d5ca', '388115e8-abe9-441d-96cf-a39f24baa0a3', 'APPROVED'::service_item_status, NOW(), NOW(), NOW() );
{ "id": "40b7e71a-6b03-4413-8601-dea694253ee3", "modelType": "UpdateMTOServiceItemInternationalPortFSC", "portCode": "ABC", "reServiceCode": "PODFSC" }
{ "detail": "Unsupported port code (ABC): No port location found for port code ABC", "instance": "cffb4ea1-311b-4842-bdf3-bfad74e6f722", "title": "Validation Error", "invalidFields": {} }
{ "id": "af98b57c-f3dc-46c2-b12e-0e42ba221b02", "modelType": "UpdateMTOServiceItemInternationalPortFSC", "portCode": "PDX", "reServiceCode": "POEFSC" }
{ "detail": "ID: af98b57c-f3dc-46c2-b12e-0e42ba221b02 is in a conflicting state POE Location can only be updated for service item POEFSC", "instance": "6c023056-221b-46bd-b1bb-c2e8cf0dd231", "title": "Conflict Error" }
{ "id": "af98b57c-f3dc-46c2-b12e-0e42ba221b02", "modelType": "UpdateMTOServiceItemInternationalPortFSC", "portCode": "PDX", "reServiceCode": "IUBPK" }
{ "title": "Validation Error", "instance": "bd14418a-b11f-4409-be69-26df3fc29c08", "detail": "reServiceCode in body should be one of [PODFSC POEFSC]" }
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Database
Any new migrations/schema changes:
Screenshots