diff --git a/src/core/server/saved_objects/service/lib/repository.ts b/src/core/server/saved_objects/service/lib/repository.ts index ed1ae4414f49c..a36ca8605d171 100644 --- a/src/core/server/saved_objects/service/lib/repository.ts +++ b/src/core/server/saved_objects/service/lib/repository.ts @@ -962,6 +962,7 @@ export class SavedObjectsRepository { esOptions, { ignore: [404], + headers: { 'x-elastic-product-origin': 'make deprecation' }, } ); if (statusCode === 404) { diff --git a/test/api_integration/apis/saved_objects/find.ts b/test/api_integration/apis/saved_objects/find.ts index 9b2b3a96cba5b..4ff1627ea0a6f 100644 --- a/test/api_integration/apis/saved_objects/find.ts +++ b/test/api_integration/apis/saved_objects/find.ts @@ -15,7 +15,7 @@ export default function ({ getService }: FtrProviderContext) { const kibanaServer = getService('kibanaServer'); const SPACE_ID = 'ftr-so-find'; - describe('find', () => { + describe.only('find', () => { before(async () => { await kibanaServer.spaces.create({ id: SPACE_ID, name: SPACE_ID }); await kibanaServer.importExport.load(