From 373f6835b00fd86ed28355cd75570ea52bbb42c7 Mon Sep 17 00:00:00 2001 From: Christian Sutter Date: Mon, 28 Oct 2024 11:32:39 +0000 Subject: [PATCH] Manuals registry: Include HMRC manuals For some reason, these aren't fetched, which means that searches filtered by HMRC manuals don't show a filter tag. --- app/lib/registries/manuals_registry.rb | 2 +- spec/lib/registries/manuals_registry_spec.rb | 2 +- spec/support/registry_helper.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/registries/manuals_registry.rb b/app/lib/registries/manuals_registry.rb index 7a928861b..5cadbd846 100644 --- a/app/lib/registries/manuals_registry.rb +++ b/app/lib/registries/manuals_registry.rb @@ -38,7 +38,7 @@ def manuals_as_hash def fetch_manuals_from_rummager params = { - filter_document_type: %w[manual service_manual_homepage service_manual_guide], + filter_document_type: %w[hmrc_manual manual service_manual_homepage service_manual_guide], fields: %w[title], count: 1500, } diff --git a/spec/lib/registries/manuals_registry_spec.rb b/spec/lib/registries/manuals_registry_spec.rb index 65d25849a..c67161c39 100644 --- a/spec/lib/registries/manuals_registry_spec.rb +++ b/spec/lib/registries/manuals_registry_spec.rb @@ -4,7 +4,7 @@ let(:slug) { "/guidance/care-and-use-of-a-nimbus-2000" } let(:rummager_params) do { - filter_document_type: %w[manual service_manual_homepage service_manual_guide], + filter_document_type: %w[hmrc_manual manual service_manual_homepage service_manual_guide], fields: %w[title], count: 1500, } diff --git a/spec/support/registry_helper.rb b/spec/support/registry_helper.rb index 6e704a874..81c3e09bc 100644 --- a/spec/support/registry_helper.rb +++ b/spec/support/registry_helper.rb @@ -123,7 +123,7 @@ def stub_organisations_registry_request def stub_manuals_registry_request stub_request(:get, "http://search-api.dev.gov.uk/search.json") .with(query: { - filter_document_type: %w[manual service_manual_homepage service_manual_guide], + filter_document_type: %w[hmrc_manual manual service_manual_homepage service_manual_guide], fields: %w[title], count: 1500, })