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

B 20473 int #13957

Open
wants to merge 51 commits into
base: integrationTesting
Choose a base branch
from
Open

B 20473 int #13957

wants to merge 51 commits into from

Conversation

pambecker
Copy link
Contributor

Agility ticket

Summary

This story will add the ability for the SC and TOO to Cancel a move from the Move Details page. The move cannot have shipment in Approved status (non-PPM) or in Closeout complete status (PPM). Also, move cannot be in Canceled status.

How to test

  1. Access the SC Counseling queue. Select a move in Needs Services Counseling status.
  2. Click on the Cancel move link on the top of the Move details page.
  3. Click on the Cancel Move button on the confirmation modal.
  4. Verify that the Cancel link is now removed and that the shipment cards now display Canceled.
  5. Navigate back to the SC queue, verify that the move is no longer in the queue.
  6. Navigate to the Search tab and search for the move that was canceled.
  7. Verify that it has a Canceled status.
  8. Access the TOO Task Order queue, run through steps 2-7 for a move that does not have any previously approved shipments.
  9. Go back as a TOO and find a move that does have at least 1 approved shipment, verify that the Cancel move link is not available.
  10. Find a shipment in Closeout Complete status and verify for that move that the Cancel move link is not available.

pambecker and others added 28 commits October 1, 2024 21:30
@pambecker pambecker added G-Unit Scrum Team G INTEGRATION Slated for Integration Testing labels Oct 18, 2024
@pambecker pambecker marked this pull request as ready for review October 18, 2024 16:41
@robot-mymove
Copy link

robot-mymove commented Oct 21, 2024

Test coverage on client failed.

Last run: Tue 22 Oct 2024 08:48:28 PM UTC
Refer to this report to see coverage details for the client app.
Documentation for test coverage can be found at this link.

operationPath,
{
moveID,
'If-Match': ifMatchETag,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the ETag here? I don't see us doing anythign with it

Copy link
Contributor

Choose a reason for hiding this comment

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

we do use it when we are making requests like PATCH or POST to help avoid conflicts if the same record is being updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need the ETag here? I don't see us doing anythign with it

removed. thanks, I meant to try it without also, but forgot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, so since the /definitions/Move has eTag it will use the eTag if I pass it? so leave it there @joeydoyecaci

Copy link
Contributor

@joeydoyecaci joeydoyecaci Oct 22, 2024

Choose a reason for hiding this comment

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

it would, but mainly if a call is made directly to it like through postman. It is a field in the Move table that is updated on each call involving that record.

Copy link
Contributor

@paulstonebraker paulstonebraker left a comment

Choose a reason for hiding this comment

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

Works and looks good! I bet your brain is so happy to have updated 'cancelled' to 'canceled' 😺

Copy link
Contributor

@joeydoyecaci joeydoyecaci 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!

@pambecker
Copy link
Contributor Author

All changes from comments have been pushed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
G-Unit Scrum Team G INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

8 participants