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

INT-B-22133 prime simulator update port #14506

Merged

Conversation

brianmanley-caci
Copy link
Contributor

Agility ticket

Summary

This story adds the functionality for updating the Port on a service item (PODFSC or POEFSC) in the prime simulator.

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.

  • Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
  • Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers

These are to be checked by a reviewer.

  • Has the branch been pulled in and checked out?
  • Have the BL acceptance criteria been met for this change?
  • Was the CircleCI build successful?
  • Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

How to test

  1. Create an HHG shipment with Alaska as either the origin or destination.
  2. Copy down the move code.
  3. Approved the shipment as a TOO.
  4. Login to the office app as a Prime Simulator user.
  5. Search for the Move code from step 2.
  6. Click on the row with the move.
  7. Scroll down to the shipment you created in step 1, and locate the International POD (or POE) Fuel Surcharge.
  8. Click the Edit button beside the service item.
  9. Verify the Port, Port Location, and Port Code fields are all empty.
  10. Enter a valid port code (ports.port_code).
  11. Click Save.
  12. Verify you receive a success message: "Successfully updated service item".
  13. Scroll back down to the service item and click the edit button again.
  14. You should now see the Port, Port Location and Port Code populated.
  15. Try saving with an invalid port code and you should receive an error message.

Frontend

  • There are no aXe warnings for UI.
  • This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
  • There are no new console errors in the browser devtools.
  • There are no new console errors in the test output.
  • If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
  • This change meets the standards for Section 508 compliance.

Backend

Database

Any new migrations/schema changes:

  • Follows our guidelines for Zero-Downtime Deploys.
  • Have been communicated to #g-database.
  • Secure migrations have been tested following the instructions in our docs.

Screenshots

image

image

image

image

Copy link
Contributor

@danieljordan-caci danieljordan-caci left a comment

Choose a reason for hiding this comment

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

Could you handle lowercase values? pdx and sea should work imo.

Screenshot 2025-01-03 at 2 30 19 PM

Screenshot 2025-01-03 at 2 30 09 PM

@brianmanley-caci
Copy link
Contributor Author

Could you handle lowercase values? pdx and sea should work imo.

Since this prime sim tool exists to make our lives easier, I would agree with that idea.

@msaki-caci
Copy link
Contributor

2 things I noticed both are probably insignificant.

  1. In the BL it states that the edit page for the POE/POD FSC should be the "Update Port Service Item page" But in your code it is the "Update International Fuel Surchage Service Item".

  2. Also in the BL it states on the edit page we should see:
    "ID (readonly)
    MTO ID (readonly)
    Shipment ID (readonly)
    Status (readonly)
    Port (readonly)
    Port (readonly)
    Port Code"

I am assuming that it should be Port Location.

In either case you just might want to update the BL. Otherwise everything looks good to me.

@brianmanley-caci
Copy link
Contributor Author

Could you handle lowercase values? pdx and sea should work imo.

Since this prime sim tool exists to make our lives easier, I would agree with that idea.

Added logic to convert to uppercase, and added a test for that.

@brianmanley-caci
Copy link
Contributor Author

2 things I noticed both are probably insignificant.

  1. In the BL it states that the edit page for the POE/POD FSC should be the "Update Port Service Item page" But in your code it is the "Update International Fuel Surchage Service Item".
  2. Also in the BL it states on the edit page we should see:
    "ID (readonly)
    MTO ID (readonly)
    Shipment ID (readonly)
    Status (readonly)
    Port (readonly)
    Port (readonly)
    Port Code"

I am assuming that it should be Port Location.

In either case you just might want to update the BL. Otherwise everything looks good to me.

Thanks for catching that. I went back and fixed both of those on the story.

Copy link
Contributor

@danieljordan-caci danieljordan-caci 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! Much better - thanks for the fixes.

Copy link
Contributor

@cameroncaci cameroncaci left a comment

Choose a reason for hiding this comment

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

Backend is good

@brianmanley-caci brianmanley-caci merged commit 27f9171 into integrationTesting Jan 7, 2025
35 checks passed
@brianmanley-caci brianmanley-caci deleted the INT-B-22133-Prime-Simulator-Update-Port branch January 7, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go-Rillaz Go-Rillaz INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

6 participants