This repository is currently being migrated. It's locked while the migration is in progress.
Mhv horizon/cutover ebrake#13401
Draft
kjduensing wants to merge 2 commits into
Draft
Conversation
Contributor
|
@kjduensing Please link this pull request to an issue (you may need to rerun the failed workflow). Alternatively, you can add the no-issue label to skip this requirement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an emergency cutover lock ("e-brake") mechanism for Oracle Health (OH) migration. When the backend signals that specific health tools should be locked during cutover, the app will display an error screen instead of the normal tool content, preventing veterans from accessing potentially unstable services mid-migration.
Related to https://va.ghe.com/software/va.gov-team/issues/141084
Changes
New:
emergencyCutoverLockAPI fieldemergencyCutoverLock: string[]toAuthorizedServicesPayloadmeta andUserAuthorizedServicesDatatype definitionsgetAuthorizedServices.tsx, defaulting to an empty arrayNew:
isToolLockedutilityisToolLocked(emergencyCutoverLock, parentScreen)helper inutils/ohMigration.tsxOHParentScreensenum value to a lock key (appointments,sm,mr,rx)trueif the tool's key is present in the lock arrayScreen-level lock integration
ErrorComponentwhen appointments tool is lockedErrorComponentwhen lockedTests
isToolLockedcovering: undefined input, empty array, matching keys, non-matching keys, and multiple locked toolsFiles Changed
src/api/authorizedServices/getAuthorizedServices.tsxemergencyCutoverLockfrom API metasrc/api/types/AuthorizedServicesData.tsemergencyCutoverLocktype to payload and data typessrc/screens/HealthScreen/Appointments/Appointments.tsxsrc/screens/HealthScreen/MedicalRecordsScreen.tsxsrc/screens/HealthScreen/Pharmacy/PrescriptionHistory/PrescriptionHistory.tsxsrc/screens/HealthScreen/SecureMessaging/SecureMessaging.tsxsrc/utils/ohMigration.tsxisToolLockedutility and lock key mappingsrc/utils/ohMigration.test.tsxisToolLockedTesting
isToolLockedutilityErrorComponentwhen its corresponding lock key is present in theemergencyCutoverLockarray from the authorized services API response