Skip to content

Commit

Permalink
Merge branch 'B-18059' of github.com:transcom/mymove into B-18059-INT
Browse files Browse the repository at this point in the history
  • Loading branch information
r-mettler committed Feb 8, 2024
2 parents 32a30bd + ba2652e commit 12264f6
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 104 deletions.
27 changes: 23 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2010,6 +2010,18 @@ jobs:
repo: app-tasks
- announce_failure

# `prod_auth_check` checks if approved before going to prod
prod_auth_check:
executor: tls_small
steps:
- run: echo "build approved by $CIRCLE_USERNAME"
- run:
name: Check if Prod approval has rights
command: |
if [[ $CIRCLE_USERNAME != "josiahzimmerman-caci" && $CIRCLE_USERNAME != "deandreJones" && $CIRCLE_USERNAME != "cameroncaci" ]]; then
exit 1
fi
- announce_failure
# All of the deploy tasks need to checkout the code so they can run the `scripts/do-exclusively` script

# `deploy_dp3_migrations` deploys migrations to the dp3 environment
Expand Down Expand Up @@ -2566,6 +2578,13 @@ workflows:
- deploy_stg_app
- deploy_stg_app_client_tls

- prod_auth_check:
requires:
- approve_prd_deploy
filters:
branches:
only: main

- deploy_storybook_dp3:
requires:
- build_storybook
Expand All @@ -2580,28 +2599,28 @@ workflows:

- push_otel_collector_image_prd:
requires:
- approve_prd_deploy
- prod_auth_check
filters:
branches:
only: main

- push_app_prd:
requires:
- approve_prd_deploy
- prod_auth_check
filters:
branches:
only: main

- push_migrations_prd:
requires:
- approve_prd_deploy
- prod_auth_check
filters:
branches:
only: main

- push_tasks_prd:
requires:
- approve_prd_deploy
- prod_auth_check
filters:
branches:
only: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: approve
uses: hmarr/auto-approve-action@v3.2.1
uses: hmarr/auto-approve-action@v4.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/go-auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
needs: [tidy]
steps:
- name: approve
uses: hmarr/auto-approve-action@v3.2.1
uses: hmarr/auto-approve-action@v4.0.0
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
21 changes: 0 additions & 21 deletions config/tls/ECA_Root_CA_4.cer

This file was deleted.

27 changes: 0 additions & 27 deletions config/tls/IdenTrust-ECA-S23.cer

This file was deleted.

Binary file modified config/tls/milmove-cert-bundle.p7b
Binary file not shown.
49 changes: 0 additions & 49 deletions config/tls/mmb.gov.uat.homesafeconnect.com.cer

This file was deleted.

2 changes: 1 addition & 1 deletion migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -895,4 +895,4 @@
20240124153121_remove_ppmid_from_signedcertification_table.up.sql
20240124155759_20240124-homesafeconnect-cert.up.sql
20240129153006_20240129-homesafeconnect-cert.up.sql
20240201201343_update_duty_location_names.up.sql
20240201201343_update_duty_location_names.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Local test migration.
-- This will be run on development environments.
-- It should mirror what you intend to apply on prd/stg/exp/demo
-- DO NOT include any sensitive data.
14 changes: 14 additions & 0 deletions src/components/Office/DefinitionLists/PPMShipmentInfoList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,19 @@ const PPMShipmentInfoList = ({
</div>
);

const aoaPacketElement = (
<div>
<dt>AOA Packet</dt>
<dd data-testid="aoaPacketDownload">
<p className={styles.downloadLink}>
<a href="">
<span>Download AOA Paperwork (PDF)</span>
</a>
</p>
</dd>
</div>
);

const counselorRemarksElementFlags = getDisplayFlags('counselorRemarks');
const counselorRemarksElement = (
<div className={counselorRemarksElementFlags.classes}>
Expand Down Expand Up @@ -214,6 +227,7 @@ const PPMShipmentInfoList = ({
{showElement(estimatedIncentiveElementFlags) && estimatedIncentiveElement}
{hasRequestedAdvanceElement}
{hasRequestedAdvance === true && advanceStatusElement}
{advanceStatus === ADVANCE_STATUSES.APPROVED.apiValue && aoaPacketElement}
{counselorRemarksElement}
</dl>
);
Expand Down
16 changes: 16 additions & 0 deletions src/components/Office/ShipmentDisplay/ShipmentDisplay.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,22 @@ describe('Shipment Container', () => {
expect(screen.getByText('PPM')).toBeInTheDocument();
expect(screen.queryByRole('button', { name: 'Review documents' })).toBeInTheDocument();
});
it('renders aoa packet link when approved', () => {
render(
<MockProviders permissions={[permissionTypes.updateShipment]}>
<ShipmentDisplay
displayInfo={{ ...ppmInfo }}
ordersLOA={ordersLOA}
shipmentType={SHIPMENT_OPTIONS.PPM}
isSubmitted
allowApproval={false}
warnIfMissing={['counselorRemarks']}
reviewURL="/"
/>
</MockProviders>,
);
expect(screen.getByTestId('aoaPacketDownload')).toBeInTheDocument();
});
describe("renders the 'packet ready for download' tag when", () => {
it('approved', () => {
render(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export const ppmInfo = {
shipmentId: 'b5c2d9a1-d1e6-485d-9678-8b62deb0d801',
spouseProGearWeight: 498,
status: 'SUBMITTED',
advanceStatus: 'APPROVED',
submittedAt: '2022-04-29T21:48:21.573Z',
updatedAt: '2022-04-29T21:48:21.581Z',
},
Expand Down

0 comments on commit 12264f6

Please sign in to comment.