-
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.
Merge branch 'master' into use-aspercent-io-infra
- Loading branch information
Showing
107 changed files
with
1,409 additions
and
2,004 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
19 changes: 19 additions & 0 deletions
19
docs/development/core/server/kibana-plugin-core-server.savedobjectsfindresult.md
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,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsFindResult](./kibana-plugin-core-server.savedobjectsfindresult.md) | ||
|
||
## SavedObjectsFindResult interface | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface SavedObjectsFindResult<T = unknown> extends SavedObject<T> | ||
``` | ||
## Properties | ||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [score](./kibana-plugin-core-server.savedobjectsfindresult.score.md) | <code>number</code> | The Elasticsearch <code>_score</code> of this result. | | ||
13 changes: 13 additions & 0 deletions
13
...velopment/core/server/kibana-plugin-core-server.savedobjectsfindresult.score.md
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,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsFindResult](./kibana-plugin-core-server.savedobjectsfindresult.md) > [score](./kibana-plugin-core-server.savedobjectsfindresult.score.md) | ||
|
||
## SavedObjectsFindResult.score property | ||
|
||
The Elasticsearch `_score` of this result. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
score: number; | ||
``` |
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
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
File renamed without changes.
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 |
---|---|---|
|
@@ -16,26 +16,34 @@ | |
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { kibanaTestUser } from './users'; | ||
import url from 'url'; | ||
import { kibanaTestUser } from './users'; | ||
|
||
interface UrlParts { | ||
protocol?: string; | ||
hostname?: string; | ||
port?: number; | ||
auth?: string; | ||
username?: string; | ||
password?: string; | ||
} | ||
|
||
export const kbnTestConfig = new (class KbnTestConfig { | ||
getPort() { | ||
return this.getUrlParts().port; | ||
} | ||
|
||
getUrlParts() { | ||
getUrlParts(): UrlParts { | ||
// allow setting one complete TEST_KIBANA_URL for ES like https://elastic:[email protected]:9200 | ||
if (process.env.TEST_KIBANA_URL) { | ||
const testKibanaUrl = url.parse(process.env.TEST_KIBANA_URL); | ||
return { | ||
protocol: testKibanaUrl.protocol.slice(0, -1), | ||
protocol: testKibanaUrl.protocol?.slice(0, -1), | ||
hostname: testKibanaUrl.hostname, | ||
port: parseInt(testKibanaUrl.port, 10), | ||
port: testKibanaUrl.port ? parseInt(testKibanaUrl.port, 10) : undefined, | ||
auth: testKibanaUrl.auth, | ||
username: testKibanaUrl.auth.split(':')[0], | ||
password: testKibanaUrl.auth.split(':')[1], | ||
username: testKibanaUrl.auth?.split(':')[0], | ||
password: testKibanaUrl.auth?.split(':')[1], | ||
}; | ||
} | ||
|
||
|
@@ -44,7 +52,7 @@ export const kbnTestConfig = new (class KbnTestConfig { | |
return { | ||
protocol: process.env.TEST_KIBANA_PROTOCOL || 'http', | ||
hostname: process.env.TEST_KIBANA_HOSTNAME || 'localhost', | ||
port: parseInt(process.env.TEST_KIBANA_PORT, 10) || 5620, | ||
port: process.env.TEST_KIBANA_PORT ? parseInt(process.env.TEST_KIBANA_PORT, 10) : 5620, | ||
auth: `${username}:${password}`, | ||
username, | ||
password, | ||
|
File renamed without changes.
Oops, something went wrong.