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 18061 AOA Packet INT #12050

Merged
merged 45 commits into from
Feb 26, 2024
Merged

B 18061 AOA Packet INT #12050

merged 45 commits into from
Feb 26, 2024

Conversation

antgmann
Copy link
Contributor

@antgmann antgmann commented Feb 23, 2024

B-18061

Summary

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. Run Server, Server Tests
  2. Login as a Client User
  3. Check Swagger for the ppm -> ppm-shipments/{ppmshipmentid}/aoa-packet api endpoint
  4. Find a suitable PPMShipmentId to test with from database (must have ppmshipment capable of producing SSW and uploaded orders), or while logged in as user from the Network tab in dev tools ->MTO Shipments->PPMShipment->id
  5. Insert the PPMShipmentId into the "Try it out" section, or just put ID into the template above
  6. Test the API, then grab the example URL
  7. Paste the example URL into your browser
  8. Ensure PDF with SSW and Orders Document appears
  9. Repeat steps 2-8 as an office user, with the office API endpoint under the same category and name

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

…ination

AOA Packet is dependent on SSW PDF Form Filling work
@antgmann antgmann requested a review from a team as a code owner February 23, 2024 14:20
@antgmann antgmann self-assigned this Feb 23, 2024
@antgmann antgmann added Scrummy Bears Scrum Team H INTEGRATION Slated for Integration Testing labels Feb 23, 2024
@antgmann
Copy link
Contributor Author

antgmann commented Feb 23, 2024

There are some errors causing failure right now due to B-18428 not yet being merged into integration. It has required changes for conflicts between the SSW and the rank refactor

Resolved

Copy link
Contributor

@MInthavongsay MInthavongsay left a comment

Choose a reason for hiding this comment

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

We may have to refactor the PrimeDownloadService to another name to make it more generic in the future. Prime implies Prime usage. Looks good overall.

return ppmops.NewShowAOAPacketForbidden(), noSessionErr
}
// Ensures service member ID is present
if !appCtx.Session().IsMilApp() && appCtx.Session().ServiceMemberID == uuid.Nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know if this is really needed. Middleware would prevent any invocation of this handler without proper authentication.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could remove it if that would be better - I just saw it being included in other handlers, and included it as part of figuring out how to prevent access issues

@@ -1240,7 +1240,7 @@ jobs:
#
# The trailing hyphen in restore_cache seems important
# according to the page linked above
- v8-spectral-lint-
- v9-spectral-lint-
Copy link
Contributor

Choose a reason for hiding this comment

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

is this V9 needed for integrationBranch, or was it added as a part of the exp deployment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe that this change was required for int, as the threshold went down between when I pulled this from main and when I first attempted to PR. However, I haven't tested it since the rebase, so let me take a look and see if it's still necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After checking my local counts and the baseline on the most recent int pr, errors have been resolved in this branch and the results are below the current integration baseline. I'll revert it to v8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spectral lint has been reverted to v8 and the test passes. Thank you for catching this!

@deandreJones deandreJones merged commit f1eb19a into integrationTesting Feb 26, 2024
30 checks passed
@deandreJones deandreJones deleted the B-18061-AOA-INT branch February 26, 2024 21:44
@antgmann antgmann mentioned this pull request Feb 28, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INTEGRATION Slated for Integration Testing Scrummy Bears Scrum Team H
Development

Successfully merging this pull request may close these issues.

3 participants