-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add new endpoint to vaos and mobile module for VPG appointment slots #16036
Conversation
Generated by 🚫 Danger |
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.
LGTM
start_dt: start_date, | ||
end_dt: end_date) | ||
|
||
render json: Mobile::V0::ClinicSlotsSerializer.new(response) | ||
end | ||
|
||
def facility_slots | ||
if !params[:clinic_id] && !params[:clinical_service] | ||
render status: :bad_request, json: { |
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.
for readbility, unless params[:clinic_id] || params[:clinical_service]
to me makes it clearer that you're checking for the absence of both parameters
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.
Rubocop didn't like an unless
with an else
, and went with if params[:clinic_id] || params[:clinical_service]
. Is that readable enough?
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.
Approved.
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.
LGTM for the VAOS module
@jperk51 could I get a |
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.
LGTM
Summary
va_online_scheduling_enable_OH_slots_search
clinic_id
from the path because it is a field that doesn't exist for Oracle Health facilities. For the new endpoint, either theclinic_id
(for a Vista facility) or theclinical_service
(for an Oracle Health facility) fields are required.Related issue(s)
Testing done
What areas of the site does it impact?
This affects the vaos and mobile apps. When the feature flag is ON, flags are returned from the va-mobile / MAP vaos endpoint instead of the vaos endpoint, but the slot data structures and source systems are the same for Vista facilities and all existing functionality is supported.
Acceptance criteria