From 0bb30754a0fedb3ac97e7c16b0775b58dbfe355a Mon Sep 17 00:00:00 2001 From: Chris Banks Date: Thu, 20 Oct 2022 18:12:35 +0100 Subject: [PATCH 1/2] Use canonical name when connecting to search-api. --- app/lib/services.rb | 2 +- app/views/development/index.html.erb | 2 +- test/controllers/get_involved_controller_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/services.rb b/app/lib/services.rb index 41cc8bb22..97629a385 100644 --- a/app/lib/services.rb +++ b/app/lib/services.rb @@ -27,7 +27,7 @@ def self.publishing_api def self.search_api @search_api = GdsApi::Search.new( - Plek.find("search"), + Plek.find("search-api"), ) end end diff --git a/app/views/development/index.html.erb b/app/views/development/index.html.erb index a0411d06f..1ac715249 100644 --- a/app/views/development/index.html.erb +++ b/app/views/development/index.html.erb @@ -38,7 +38,7 @@ Search - <%= link_to remove_secrets(Plek.find('search')), remove_secrets(Plek.find('search')) %> + <%= link_to remove_secrets(Plek.find('search-api')), remove_secrets(Plek.find('search-api')) %> diff --git a/test/controllers/get_involved_controller_test.rb b/test/controllers/get_involved_controller_test.rb index 8d707b3b7..0b0c78500 100644 --- a/test/controllers/get_involved_controller_test.rb +++ b/test/controllers/get_involved_controller_test.rb @@ -96,7 +96,7 @@ def setup private def stub_search_query(query:, response:) - stub_request(:get, /\A#{Plek.new.find('search')}\/search.json/) + stub_request(:get, /\A#{Plek.new.find('search-api')}\/search.json/) .with(query:) .to_return(body: response.to_json) end From 26166bbae1cb18f2d6ab727a56462a43141da998 Mon Sep 17 00:00:00 2001 From: Chris Banks Date: Fri, 21 Oct 2022 14:44:08 +0100 Subject: [PATCH 2/2] Update gds-api-adapters to 84.0.0. --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 51f355884..e1bbf6648 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -113,7 +113,7 @@ GEM faker (2.23.0) i18n (>= 1.8.11, < 2) ffi (1.15.5) - gds-api-adapters (83.0.0) + gds-api-adapters (84.0.0) addressable link_header null_logger