-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[File upload] Update remaining File Upload dependencies for NP migrat…
…ion (#58128) * Remove old route ref, no longer used * Use core elasticsearch service * Remove getSavedObjectsRepository, use NP internalRepository * Update tests and clean up * Remove unused test vars
- Loading branch information
Aaron Caldwell
authored
Feb 21, 2020
1 parent
5fefb76
commit 9c8c47b
Showing
11 changed files
with
63 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
x-pack/legacy/plugins/file_upload/server/client/call_with_internal_user_factory.d.ts
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
x-pack/legacy/plugins/file_upload/server/client/call_with_internal_user_factory.js
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
x-pack/legacy/plugins/file_upload/server/client/call_with_internal_user_factory.test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
x-pack/legacy/plugins/file_upload/server/kibana_server_services.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
let dataClient; | ||
|
||
export const setElasticsearchClientServices = elasticsearch => { | ||
({ dataClient } = elasticsearch); | ||
}; | ||
export const getDataClient = () => dataClient; | ||
|
||
let internalRepository; | ||
export const setInternalRepository = createInternalRepository => { | ||
internalRepository = createInternalRepository(); | ||
}; | ||
export const getInternalRepository = () => internalRepository; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters