-
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-14215 VAMC mental health phone data push #15688
VACMS-14215 VAMC mental health phone data push #15688
Conversation
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.
I had a bit of a time with the QA steps because the user QA Content Publisher didn't have rights to edit all the nodes, but I made do.
The code worked as expected.
* @return string | ||
* The field value if it exists, empty string otherwise. | ||
*/ | ||
protected function getFieldSafe(string $field_name): string { |
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.
This is very cool.
Not that it's urgent or even necessary, but we have ternary operators around the code that could be refactored with this. This would be cleaner, plus, it would consistently send an empty string. Not sure if we want that, though.
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.
Yah I agree. I think some of the ternaries are fine as they are but this one had to both see if the field exists AND if it had a value. It is also only for strings so it has to be used cautiously.
Oyy :( Sorry yes I think we need a new QA "person" that has both VAMC roles, because this is impossible to test with with either of out existing QA VAMC roles because one can't publish and the other can't edit. |
Description
Relates to #14215
Testing done
Screenshots
QA steps
What needs to be checked to prove this works?
What needs to be checked to prove it didn't break any related things?
What variations of circumstances (users, actions, values) need to be checked?
As
QA Content Publisher
555-444-1111
555-444-1111
number you entered.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?