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

Parent link on Manila VA Clinic pages changes on save #19654

Closed
4 tasks
omahane opened this issue Oct 30, 2024 · 6 comments
Closed
4 tasks

Parent link on Manila VA Clinic pages changes on save #19654

omahane opened this issue Oct 30, 2024 · 6 comments
Assignees
Labels
Defect Something isn't working (issue type) Drupal engineering CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) sitewide VA Manila Special case VAMC that has custom code implementation

Comments

@omahane
Copy link
Contributor

omahane commented Oct 30, 2024

Describe the defect

When an editor saves a page (notably the VAMC Detail page) under the Manila VA Clinic menu, the page's "Parent link" changes to . This results in the page not having a parent in the menu, which breaks the content-build process.

To Reproduce

Check the menu before saving

  1. Log in as an admin
  2. Go to /admin/structure/menu/manage/manila-va-clinic
  • Confirm that "Make an appointment" has "Manila VA Clinic" (the facility node) as its menu parent

Save the page as an editor

  1. Log in as an editor with in the "Manila VA Clinic" section
  2. Go to a page, such as "Make an appointment" (node/72716/edit)
  • Confirm that you cannot change the Menu parent because the form element is disabled
  • Confirm that the Parent link is ""
  1. Save the page

Check the menu after saving

  1. Log in as an admin
  2. Go to /admin/structure/menu/manage/manila-va-clinic
  • Confirm that "Make an appointment" is now at the menu root and has no parent

AC / Expected behavior

When editing a page, the page should not change the parent link unless it has been explicitly changed.

Screenshots

Image

Additional context

@omahane omahane added Defect Something isn't working (issue type) Needs refining Issue status labels Oct 30, 2024
@omahane omahane changed the title (STUB) Menu parent on Manila VA Clinic pages will change on save Menu parent on Manila VA Clinic pages changes on save Oct 30, 2024
@jilladams jilladams added Drupal engineering CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) sitewide VA Manila Special case VAMC that has custom code implementation labels Oct 30, 2024
@omahane omahane changed the title Menu parent on Manila VA Clinic pages changes on save Parent link on Manila VA Clinic pages changes on save Oct 31, 2024
@omahane omahane removed the Needs refining Issue status label Oct 31, 2024
@davidmpickett
Copy link
Contributor

@omahane
Copy link
Contributor Author

omahane commented Nov 1, 2024

Update on this: After time looking at this with our friend Steve Wirt, we found that the items which were changing to the menu root when being saved did not have a menu parent set in the database. This is despite the menu form showing otherwise.
Image

in production, I have saved all the items without parents that should have parents, using the place in the menu form as the guide.

@omahane
Copy link
Contributor Author

omahane commented Nov 1, 2024

After comparing Dave's testing of my PR and the items that had no parents in the database, I think we are at a 1:1 match. I would like to test the solution we have in the PR after the Tugboat db updates on Monday, Nov 4.

@omahane
Copy link
Contributor Author

omahane commented Nov 5, 2024

@jilladams @Agile6MSkinner
The code has been merged and production changes have been made. The editor should be given the green light to update at their convenience. 🤞 that it doesn't go wonky again.

@jilladams
Copy link
Contributor

Thank you!

@jilladams
Copy link
Contributor

CLosing, and we can always reopen if we run into new trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Something isn't working (issue type) Drupal engineering CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) sitewide VA Manila Special case VAMC that has custom code implementation
Projects
None yet
Development

No branches or pull requests

3 participants