Skip to content

Commit

Permalink
Deployment of 2024-09-12 (#15855)
Browse files Browse the repository at this point in the history
* fix copy

* update PDF

* update timestamp

* testing re enabling file download

* add some logging to e2e test run

* increase timeout

* 15607 remove non catchall hl7 to fhir mappings (#15733)

* test uploading trace

* Generating a version.json file with the current short commit id and pu… (#15789)

* Generating a version.json file with the current short commit id and putting it in with the Azure resources

* Update up-receiver-migration-validate-test-data.md (#15604)

Improvements to the Migration - Validate Test Data template:
- Updated the default labels
- Added space for STLT name
- Added Slack post reminder in the Acceptance criteria

* Oo/oslynn/15664/update rest transport for oracle rln etor nbs results (#15721)

* Update REST Transport to allow ApiKey for Oracle-RLN to read from vault

* Update REST Transport to allow ApiKey for Oracle-RLN to read from vault

* Update REST Transport to allow ApiKey for Oracle-RLN to read from vault

* Update REST Transport to allow Oracle-RLN to read apiKey from the vault

* Update REST Transport to allow Oracle-RLN to read apiKey from the vault

* Fixed RestTransport Integration Test

* Wasn't working in Staging or on Arnej's machine, so changed to be generating the file in the aureFunctionsDir (#15802)

* Engagement/jessica/15406 cli download report (#15675)

* Created an API that downloads files from a specified environment and optionally (unless it is prod) removes PII

* slightly cleaner tracing

* console added

* needed to ignore console

* test sort method

* simply skip test if mocked

* invert truthiness

* Bump actions/setup-java in /.github/actions/build-backend (#15817)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.2.2 to 4.3.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@6a0805f...2dfa201)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-java from 4.2.2 to 4.3.0 (#15818)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.2.2 to 4.3.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@6a0805f...2dfa201)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-java in /.github/actions/build-submissions (#15816)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.2.2 to 4.3.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@6a0805f...2dfa201)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump bridgecrewio/checkov-action from 12.2864.0 to 12.2867.0 (#15819)

Bumps [bridgecrewio/checkov-action](https://github.com/bridgecrewio/checkov-action) from 12.2864.0 to 12.2867.0.
- [Release notes](https://github.com/bridgecrewio/checkov-action/releases)
- [Commits](bridgecrewio/checkov-action@c942186...6429623)

---
updated-dependencies:
- dependency-name: bridgecrewio/checkov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update dates

* 15262 - Receiver Status smoke tests (#15785)

* 15262 - Fixed smoke tests

* Created receiver-status-page-user-flow.spec.ts and made tests as sanity checks.
Moved spec files into correct folders.

* Fixed linting

* Fixed path

* Fixed path

* Removed commented code

* Fixed spacing issues

* Fixed spacing issues

* Fixed spacing issues

* Fixed failing tests

* Fixed failing tests

* Added check if using mock

* Added check if using mock

* Add Receive step to UP (#15621)

* add QueueMessage to shared module as interface

* add azure table update to fhir converter

* add tracking for no report

* add BlobUtils

* rename function to parsePrimeRouterQueueMessage

* cast to specific queue message in up steps

* remove tableAccess

* fix fhirconverter tests

* fix so headers is deserialized

* add flyway script tup update report_file

* update flyway script

* update TopicConverter to accept null topic

* move from convert step to receive function

* inital setup for receive step

* add event and fhirenginerunresult return

* move all processing over to FHIRReceiver

* working code

* complete unit tests

* complete integration tests

* remove unnecessary test

* fix SubmissionControllerTest

* delete files

* delete files

* fix integration test

* change to doReceive

* remove unneeded mock

* mock action logger error

* lint format

* print error in test

* stacktrace to string

* use stackTraceToString()

* print stacktrace

* pass metadata into report creation

* review fixup

* changed assert

* update from review

* fixup based on new plan to parse messages

* fix some lint in QueueMessage

* add fields to submission table and change name

* replace SubmissionsEntity

* update receiver integration tests

* add elrReceiveQueueName

* filterHeaders toMap and serialize message

* fix sub controller int test

* add azure event checks to integration tests

* add documentation to MimeFormat.kt

* create TableAccess and update tests

* review fixup

* remove space

* test fixup

* add azure event for action logger errors

* trackExternalInputReport to blobinfo property

* fix tests

* update SubmissionTableService

* no need to clear mocks

* table client

* fix integration tests!

* gettableclient catch with retry

* document

* add reset and rename SubmissionEntity

* multi threading test win

* comment fixup

* file from merge

* move thread test over to different file

* rename val and add asserts for report_file

* remove piiRemoved.fhir

* Engagement/nj prework (#15529)

* Fixed New Jersey's suppress OBX-18

* Added NJ pre-work

* Updated receiving facilities.

* create documentation for hl7-fhir transforms (#15670)

* create documentation for hl7-fhir transforms

* update documentation for hl7-fhir transforms

* update documentation formatting for hl7-fhir transforms

* update documentation for null vs empty

* Bump the react-router group across 1 directory with 2 updates (#15627)

Bumps the react-router group with 2 updates in the /frontend-react directory: [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) and [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom).


Updates `react-router` from 6.25.1 to 6.26.1
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router)

Updates `react-router-dom` from 6.25.1 to 6.26.1
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react-router
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react-router
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: etanb <[email protected]>

* Bump lint-staged from 15.2.9 to 15.2.10 in /frontend-react (#15780)

Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.9 to 15.2.10.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v15.2.9...v15.2.10)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump the applicationinsights group in /frontend-react with 2 updates (#15778)

Bumps the applicationinsights group in /frontend-react with 2 updates: [@microsoft/applicationinsights-react-js](https://github.com/microsoft/applicationinsights-react-js) and [@microsoft/applicationinsights-web](https://github.com/microsoft/ApplicationInsights-JS).


Updates `@microsoft/applicationinsights-react-js` from 17.3.1 to 17.3.2
- [Release notes](https://github.com/microsoft/applicationinsights-react-js/releases)
- [Changelog](https://github.com/microsoft/applicationinsights-react-js/blob/main/RELEASES.md)
- [Commits](microsoft/applicationinsights-react-js@17.3.1...17.3.2)

Updates `@microsoft/applicationinsights-web` from 3.3.1 to 3.3.2
- [Release notes](https://github.com/microsoft/ApplicationInsights-JS/releases)
- [Changelog](https://github.com/microsoft/ApplicationInsights-JS/blob/main/RELEASES.md)
- [Commits](https://github.com/microsoft/ApplicationInsights-JS/commits)

---
updated-dependencies:
- dependency-name: "@microsoft/applicationinsights-react-js"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: applicationinsights
- dependency-name: "@microsoft/applicationinsights-web"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: applicationinsights
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/sanitize-html from 2.11.0 to 2.13.0 in /frontend-react (#15683)

Bumps [@types/sanitize-html](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sanitize-html) from 2.11.0 to 2.13.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sanitize-html)

---
updated-dependencies:
- dependency-name: "@types/sanitize-html"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump the testing-library group across 1 directory with 2 updates (#15739)

Bumps the testing-library group with 2 updates in the /frontend-react directory: [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) and [@testing-library/react](https://github.com/testing-library/react-testing-library).


Updates `@testing-library/jest-dom` from 6.4.8 to 6.5.0
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v6.4.8...v6.5.0)

Updates `@testing-library/react` from 16.0.0 to 16.0.1
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v16.0.0...v16.0.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: testing-library
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: testing-library
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 1.7.5 to 1.7.7 in /frontend-react (#15741)

Bumps [axios](https://github.com/axios/axios) from 1.7.5 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.7.5...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jsdom from 24.1.1 to 25.0.0 in /frontend-react (#15744)

Bumps [jsdom](https://github.com/jsdom/jsdom) from 24.1.1 to 25.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md)
- [Commits](jsdom/jsdom@24.1.1...25.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @trussworks/react-uswds from 9.0.0 to 9.1.0 in /frontend-react (#15745)

Bumps [@trussworks/react-uswds](https://github.com/trussworks/react-uswds) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/trussworks/react-uswds/releases)
- [Changelog](https://github.com/trussworks/react-uswds/blob/main/CHANGELOG.md)
- [Commits](trussworks/react-uswds@9.0.0...9.1.0)

---
updated-dependencies:
- dependency-name: "@trussworks/react-uswds"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tsx from 4.17.0 to 4.19.0 in /frontend-react (#15746)

Bumps [tsx](https://github.com/privatenumber/tsx) from 4.17.0 to 4.19.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](privatenumber/tsx@v4.17.0...v4.19.0)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Experience/15262/receiver status smoke (#15824)

* 15262 - Fixed smoke tests

* Created receiver-status-page-user-flow.spec.ts and made tests as sanity checks.
Moved spec files into correct folders.

* Fixed linting

* Fixed path

* Fixed path

* Removed commented code

* Fixed spacing issues

* Fixed spacing issues

* Fixed spacing issues

* Fixed failing tests

* Fixed failing tests

* Added check if using mock

* Added check if using mock

* Fixing receiver name failing test

* Skipped tests until filters have been fixed per #15737

* Bump @types/react from 18.3.3 to 18.3.5 in /frontend-react (#15747)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.3 to 18.3.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump sass from 1.77.8 to 1.78.0 in /frontend-react (#15779)

Bumps [sass](https://github.com/sass/dart-sass) from 1.77.8 to 1.78.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](sass/dart-sass@1.77.8...1.78.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump postcss from 8.4.41 to 8.4.45 in /frontend-react (#15782)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.41 to 8.4.45.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.41...8.4.45)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump the vite group across 1 directory with 2 updates (#15799)

Bumps the vite group with 2 updates in the /frontend-react directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) and [vite-plugin-checker](https://github.com/fi3ework/vite-plugin-checker).


Updates `vite` from 5.3.4 to 5.4.3
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.3/packages/vite)

Updates `vite-plugin-checker` from 0.7.2 to 0.8.0
- [Release notes](https://github.com/fi3ework/vite-plugin-checker/releases)
- [Changelog](https://github.com/fi3ework/vite-plugin-checker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fi3ework/vite-plugin-checker/compare/[email protected]@0.8.0)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: vite
- dependency-name: vite-plugin-checker
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: vite
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @playwright/test in /frontend-react in the playwright group (#15807)

Bumps the playwright group in /frontend-react with 1 update: [@playwright/test](https://github.com/microsoft/playwright).


Updates `@playwright/test` from 1.46.1 to 1.47.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.46.1...v1.47.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: playwright
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* disable smoke tests for receiver status temporarily (#15836)

* Engagement/jessica/15541 cli add code to condition (#15803)

* Added code to condition to the fhirdata cli tool

* added schema that handles converting unwanted conditions to notes acccording to MARS (#15764)

* Bump the react-query group across 1 directory with 2 updates (#15838)

Bumps the react-query group with 2 updates in the /frontend-react directory: [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) and [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools).


Updates `@tanstack/react-query` from 5.51.23 to 5.55.4
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.55.4/packages/react-query)

Updates `@tanstack/react-query-devtools` from 5.51.23 to 5.55.4
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.55.4/packages/react-query-devtools)

---
updated-dependencies:
- dependency-name: "@tanstack/react-query"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react-query
- dependency-name: "@tanstack/react-query-devtools"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react-query
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joseph Andersen <[email protected]>

* Bump express from 4.19.2 to 4.20.0 in /frontend-react (#15837)

Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.20.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](expressjs/express@4.19.2...4.20.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @okta/okta-signin-widget in /frontend-react in the okta group (#15809)

Bumps the okta group in /frontend-react with 1 update: [@okta/okta-signin-widget](https://github.com/okta/okta-signin-widget).


Updates `@okta/okta-signin-widget` from 7.21.2 to 7.23.0
- [Release notes](https://github.com/okta/okta-signin-widget/releases)
- [Changelog](https://github.com/okta/okta-signin-widget/blob/master/webpack.release.config.js)
- [Commits](okta/okta-signin-widget@okta-signin-widget-7.21.2...okta-signin-widget-7.23.0)

---
updated-dependencies:
- dependency-name: "@okta/okta-signin-widget"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: okta
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump the vitest group in /frontend-react with 3 updates (#15457)

Bumps the vitest group in /frontend-react with 3 updates: [@vitest/coverage-istanbul](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-istanbul), [@vitest/ui](https://github.com/vitest-dev/vitest/tree/HEAD/packages/ui) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@vitest/coverage-istanbul` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.0.5/packages/coverage-istanbul)

Updates `@vitest/ui` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.0.5/packages/ui)

Updates `vitest` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.0.5/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-istanbul"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: "@vitest/ui"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joseph Andersen <[email protected]>

* Bump bridgecrewio/checkov-action from 12.2867.0 to 12.2869.0 (#15845)

Bumps [bridgecrewio/checkov-action](https://github.com/bridgecrewio/checkov-action) from 12.2867.0 to 12.2869.0.
- [Release notes](https://github.com/bridgecrewio/checkov-action/releases)
- [Commits](bridgecrewio/checkov-action@6429623...08a0f07)

---
updated-dependencies:
- dependency-name: bridgecrewio/checkov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Engagement/jessica/15405 cleanup deidentification enrichment (#15821)

* Changed where the files used and produced by the remove pii test live as well as delete the output file after the test runs

* Engagement/jessica/15540 fhirdata specify receiver (#15800)

* Added the ability to specify the receiver settings for the fhirdata command
* Made the receiver schema optional if the receiver is specified.
* Checking the receiver for their format and using it. if applicable. Applying enrichment schemas across the board if a receiver is specified and has them

* Engagement/jessica/15406 download report cleanup (#15847)

* Capturing the report not existing error so that we can return a pretty one. Fixing a condition in the pii removal yml. Returning a prettier body for a report

* Bump chromaui/action from 11.7.1 to 11.8.0 (#15848)

Bumps [chromaui/action](https://github.com/chromaui/action) from 11.7.1 to 11.8.0.
- [Release notes](https://github.com/chromaui/action/releases)
- [Commits](chromaui/action@b984808...95f238d)

---
updated-dependencies:
- dependency-name: chromaui/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* #15217 - Implement smoke test user flow for Last Mile Failures (#15843)

* #15217 - Implement smoke test user flow for Last Mile Failures

* Fixed linting issues

* Fixed linting issues

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: etanb <[email protected]>
Co-authored-by: Jack Wang <[email protected]>
Co-authored-by: Angela DeGolier <[email protected]>
Co-authored-by: chris-kuryak <[email protected]>
Co-authored-by: OTT SATHNGAM <[email protected]>
Co-authored-by: JessicaWNava <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: etanb <[email protected]>
Co-authored-by: Penelope Lischer <[email protected]>
Co-authored-by: Brick Green <[email protected]>
Co-authored-by: victor-chaparro <[email protected]>
Co-authored-by: James Gilmore <[email protected]>
Co-authored-by: Joseph Andersen <[email protected]>
Co-authored-by: lucero-v <[email protected]>
  • Loading branch information
15 people authored Sep 16, 2024
1 parent c09ae52 commit e07ac7a
Show file tree
Hide file tree
Showing 314 changed files with 9,129 additions and 27,000 deletions.
2 changes: 2 additions & 0 deletions .environment/gitleaks/gitleaks-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ title = "PRIME ReportStream Gitleaks Configuration"
'authority\", \"extension\"', # FHIR extension URL also shows up in normal FHIR test data
'ApiKeyCredential\(\"flexion\"',
'authType: \"two-legged\"',
'\"apiKey\"',
'api-key\" to \"oracle123\"',
'Authorization-Type: \"username/password\"',
'cdctiautomated_sa'
]
Expand Down
17 changes: 15 additions & 2 deletions .github/ISSUE_TEMPLATE/up-receiver-migration-validate-test-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
name: UP Migrating Receiver - Validate Test Data
about: This is the fourth step in migrating a STLT to the UP
title: "[name of STLT] - UP Migration - Validate Test Data"
labels: onboarding-ops, receiver
labels: onboarding-ops, receiver, engineering, needs-refinement
assignees: ''

---
[STLT] = name of STLT

### User Story:
As a developer, I want the [STLT] to validate test messages in staging, so that they can receive data in the format they expect.
Expand All @@ -27,4 +28,16 @@ As a developer, I want the [STLT] to validate test messages in staging, so that

### Acceptance Criteria
- [ ] Created and sent data using Simple Report
- [ ] Confirmed with STLT that data passes validation
- [ ] Confirmed with STLT that data passes validation
- [ ] When finished, tag Mikaelah, Chris, and Glenn in a slack post stating:
> [STLT] "Testing in Staging" is complete and will be moving on to "Monitor in Production"
>
> Connection Type: [REST, SFTP, SOAP, etc]
>
> Conditions tested: [List of Conditions]
>
> Positives set up to receive: [List of Conditions]
>
> Negatives set up to receive: [List of Conditions]
>
> Format receiving: [HL7 or FHIR]
2 changes: 1 addition & 1 deletion .github/actions/build-backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
sudo rm -rf /usr/local/lib/android
- name: Set up JDK 17
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88
with:
java-version: "17"
distribution: "temurin"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build-submissions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
sudo rm -rf /usr/local/lib/android
- name: Set up JDK 17
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88
with:
java-version: "17"
distribution: "temurin"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ jobs:
./gradlew :prime-router:primeCLI --args='validate-yaml --type Organizations --file settings/organizations.yml --dir settings/STLTs'
./gradlew :prime-router:primeCLI --args='validate-yaml --type FhirToFhirTransform --dir src/main/resources/metadata/fhir_transforms'
./gradlew :prime-router:primeCLI --args='validate-yaml --type FhirToHL7Mapping --dir src/main/resources/metadata/hl7_mapping'
./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingMessageTemplate --dir metadata/HL7/catchall/hl7/message metadata/HL7/v251-elr/hl7/message'
./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingResourceTemplate --dir metadata/HL7 --exclude-dir metadata/HL7/catchall/hl7/message metadata/HL7/v251-elr/hl7/message metadata/HL7/v251-elr/hl7/codesystem metadata/HL7/catchall/hl7/codesystem --exclude-file metadata/HL7/catchall/fhir/resourcemapping.yml metadata/HL7/v251-elr/fhir/resourcemapping.yml metadata/HL7/catchall/hl7/resource/Common.yml metadata/HL7/v251-elr/hl7/resource/Common.yml'
./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingMessageTemplate --dir metadata/HL7/catchall/hl7/message'
./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingResourceTemplate --dir metadata/HL7 --exclude-dir metadata/HL7/catchall/hl7/message metadata/HL7/catchall/hl7/codesystem --exclude-file metadata/HL7/catchall/fhir/resourcemapping.yml metadata/HL7/catchall/hl7/resource/Common.yml'
- name: Check for Uncommited Schema Docs
id: check_changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend_chromatic_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: yarn install --immutable

- name: Run Chromatic
uses: chromaui/action@b984808b772126a9f44b2b7737b131b68a2ede32
uses: chromaui/action@95f238da20415287a1a877fecec79290ad2a7e0c
with:
workingDir: frontend-react
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ jobs:

- name: Run Chromatic
id: chromatic
uses: chromaui/action@b984808b772126a9f44b2b7737b131b68a2ede32
uses: chromaui/action@95f238da20415287a1a877fecec79290ad2a7e0c
with:
workingDir: frontend-react
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: snyk/actions/setup@b98d498629f1c368650224d6d212bf7dfa89e4bf
- name: Set up JDK 17 to generate backend coverage stats
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88
with:
java-version: "17"
distribution: "temurin"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Set up JDK 17
if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true'
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88
with:
java-version: "17"
distribution: "temurin"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Run Checkov action
uses: bridgecrewio/checkov-action@c9421864e014ef6b8acfa35d0bf3c7e52c13ab10
uses: bridgecrewio/checkov-action@08a0f072354cdd9c009ce7c5c6174491834cec08
with:
directory: operations/app/terraform
skip_check: CKV_AZURE_139,CKV_AZURE_137,CKV_AZURE_103,CKV_AZURE_104,CKV_AZURE_102,CKV_AZURE_130,CKV_AZURE_121,CKV_AZURE_67,CKV_AZURE_56,CKV_AZURE_17,CKV_AZURE_63,CKV_AZURE_18,CKV_AZURE_88,CKV_AZURE_65,CKV_AZURE_13,CKV_AZURE_66,CKV_AZURE_33,CKV_AZURE_35,CKV_AZURE_36,CKV_AZURE_98,CKV2_AZURE_1,CKV2_AZURE_15,CKV2_AZURE_21,CKV_AZURE_213,CKV_AZURE_59,CKV2_AZURE_33,CKV2_AZURE_32,CKV2_AZURE_28,CKV_AZURE_206,CKV_AZURE_42,CKV_AZURE_110,CKV_AZURE_109,CKV_AZURE_166,CKV2_AZURE_38,CKV2_AZURE_40,CKV2_AZURE_41,CKV_AZURE_235
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ hs_err_pid*
**/build/**
**/log/**
**/dependency-reduced-pom.xml
**/version.json

# Frontend build output
**/node_modules/**
Expand Down
196 changes: 192 additions & 4 deletions frontend-react/e2e/pages/authenticated/admin/receiver-status.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { expect, Locator } from "@playwright/test";
import { endOfDay, format, startOfDay, subDays } from "date-fns";
import type { RSOrganizationSettings } from "../../../../src/config/endpoints/settings";
import { RSReceiverStatus } from "../../../../src/hooks/api/UseReceiversConnectionStatus/UseReceiversConnectionStatus";
import {
createStatusTimePeriodData,
SUCCESS_RATE_CLASSNAME_MAP,
SuccessRate,
} from "../../../../src/pages/admin/receiver-dashboard/utils";
import { DatePair, dateShortFormat } from "../../../../src/utils/DateTimeUtils";
import { DatePair, dateShortFormat, durationFormatShort } from "../../../../src/utils/DateTimeUtils";
import { formatDate } from "../../../../src/utils/misc";
import { createMockGetReceiverStatus } from "../../../mocks/receiverStatus";
import { BasePage, BasePageTestArgs, type ResponseHandlerEntry, type RouteHandlerFulfillEntry } from "../../BasePage";

Expand Down Expand Up @@ -310,8 +313,7 @@ export class AdminReceiverStatusPage extends BasePage {
if (!isRequestAwaitedBool) return undefined as void;

const req = await p;
const reqUrl = req ? new URL(req.url()) : undefined;
return reqUrl;
return req ? new URL(req.url()) : undefined;
}

async updateFilterDateRange(start: Date, end: Date, inputMethod: "textbox" | "calendar" = "textbox") {
Expand Down Expand Up @@ -400,7 +402,7 @@ export class AdminReceiverStatusPage extends BasePage {
return a[0] !== b[0] && a[1] !== b[1];
}

async testReceiverStatusDisplay() {
async testReceiverStatusDisplay(isSmoke = false) {
const [startDate, endDate] = this.filterFormInputs.dateRange.value;
const statusRows = this.receiverStatusRowsLocator;
await expect(statusRows).toHaveCount(new Set(this.receiverStatus?.map((r) => r.receiverId)).size);
Expand Down Expand Up @@ -444,6 +446,192 @@ export class AdminReceiverStatusPage extends BasePage {
await expect(sliceEle).toHaveClass(expectedClass);
}
}

if (isSmoke && i === 0) {
break;
}
}

return true;
}

async testReceiverName() {
const { organizationName, receiverName, successRate } =
this.timePeriodData[1];

const receiversStatusRows = this.receiverStatusRowsLocator;
const expectedReceiverStatusRow = receiversStatusRows.nthCustom(0);
const expectedReceiverStatusRowTitle =
this.getExpectedReceiverStatusRowTitle(
organizationName,
receiverName,
successRate,
);

await expect(receiversStatusRows).toHaveCount(this.timePeriodData.length);

await this.updateFilters({
receiverName,
});

await expect(receiversStatusRows).toHaveCount(1);
await expect(expectedReceiverStatusRow).toBeVisible();
await expect(expectedReceiverStatusRow.title).toHaveText(expectedReceiverStatusRowTitle);

await this.resetFilters();

await expect(receiversStatusRows).toHaveCount(this.timePeriodData.length);

return true;
}

async testReceiverMessage() {
// get first entry's result from all-fail receiver's first day -> third time period
const receiverI = 0;
const dayI = 0;
const timePeriodI = 2;
const entryI = 0;
const {days} = this.timePeriodData[receiverI];
const {connectionCheckResult} = days[dayI].timePeriods[timePeriodI].entries[entryI];

const receiversStatusRows = this.receiverStatusRowsLocator;

await this.updateFilters({
resultMessage: connectionCheckResult,
});

for (const [i, {days}] of this.timePeriodData.entries()) {
const isRowExpected = i === receiverI;
const row = receiversStatusRows.nthCustom(i);

for (const [i, {timePeriods}] of days.entries()) {
const isDayExpected = isRowExpected && i === dayI;
const rowDay = row.days.nthCustom(i);

for (const [i] of timePeriods.entries()) {
const isTimePeriodExpected = isDayExpected && i === timePeriodI;
const expectedClass = !isTimePeriodExpected
? /success-result-hidden/
: /^((?!success-result-hidden).)*$/;
const rowDayTimePeriod = rowDay.timePeriods.nth(i);

await expect(rowDayTimePeriod).toBeVisible();
await expect(rowDayTimePeriod).toHaveClass(expectedClass);
}
}
}

await this.resetFilters();

await this.testReceiverStatusDisplay();

return true;
}

async testReceiverOrgLinks(isSmoke = false) {
const rows = this.receiverStatusRowsLocator;

for (const [i, { organizationName }] of this.timePeriodData.entries()) {
const row = rows.nthCustom(i);

const link = row.title.getByRole("link", { name: organizationName, exact: true }).first();
const expectedUrl = this.getExpectedStatusOrganizationUrl(i);
await expect(link).toBeVisible();
const p = this.page.route(
`/api/settings/organizations/${organizationName}`,
(route) =>
route.fulfill({
json: {
description: "fake",
filters: [],
name: organizationName,
jurisdiction: "fake",
version: 0,
createdAt: "",
createdBy: "",
} satisfies RSOrganizationSettings,
}),
);
await link.click();
await expect(this.page).toHaveURL(expectedUrl);
await p;
await this.page.goBack();

if (isSmoke && i === 0) {
break;
}
}

return true;
}

async testReceiverTimePeriodModals(isSmoke = false) {
const overlay = this.filterFormInputs.dateRange.modalOverlay;

for (const [i, { days }] of this.timePeriodData.entries()) {
const { days: daysLoc } = this.receiverStatusRowsLocator.nthCustom(i);

for (const [dayI, day] of days.entries()) {
for (const [i, { successRateType, entries }] of day.timePeriods.entries()) {
// only first entry in time period is currently displayed
const {
organizationName,
organizationId,
receiverId,
receiverName,
connectionCheckSuccessful,
connectionCheckStartedAt,
connectionCheckCompletedAt,
connectionCheckResult,
} = entries[0] ?? {};
const sliceEle = daysLoc.nthCustom(dayI).timePeriods.nth(i);

const isModalExpectedVisible = successRateType !== SuccessRate.UNDEFINED;

await sliceEle.click({ force: true });
await expect(overlay).toBeAttached({
attached: isModalExpectedVisible,
});

if (isModalExpectedVisible) {
const expectedResultText = connectionCheckSuccessful ? "success" : "failed";
const expectedModalText = `Results for connection verification checkOrg:${organizationName} (id: ${organizationId})Receiver:${receiverName} (id: ${receiverId})Result:${expectedResultText}Started At:${formatDate(connectionCheckStartedAt)}${connectionCheckStartedAt.toISOString()}Time to complete:${durationFormatShort(connectionCheckCompletedAt, connectionCheckStartedAt)}Result message:${connectionCheckResult}`;

await expect(overlay).toBeVisible();
await expect(overlay).toHaveText(expectedModalText);

await overlay.press("Escape");
}
}
}

if (isSmoke && i === 0) {
break;
}
}

return true;
}

async testReceiverLinks(isSmoke = false) {
const rows = this.receiverStatusRowsLocator;

for (const [i, { receiverName }] of this.timePeriodData.entries()) {
const row = rows.nthCustom(i);

const link = row.title.getByRole("link", {
name: receiverName,
});
await expect(link).toBeVisible();
await link.click();
await expect(this.page).toHaveURL(
this.getExpectedStatusReceiverUrl(i),
);
await this.page.goBack();

if (isSmoke && i === 0) {
break;
}
}

return true;
Expand Down
Loading

0 comments on commit e07ac7a

Please sign in to comment.