Closed kevwalsh closed 6 months ago
Tagging @stefaniefgray for awareness of follow ups here re: a view for Facilities with no Services, per https://dsva.slack.com/archives/C02730UEZPS/p1690232280928109?thread_ts=1690228108.808289&cid=C02730UEZPS
from scrum:
I updated the ACs to match what we need and to better reflect the current state. This is likely not a light lift even though it seems like it should be.
@swirtSJW what would be required to make it filterable / sortable? Why I ask: the main reason we need this is in order to identify any that should have services but don't. Without the ability to filter / sort, it seems like we are not actually enabling the workflow needed. Or, more accurately: we are unblocking it, but it will still be a pretty toilsome manual process to scroll through and visibly identify 0s, which will be vulnerable to error.
@jilladams The problem is, not all things in a View are filterable and sortable. You can often only filter and sort by things usually that are on the node that shows up in the View. In this case the count is a count of other nodes that are not in any way referenced by the facility node. The connection goes the other way. Services connect to facilities.
There may be some possibilities but it would take some digging.
If we by chance we could get sorting to work, we would not be able to aggregate the columns and would need to have three separate columns (VAMC services, VC Services, and VBA services)
Discussion in product sync with DaveP, Dotti, Michelle:
Cross-posting: a simlar need was logged from 7/10 lighthouse sync: https://trello.com/c/1Zr5UVzu/21-facilities-add-a-view-of-the-facilities-with-a-services-count. Not sure why, and if this ticket is about the actual same topic, or if that LH card is something different / for a different purpose. Do we need to document the LH use case for the Service count, and account for it in the work on this ticket?
This should/would cover both needs for HelpDesk and Lighthouse.
Please add your planning poker estimate with Zenhub @omahane
Understood that a single column that is sortable and filterable is ideal. However, we may have to be content with either
@jilladams double check if this view exists. We think so, and think this can be closed.
cc @omahane What we have already built is an audit view of VA Services, with a total count, that can be filtered by content type (VAMC, Vet Center health services): https://prod.cms.va.gov/va-services
That satisfies understanding The service, where it's used, and how many times. It does not satisfy understanding which Facilities do not have associated services. Leaving this open.
@omahane I have approved your PR. It passes QA and is doing what it says it is doing.
@jilladams Want to note that the PR does not meet all the ACs listed here. I think we should amend this ticket to just cover the work the PR does.
add a VBA services count column
to a new ticket that can be considered for National phase
rewrite these two columns to coalesce the data into one column
How about when I do the VBA columns ticket, I try the coalesce? If it turns out to be a bear, we don't do it.
@omahane I stubbed a new ticket for updating the report with VBA and coalesce https://github.com/department-of-veterans-affairs/va.gov-cms/issues/18002
Verified the report is operating as intended on Prod
User Story or Problem Statement
As a Facility product team member, i want to monitor the quality of facility content.
Implementation steps
Drupal view config to expose service count column.
From July 2023 slack discussion we could add service count column to the main Content audit view, e.g. https://prod.cms.va.gov/admin/content/audit?title_op=contains&title=&type_op=in&type%5B%5D=health_care_local_facility&moderation_state_op=in&moderation_state%5B%5D=editorial-archived§ion=All
Acceptance Criteria
Note: The challenge is going to be on the service counts since the counts will be of reverse entity references AND will be to different content types. Doing it as a single column is going to make it such that the column can not be sorted or filtered.... which is not ideal either.