-
Notifications
You must be signed in to change notification settings - Fork 70
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-17426: Requires VA facility location when the event is using a VA facility location type #17859
VACMS-17426: Requires VA facility location when the event is using a VA facility location type #17859
Conversation
…VA facility location type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fields seem to be required, having all the trappings of requirement, but I can save the page without filling in either VA location (when "At a VA facility" is chosen) or an address (when "At a non-VA location" is chosen).
I did this here: https://pr17859-vpvmby9elrebdlxtkz0lfeyzfggxlf4j.ci.cms.va.gov/node/67710/edit
Here's a video of me doing so.
https://www.loom.com/share/05c581e632e94fbf8786bb528fa6f9cf?sid=34adf16d-4c51-4c74-ae11-d071e7fdd5d4
That's....not good at all. And I was able to replicate this prior to this change as well, so something very peculiar is going on that I'll need to look into. |
…n-be-saved-with-facilty-type-va-empty-location
@edmund-dunn @omahane I verified that this is an existing bug, not introduced in this PR, and I think I have located the culprit: clientside validation (or so it seems). If I disable clientside validation for all forms, then Events are validated client-side as expected. But re-enabling that setting, and I'm able to bypass client-side validation. To recreate on staging:
|
Noting: next steps for what we do about that bug are in discussion on the ticket; #17426 (comment) |
@omahane given we know that the issue you found is pre-existing, how would you feel about reviewing this with Clientside Validation turned off? |
…n-be-saved-with-facilty-type-va-empty-location
…n-be-saved-with-facilty-type-va-empty-location
Code Scanning Analysis Not FoundYour repository default branch has not been scanned with CodeQL in the last 7 days. Per VA policy your repository must use CodeQL to scan your source code for vulnerabilities at least once every 7 days against your default branch.Once you have completed the scan against your default branch, follow this link to re-run the policy check and select Re-run all jobs at the top of the page: https://github.com/department-of-veterans-affairs/va.gov-cms/actions/runs/8839385387
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. And the UI/UX is working. Let's hope that the subsequent work to get clientside_validation out of the way will make the browser validation work correctly.
…VA facility location type (#17859) * VACMS-17426: Requires VA facility location when the event is using a VA facility location type. * VACMS-17426: Conditionally sets the requirement for Event Location Type.
Description
Forces an Event with a Facility location type to also specify the Facility location.
Relates to #17426
Testing done
Manual and cypress
Screenshots
QA steps
As a content admin
Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing
Is this PR blocked by another PR?
DO NOT MERGE
Does this PR need review from a Product Owner
Needs PO review
CMS user-facing announcement
Is an announcement needed to let editors know of this change?