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-13613 and 8017 Add PostFacilityBase methods #13776

Conversation

swirtSJW
Copy link
Contributor

@swirtSJW swirtSJW commented May 21, 2023

These methods are not being used yet, but they will be used by two different PRs for Lighthouse that we can not control when they will land. Adding these here now in andvance helps avoid conflct.

Description

Relates to #13613
Relates to #8017

Testing done

Code is not being used. Testing will come when either of the PRs that use it are reviewed.

Screenshots

QA steps

This code is not being used. Testing will come when either of the PRs that use it are reviewed.

@va-cms-bot va-cms-bot temporarily deployed to Tugboat May 21, 2023 02:04 Destroyed
Comment on lines -225 to -247
/**
* Get operating status details, shortened as necessary.
*
* @return string
* Details of operating status.
*/
protected function getOperatingStatusMoreInfoShort() : ?string {
$operatingStatusMoreInfo = $this->facilityNode->get('field_operating_status_more_info')->value;
if ($operatingStatusMoreInfo) {
$operatingStatusMoreInfo = $this->facilityNode->get('field_operating_status_more_info')->value;
$operatingStatusMoreInfoJson = json_encode($this->facilityNode->get('field_operating_status_more_info')->value);
$operatingStatusMoreInfoLength = mb_strlen($operatingStatusMoreInfoJson);
// 300 is the character limit for field_operating_status_facility
// let's do our best to trim this down if we need to
if ($operatingStatusMoreInfoLength > 300) {
$operatingStatusMoreInfo = str_replace(' ', ' ', $operatingStatusMoreInfo);
$operatingStatusMoreInfo = trim($operatingStatusMoreInfo);
$operatingStatusMoreInfo = preg_replace("/(\r?\n|\r)+/", " ", $operatingStatusMoreInfo);
}
}
return $operatingStatusMoreInfo;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this to Base because VetCenter CAPs are going to need it too.

@swirtSJW swirtSJW self-assigned this May 21, 2023
@swirtSJW swirtSJW requested a review from omahane May 21, 2023 02:07
@swirtSJW swirtSJW marked this pull request as ready for review May 21, 2023 02:07
@swirtSJW swirtSJW force-pushed the VACMS-13613-and-8017-add-pushfaacilitybase-methods branch from 4c65d32 to df67f24 Compare May 21, 2023 02:15
@va-cms-bot va-cms-bot temporarily deployed to Tugboat May 21, 2023 02:15 Destroyed
@swirtSJW swirtSJW added Facilities Facilities products (VAMC, Vet Center, etc) Lighthouse Facility API Data source/destination for many Facilities team products labels May 21, 2023
@swirtSJW swirtSJW force-pushed the VACMS-13613-and-8017-add-pushfaacilitybase-methods branch from df67f24 to dd6d35d Compare May 21, 2023 02:24
@va-cms-bot va-cms-bot temporarily deployed to Tugboat May 21, 2023 02:24 Destroyed
@swirtSJW swirtSJW force-pushed the VACMS-13613-and-8017-add-pushfaacilitybase-methods branch from dd6d35d to d3c9f02 Compare May 21, 2023 02:33
@swirtSJW swirtSJW force-pushed the VACMS-13613-and-8017-add-pushfaacilitybase-methods branch from d3c9f02 to d3f4177 Compare May 21, 2023 02:35
@va-cms-bot va-cms-bot temporarily deployed to Tugboat May 21, 2023 02:35 Destroyed
These methods are not being used yet, but they will be used by two
different PRs for Lighthouse that we can not control when they
will land.  Adding these here now in andvance helps avoid conflct.
@swirtSJW swirtSJW force-pushed the VACMS-13613-and-8017-add-pushfaacilitybase-methods branch from d3f4177 to c03e548 Compare May 22, 2023 04:39
@va-cms-bot va-cms-bot temporarily deployed to Tugboat May 22, 2023 04:39 Destroyed
@swirtSJW
Copy link
Contributor Author

image

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.

This looks good.
I did notice something that looks mixed up and noted it.

Co-authored-by: Christian Burk <[email protected]>
@va-cms-bot va-cms-bot temporarily deployed to Tugboat May 22, 2023 19:00 Destroyed
@swirtSJW swirtSJW merged commit f5b6618 into department-of-veterans-affairs:main May 22, 2023
@swirtSJW swirtSJW deleted the VACMS-13613-and-8017-add-pushfaacilitybase-methods branch May 22, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Facilities Facilities products (VAMC, Vet Center, etc) Lighthouse Facility API Data source/destination for many Facilities team products
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants