-
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 '7.17' of https://github.com/elastic/kibana into ua/rein…
…dex_error_handling
- Loading branch information
Showing
72 changed files
with
926 additions
and
300 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...elopment/core/server/kibana-plugin-core-server.mergesavedobjectmigrationmaps.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,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [mergeSavedObjectMigrationMaps](./kibana-plugin-core-server.mergesavedobjectmigrationmaps.md) | ||
|
||
## mergeSavedObjectMigrationMaps variable | ||
|
||
Merges two saved object migration maps. | ||
|
||
If there is a migration for a given version on only one of the maps, that migration function will be used: | ||
|
||
mergeSavedObjectMigrationMaps(<!-- -->{ '1.2.3': f }<!-- -->, { '4.5.6': g }<!-- -->) -<!-- -->> { '1.2.3': f, '4.5.6': g } | ||
|
||
If there is a migration for a given version on both maps, the migrations will be composed: | ||
|
||
mergeSavedObjectMigrationMaps(<!-- -->{ '1.2.3': f }<!-- -->, { '1.2.3': g }<!-- -->) -<!-- -->> { '1.2.3': (doc, context) =<!-- -->> f(g(doc, context), context) } | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
mergeSavedObjectMigrationMaps: (map1: SavedObjectMigrationMap, map2: SavedObjectMigrationMap) => SavedObjectMigrationMap | ||
``` |
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
90 changes: 90 additions & 0 deletions
90
packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.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,90 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import type { CiStatsMetadata } from './ci_stats_reporter'; | ||
|
||
export type CiStatsTestResult = 'fail' | 'pass' | 'skip'; | ||
export type CiStatsTestType = | ||
| 'after all hook' | ||
| 'after each hook' | ||
| 'before all hook' | ||
| 'before each hook' | ||
| 'test'; | ||
|
||
export interface CiStatsTestRun { | ||
/** | ||
* ISO-8601 formatted datetime representing when the tests started running | ||
*/ | ||
startTime: string; | ||
/** | ||
* Duration of the tests in milliseconds | ||
*/ | ||
durationMs: number; | ||
/** | ||
* A sequence number, this is used to order the tests in a specific test run | ||
*/ | ||
seq: number; | ||
/** | ||
* The type of this "test run", usually this is just "test" but when reporting issues in hooks it can be set to the type of hook | ||
*/ | ||
type: CiStatsTestType; | ||
/** | ||
* "fail", "pass" or "skip", the result of the tests | ||
*/ | ||
result: CiStatsTestResult; | ||
/** | ||
* The list of suite names containing this test, the first being the outermost suite | ||
*/ | ||
suites: string[]; | ||
/** | ||
* The name of this specific test run | ||
*/ | ||
name: string; | ||
/** | ||
* Relative path from the root of the repo contianing this test | ||
*/ | ||
file: string; | ||
/** | ||
* Error message if the test failed | ||
*/ | ||
error?: string; | ||
/** | ||
* Debug output/stdout produced by the test | ||
*/ | ||
stdout?: string; | ||
/** | ||
* Screenshots captured during the test run | ||
*/ | ||
screenshots?: Array<{ | ||
name: string; | ||
base64Png: string; | ||
}>; | ||
} | ||
|
||
export interface CiStatsTestGroupInfo { | ||
/** | ||
* ISO-8601 formatted datetime representing when the group of tests started running | ||
*/ | ||
startTime: string; | ||
/** | ||
* The number of miliseconds that the tests ran for | ||
*/ | ||
durationMs: number; | ||
/** | ||
* The type of tests run in this group, any value is valid but test groups are groupped by type in the UI so use something consistent | ||
*/ | ||
type: string; | ||
/** | ||
* The name of this specific group (within the "type") | ||
*/ | ||
name: string; | ||
/** | ||
* Arbitrary metadata associated with this group. We currently look for a ciGroup metadata property for highlighting that when appropriate | ||
*/ | ||
meta: CiStatsMetadata; | ||
} |
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
Oops, something went wrong.