-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
612a3a5
commit 84bc980
Showing
59 changed files
with
1,085 additions
and
1,189 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"id": "rollup", | ||
"version": "kibana", | ||
"requiredPlugins": [ | ||
"home", | ||
"index_management", | ||
"metrics" | ||
], | ||
"optionalPlugins": [ | ||
"usageCollection" | ||
], | ||
"server": true, | ||
"ui": false | ||
} |
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
21 changes: 0 additions & 21 deletions
21
...k/legacy/plugins/rollup/server/lib/call_with_request_factory/call_with_request_factory.js
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...k/legacy/plugins/rollup/server/lib/call_with_request_factory/call_with_request_factory.ts
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,28 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { ElasticsearchServiceSetup } from 'kibana/server'; | ||
import { once } from 'lodash'; | ||
import { elasticsearchJsPlugin } from '../../client/elasticsearch_rollup'; | ||
|
||
const callWithRequest = once((elasticsearchService: ElasticsearchServiceSetup) => { | ||
const config = { plugins: [elasticsearchJsPlugin] }; | ||
return elasticsearchService.createClient('rollup', config); | ||
}); | ||
|
||
export const callWithRequestFactory = ( | ||
elasticsearchService: ElasticsearchServiceSetup, | ||
request: any | ||
) => { | ||
return (...args: any[]) => { | ||
return ( | ||
callWithRequest(elasticsearchService) | ||
.asScoped(request) | ||
// @ts-ignore | ||
.callAsCurrentUser(...args) | ||
); | ||
}; | ||
}; |
File renamed without changes.
Oops, something went wrong.