Closed wesrowe closed 10 months ago
Existing tickets:
I think the main difference now is the recommendation to move the app to a different directory, since the Platform bug that blocked this work, https://github.com/department-of-veterans-affairs/va.gov-team/issues/58176, seems unlikely to get fixed
Documentation on Isolated Application Builds: https://depo-platform-documentation.scrollhelp.site/developer-docs/isolated-application-builds
There are some issues we will need to address before taking on this ticket:
/my-health/about-medications
Currently, there is code within the MHV Landing Page that routes to a component within Medications. The Medications team/IA wanted the above URL path. Because of technical limitations and time constraints, we did a cross-app import and mounted their component within our routes file. We will need to address this in order to make our landing page an isolated application.
Potential Options:
mhv/landing-page
-- not ideal/my-health/medications
. e.g. -- /my-health/medications/about
, and redirect requests for /my-health/about-medications
to the new path.Refactor the following files to avoid importing from application/mhv/landing-page
. I believe importing our manifest is OK (yarn check-app-imports --app-folders mhv/landing-page
will tell us), but other imports from our landing page should be refactored out.
src/platform/site-wide/mega-menu/containers/Main.jsx
src/platform/site-wide/user-nav/components/MyHealthLink.jsx
src/platform/site-wide/mega-menu/tests/my-health-link/mega-menu.my-health.cypress.spec.js
src/platform/site-wide/mega-menu/tests/my-va-link/mega-menu.my-va.cypress.spec.js
-- using our manifest, but code is for the /my-va linksrc/platform/site-wide/user-nav/tests/e2e/my-health-link/user-nav.my-health.cypress.spec.js
Update: related thread in Medications Slack channel to gauge timeline for moving /about-medications
content to a new URL to unblock this work.
Refinement notes:
Help a developer meeting to figure out steps to isolated our application:
Note: Probably need another ticket to track move of the landing page to Drupal.
Update: cannot use Drupal for authenticated content (it only works for publicly viewable / unauth pages).
We can still temporarily copy the medication landing page, but would need a different approach for where the content will move to in the future since Drupal is out:
/my-health/medications/
, such as /my-health/medications/about
. This would involve changes to the MHV medications app to add that page at a route, plus a redirect in our own app to the new URLIt's done?!
MAY BE BLOCKED on IA dependency in Medications tool
Description
User story
As a Cartographers team member, I want our landing page to be built in isolation, so that deploys are done quickly and on-demand with less exposure to unrelated flaky CI steps.
Notes
See first comment below for two in-flight PRs.
See steps/discussion here
Steps mentioned by Adrian in slack:
Related docs
Acceptance criteria
Tasks
/my-health/about-medications
as a cross-app dependency, understanding that the URL was chosen for IA reasons, per #issuecomment-1836275393 Veteran flow through it, including removal of the app from codebase~~src/platform
to not import fromsrc/applications/mhv/landing-page
. department-of-veterans-affairs/vets-website#27006