Skip to content

Commit

Permalink
VAOS Delete Feature Toggle 'va_online_scheduling_convert_utc_to_local' (
Browse files Browse the repository at this point in the history
#12915)

* chore(features.yml): The feature toggle va_online_scheduling_convert_utc_to_local was removed as it is no longer needed.
  • Loading branch information
ajmagdub authored Jun 7, 2023
1 parent 42922ec commit e9ee241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions config/features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,6 @@ features:
actor_type: user
enable_in_development: true
description: Toggle for proof of concept to help Veteran contact a facility when the type of care is not available
va_online_scheduling_convert_utc_to_local:
actor_type: user
enable_in_development: true
description: Toggle for converting from UTC to localtime in API vs. frontend application code
va_view_dependents_access:
actor_type: user
description: Allows us to gate the View/ Modify dependents content in a progressive rollout
Expand Down
6 changes: 3 additions & 3 deletions modules/vaos/app/services/vaos/v2/mobile_facility_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module VAOS
module V2
class MobileFacilityService < VAOS::SessionService
# Retrieves information about a VA clinic from the Mobile Facility Service.
# Retrieves information about a VA clinic from the VAOS Service.
#
# @param station_id [String] the ID of the VA facility where the clinic is located
# @param clinic_id [String] the ID of the clinic to retrieve
Expand All @@ -23,13 +23,13 @@ def get_clinic(station_id:, clinic_id:)
end
end

# Retrieves a clinic from the cache if it exists, otherwise retrieves the clinic from the Mobile Facility Service.
# Retrieves a clinic from the cache if it exists, otherwise retrieves the clinic from the VAOS Service.
#
# @param station_id [String] the ID of the VA facility where the clinic is located
# @param clinic_id [String] the ID of the clinic to retrieve
#
# @return [OpenStruct] an OpenStruct containing information about the clinic,
# retrieved from either the cache or the Mobile Facility Service.
# retrieved from either the cache or the VAOS Service.
#
def get_clinic_with_cache(station_id:, clinic_id:)
Rails.cache.fetch("vaos_clinic_#{station_id}_#{clinic_id}", expires_in: 12.hours) do
Expand Down

0 comments on commit e9ee241

Please sign in to comment.