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

VAMC Facility should require a VAMC System menu parent link #20300

Open
1 task
jilladams opened this issue Jan 17, 2025 · 2 comments
Open
1 task

VAMC Facility should require a VAMC System menu parent link #20300

jilladams opened this issue Jan 17, 2025 · 2 comments
Labels
Drupal engineering CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) Needs refining Issue status sitewide VAMC CMS managed product owned by Facilities team

Comments

@jilladams
Copy link
Contributor

jilladams commented Jan 17, 2025

Description

In the Drupal CMS, it's possible to publish a VAMC Facility with the default root menu parent link. This results in a VAMC Facility that will not be housed under a VAMC System parent. That facility will have no IA / breadcrumb, within the correct VAMC content structure.

We found this via an incident where a VAMC Facility in "Coming Soon" status was accidentally published while the Editor was updating the Operating Status. (Slack thread) That publish broke content-release, due to the missing breadcrumb. CMS team is shipping a change that will not break the build, and will log but not error: department-of-veterans-affairs/content-build#2417

Currently we mitigate this manually via the help desk, where a new facility that is flagged should trigger a Helpdesk process where they engage the editor, set the correct Menu parent (and Section, etc).

However: it is possible to accidentally publish, without those settings in place. We should prevent it.

Acceptance criteria

  • VAMC Facilities require a VAMC System menu parent in order to publish
@jilladams jilladams added Drupal engineering CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) Needs refining Issue status sitewide VAMC CMS managed product owned by Facilities team labels Jan 17, 2025
@jilladams
Copy link
Contributor Author

This could be a client-side validation issue? The System field is already required: https://prod.cms.va.gov/node/add/health_care_local_facility

@omahane
Copy link
Contributor

omahane commented Jan 17, 2025

I believe the issue was the Parent link, rather than the Section. The Parent Link will default to the menu root, so the field is not empty. It is just not set in a way that content-build expects (or should expect).

Image

I think that we can make a constraint validator that checks to see if the new state will be published and looks to see if the Parent link is the menu root. If so, it can trigger.

@jilladams jilladams changed the title VAMC Facility can be published with no parent VAMC Facility can be published with no parent link Jan 17, 2025
@jilladams jilladams changed the title VAMC Facility can be published with no parent link VAMC Facility can be published with a non-VAMC System parent link Jan 17, 2025
@jilladams jilladams changed the title VAMC Facility can be published with a non-VAMC System parent link VAMC Facility should require a VAMC System menu parent link Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Drupal engineering CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) Needs refining Issue status sitewide VAMC CMS managed product owned by Facilities team
Projects
None yet
Development

No branches or pull requests

2 participants