diff --git a/__tests__/Config.test.js b/__tests__/Config.test.js index b23834963..eb7c26677 100644 --- a/__tests__/Config.test.js +++ b/__tests__/Config.test.js @@ -46,7 +46,7 @@ describe("Config", () => { }) it("max records for lookups/QA has static value", () => { - expect(Config.maxRecordsForQALookups).toEqual(10) + expect(Config.maxRecordsForQALookups).toEqual(20) }) describe("interpolated links from default values", () => { diff --git a/__tests__/utilities/QuestioningAuthority.test.js b/__tests__/utilities/QuestioningAuthority.test.js index 7d6f4f4a2..40a6dda28 100644 --- a/__tests__/utilities/QuestioningAuthority.test.js +++ b/__tests__/utilities/QuestioningAuthority.test.js @@ -5,7 +5,7 @@ import { findAuthorityConfig } from "utilities/authorityConfig" describe("createLookupPromise()", () => { const response = { ok: true, - url: "https://lookup.ld4l.org/authorities/search/linked_data/agrovoc_ld4l_cache?q=Corn&maxRecords=10&lang=en&context=true&response_header=true&startRecord=1", + url: "https://lookup.ld4l.org/authorities/search/linked_data/agrovoc_ld4l_cache?q=Corn&maxRecords=20&lang=en&context=true&response_header=true&startRecord=1", status: 200, statusText: "OK", json: () => { @@ -81,7 +81,7 @@ describe("createLookupPromise()", () => { const authorityConfig = findAuthorityConfig("urn:ld4p:qa:geonames:water") await createLookupPromise("Artic Sea", authorityConfig) expect(global.fetch).toHaveBeenCalledWith( - "https://lookup.ld4l.org/authorities/search/linked_data/geonames_ld4l_cache/water?q=Artic+Sea&maxRecords=10&lang=en&context=true&response_header=true&startRecord=1" + "https://lookup.ld4l.org/authorities/search/linked_data/geonames_ld4l_cache/water?q=Artic+Sea&maxRecords=20&lang=en&context=true&response_header=true&startRecord=1" ) }) }) @@ -91,7 +91,7 @@ describe("createLookupPromise()", () => { const authorityConfig = findAuthorityConfig("urn:discogs:release") await createLookupPromise("twain", authorityConfig) expect(global.fetch).toHaveBeenCalledWith( - "https://lookup.ld4l.org/authorities/search/discogs/release?q=twain&maxRecords=10&lang=en&context=true&response_header=true&startRecord=1" + "https://lookup.ld4l.org/authorities/search/discogs/release?q=twain&maxRecords=20&lang=en&context=true&response_header=true&startRecord=1" ) }) }) diff --git a/src/Config.js b/src/Config.js index 510c080aa..e44bcea5d 100644 --- a/src/Config.js +++ b/src/Config.js @@ -116,7 +116,7 @@ class Config { } static get maxRecordsForQALookups() { - return process.env.MAX_RECORDS_FOR_QA_LOOKUPS || 10 + return process.env.MAX_RECORDS_FOR_QA_LOOKUPS || 20 } static get qaUrl() {