Closed ldelacosta closed 3 months ago
Broken down into smaller tickets in place of this. Closing this "master" ticket.
Please list out the small tickets before closing it out @Bren22va
Here are the tickets for this work:
Closing out the ticket. No longer is needed.
Description
Create an endpoint to capture the recent facilities for a user.
The vets-api AppointmentService contains a method called
get_most_recent_visited_clinic_appointment
that performs the calls and checks needed to obtain a user's most recently visited clinics, if any. We will use this method to augment data returned from the AppointmentService, following these rough logical steps:Additional technical notes:
get_appointments
since this is called at the start of the appointments flow and we will need this data available before a user submits acreate_appointment
request we still need to determine for certain where exactly to put this data, or if the website needs to call the recent clinics endpoint separatelyrecent_clinics
field in the appointment responseThe spike ticket linked below references the implementation for fetching recent facilities.
Reference spike ticket: #81136
Acceptance Criteria
Background: the
va_online_scheduling_recent_locations_filter
toggle is on [ ] - newrecent_clinics
field is returned in the appointments response, following the logic outlined above (the field will be nil if no data was found for it) [ ] - new rspecs and vcr cassettes for the data returned fromget_most_recent_visited_clinic_appointment
[ ] - all regression tests passDesign Assets
Figma File
Definition of Done