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

VACMS-16233 Reorder VAMC menus #17189

Merged
merged 5 commits into from
Feb 12, 2024
Merged

VACMS-16233 Reorder VAMC menus #17189

merged 5 commits into from
Feb 12, 2024

Conversation

swirtSJW
Copy link
Contributor

@swirtSJW swirtSJW commented Feb 9, 2024

Description

Relates to #16233

Acceptance Criteria

Screenshots

Prod (old busted) on left, PR (new hotness) on right
image

QA steps

  1. Not required but if you want to see the ~520 lines of new code added to codit:menu tools module you can see it here .

  2. Go to the tugboat dashboard and click on the php terminal link.

    • Run the command drush scr ./scripts/content/VACMS-16233-reorder-vamc-menu-items.php
    • validate you see something like
      image
  3. Go get lunch... it is going to run for ~ an hour on tugboat.

  4. When it is complete:

    • Validate you see a message like
      image
  5. Go to System Washington DC

    • validate that the primary menu items under "About SYSTEM health care" match the following pattern
      About us
      Programs
     Research
     Policies
     VA police
     Work with us
     Contact us
    
  6. Go to System Spokane

    • validate pattern match ^^
  7. Go to System Greater Los Angeles

    • validate pattern match ^^
  8. Go to System Orlando

    • validate pattern match ^^
  9. Go to System Lovell

    • validate pattern match ^^
  10. Login as admin

  11. Go to dblog filtered for codit menu tools

    • validate you only see 6 notices. They are from misnamed menu items that have already had their names fixed on prod, but tugboat's db does not have the fix yet.
  12. Go to the menu admin

  • Validate that no menu exists with the word 'topeka' in it (have to check all 4 paginations)
  • Validate that no menu exists with the word 'leavenworth' in it (have to check all 4 paginations)

Definition of Done

  • Acceptance Criteria in related issue are met.
  • Manual Code Review Approved.

@swirtSJW swirtSJW self-assigned this Feb 9, 2024
@va-cms-bot va-cms-bot temporarily deployed to Tugboat February 9, 2024 18:08 Destroyed
Copy link

github-actions bot commented Feb 9, 2024

GitHub Workflows (.github/workflows/*.yml)

Have you...

  • pinned all affected GitHub Actions at a specific commit by SHA?
  • reviewed the source code of the action at the commit you are pinning?
  • confirmed that no GitHub security measures are being bypassed?
  • checked for any injection of user content into protected contexts?
  • reviewed Security hardening for GitHub Actions?
  • reviewed GitHub Workflows?

@swirtSJW swirtSJW changed the title VACMS-16233 Reorder vamc menus VACMS-16233 Reorder VAMC menus Feb 9, 2024
@swirtSJW
Copy link
Contributor Author

swirtSJW commented Feb 9, 2024

Takes about 38 minutes to run
image

So has to be moved to a script.

@swirtSJW swirtSJW force-pushed the VACMS-16233-reorder-vamc-menus branch from bd6ded9 to 723ccde Compare February 9, 2024 21:05
@va-cms-bot va-cms-bot temporarily deployed to Tugboat February 9, 2024 21:05 Destroyed
@swirtSJW swirtSJW marked this pull request as ready for review February 9, 2024 23:07
@swirtSJW swirtSJW requested a review from a team as a code owner February 9, 2024 23:07
Copy link
Contributor Author

@swirtSJW swirtSJW Feb 10, 2024

Choose a reason for hiding this comment

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

@omahane @Becapa This file you already fully reviewed on the service location migration PR into the integration branch. I just cherry-picked the commit into this PR because I needed it.

CMS team, since this was cherry picked from an integration branch it does have a couple functions in it that are not used by this PR but are used by the code in the integration branch that can not be merged yet.

// New revisions deserve special treatment.
if ($new) {
$node->enforceIsNew(TRUE);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed because it conflated new node with new revision.

@swirtSJW
Copy link
Contributor Author

swirtSJW commented Feb 10, 2024

Running the script (CMS Devops) and fixing Lovell by hand (Facilities engineer) are covered by #17202

Copy link
Contributor

@omahane omahane left a comment

Choose a reason for hiding this comment

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

QA checks out and VA code looks great and super clean, i.e. codit is doing most of the work. (Note: I didn't check the codit code).

@va-cms-bot va-cms-bot temporarily deployed to Tugboat February 12, 2024 17:28 Destroyed
@swirtSJW
Copy link
Contributor Author

image

@swirtSJW swirtSJW merged commit 54a87ce into main Feb 12, 2024
13 of 17 checks passed
@swirtSJW swirtSJW deleted the VACMS-16233-reorder-vamc-menus branch February 12, 2024 17:29
omahane pushed a commit that referenced this pull request Feb 13, 2024
* VACMS-4943 Remove VA Leavenworh menu. It is empty and not used.

* VACMS-4943 Remove VA Topeka menu. It is empty and not used.

* VACMS-14683 Bring in scripts changes from 14683.

* VACMS-16233 Add reorder VAMC System menu items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants