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-14215 VAMC mental health phone data push #15688

Conversation

swirtSJW
Copy link
Contributor

@swirtSJW swirtSJW commented Oct 16, 2023

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

  1. Test push with no mental health phone Edit this https://pr15688-9qhcwttn1a2ppwra05saolrc3vvoczq4.ci.cms.va.gov/node/2181/edit
  2. Change the status and publish the change
  3. Test push with only API sourced mental health phone: edit this https://pr15688-9qhcwttn1a2ppwra05saolrc3vvoczq4.ci.cms.va.gov/node/2124/edit
  4. change nothing and just publish the save.
  5. Test push with mental health contact (editor sourced) mental health phone: edit the node and for Mental Health Contact phone number enter 555-444-1111
  6. Publish and save the node.

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?

  • Yes, and it's written in issue ____ and queued for publication.
    • Merge and ping the UX writer so they are ready to publish after deployment
  • Yes, but it hasn't yet been written
    • Don't merge yet -- ping the UX writer to write and queue content
  • No announcement is needed for this code change.
    • Merge & carry on unburdened by announcements

@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 16, 2023 13:49 Destroyed
@swirtSJW swirtSJW self-assigned this Oct 16, 2023
@swirtSJW
Copy link
Contributor Author

swirtSJW commented Oct 16, 2023

No phone
image

API sourced phone
image

Editor sourced phone
image

@swirtSJW swirtSJW changed the base branch from main to integration-mental-health-phone October 16, 2023 15:51
@swirtSJW swirtSJW marked this pull request as ready for review October 16, 2023 15:51
@swirtSJW swirtSJW requested a review from omahane October 16, 2023 15:51
@swirtSJW
Copy link
Contributor Author

Lighthouse testing thread in Slack

pretty version of the data being sent
image

@swirtSJW
Copy link
Contributor Author

image

Pushed and received without error. The phone number is not processed to anything but at least is not causing a push failure.

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.

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 {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@swirtSJW
Copy link
Contributor Author

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.

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.

@swirtSJW swirtSJW merged commit c18d3b0 into integration-mental-health-phone Oct 16, 2023
@swirtSJW swirtSJW deleted the VACMS-14215-vamc-mental-health-data-push branch October 16, 2023 19:47
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.

3 participants