Skip to content

Commit

Permalink
removed clinic stop code filtering feature toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmagdub committed Mar 25, 2024
1 parent 81ee32a commit 1cc7dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions config/features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1020,10 +1020,6 @@ features:
actor_type: user
description: Allows veterans to cancel VA appointments
enable_in_development: true
va_online_scheduling_clinic_filtering:
actor_type: user
description: Allows clinic selection filtering by stop codes
enable_in_development: true
va_online_scheduling_community_care:
actor_type: user
description: Allows veterans to submit requests for Community Care appointments
Expand Down
8 changes: 2 additions & 6 deletions modules/vaos/app/services/vaos/v2/systems_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
module VAOS
module V2
class SystemsService < VAOS::SessionService
STOP_CODE_FILTERS = :va_online_scheduling_clinic_filtering

def get_facility_clinics(location_id:,
clinical_service: nil,
clinic_ids: nil,
Expand All @@ -21,11 +19,9 @@ def get_facility_clinics(location_id:,
'pageNumber' => page_number
}.compact

# 'clinicalService' is used to retrieve clinics for appointment scheduling,
# 'clinicalService' is used when retrieving clinics for appointment scheduling,
# triggering stop code filtering to avoid displaying unavailable clinics.
if url_params['clinicalService'].present? && Flipper.enabled?(STOP_CODE_FILTERS, user)
url_params.merge!('enableStopCodeFilter' => true)
end
url_params.merge!('enableStopCodeFilter' => true) if url_params['clinicalService'].present?

response = perform(:get, url, url_params, headers)
response.body[:data].map { |clinic| OpenStruct.new(clinic) }
Expand Down

0 comments on commit 1cc7dbe

Please sign in to comment.