gds-api-adapters 47.1.0 → 47.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ef33bc6ded80f8b5585aa3eacdef99b2c06257c
|
|
4
|
+
data.tar.gz: c38816d7b8061a336df2835b16c8871a756aed15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b10cbeb80228493c6e6d75adc4c41341f2979375c85ba21e14bc3cc471d68a78e8043102781d825e334060f2235ce6e5cf098185c95f44eb2b6253ad3833b8e6
|
|
7
|
+
data.tar.gz: 0b46f6e2aa914728a621bf5f7608ffd94b3f8ade25cf75e9f5f3f3c714fe2f5afaa1b538f6303f036eb3cb7d1613b23590b33175c2c821d1b56a664214ffa157
|
|
@@ -71,7 +71,7 @@ module GdsApi
|
|
|
71
71
|
def search_terms(slug)
|
|
72
72
|
options = {
|
|
73
73
|
slug: slug,
|
|
74
|
-
transaction: '
|
|
74
|
+
transaction: 'search-terms',
|
|
75
75
|
group_by: 'searchKeyword',
|
|
76
76
|
collect: 'searchUniques:sum'
|
|
77
77
|
}
|
|
@@ -81,7 +81,7 @@ module GdsApi
|
|
|
81
81
|
def searches(slug, is_multipart)
|
|
82
82
|
options = {
|
|
83
83
|
slug: slug,
|
|
84
|
-
transaction: '
|
|
84
|
+
transaction: 'search-terms',
|
|
85
85
|
group_by: 'pagePath',
|
|
86
86
|
collect: 'searchUniques:sum'
|
|
87
87
|
}
|
|
@@ -2,7 +2,7 @@ module GdsApi
|
|
|
2
2
|
module TestHelpers
|
|
3
3
|
module PerformancePlatform
|
|
4
4
|
module DataOut
|
|
5
|
-
PP_DATA_OUT_ENDPOINT = "
|
|
5
|
+
PP_DATA_OUT_ENDPOINT = "https://www.performance.service.gov.uk".freeze
|
|
6
6
|
|
|
7
7
|
def stub_service_feedback(slug, response_body = {})
|
|
8
8
|
stub_http_request(:get, "#{PP_DATA_OUT_ENDPOINT}/data/#{slug}/customer-satisfaction").
|
|
@@ -21,7 +21,7 @@ module GdsApi
|
|
|
21
21
|
def stub_search_terms(slug, response_body = {})
|
|
22
22
|
options = {
|
|
23
23
|
slug: slug,
|
|
24
|
-
transaction: '
|
|
24
|
+
transaction: 'search-terms',
|
|
25
25
|
group_by: 'searchKeyword',
|
|
26
26
|
collect: 'searchUniques:sum'
|
|
27
27
|
}
|
|
@@ -31,7 +31,7 @@ module GdsApi
|
|
|
31
31
|
def stub_searches(slug, is_multipart, response_body = {})
|
|
32
32
|
options = {
|
|
33
33
|
slug: slug,
|
|
34
|
-
transaction: '
|
|
34
|
+
transaction: 'search-terms',
|
|
35
35
|
group_by: 'pagePath',
|
|
36
36
|
collect: 'searchUniques:sum'
|
|
37
37
|
}
|
|
@@ -76,7 +76,7 @@ module GdsApi
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
def stub_search_404(slug)
|
|
79
|
-
stub_request(:get, "#{PP_DATA_OUT_ENDPOINT}/data/govuk-info/
|
|
79
|
+
stub_request(:get, "#{PP_DATA_OUT_ENDPOINT}/data/govuk-info/search-terms").
|
|
80
80
|
with(query: hash_including(filter_by: slug)).
|
|
81
81
|
to_return(status: 404, headers: { content_type: "application/json" })
|
|
82
82
|
end
|
data/lib/gds_api/version.rb
CHANGED