-
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 'main' of github.com:elastic/kibana into upgrade-rxjs-to-7
- Loading branch information
Showing
82 changed files
with
1,364 additions
and
674 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.0.0 | ||
5.1.1 |
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,60 @@ | ||
[[cases-api-get-reporters]] | ||
== Get reporters API | ||
++++ | ||
<titleabbrev>Get reporters</titleabbrev> | ||
++++ | ||
|
||
Returns information about the users who opened cases. | ||
|
||
=== Request | ||
|
||
`GET <kibana host>:<port>/api/cases/reporters` | ||
|
||
`GET <kibana host>:<port>/s/api/cases/reporters` | ||
|
||
=== Prerequisite | ||
|
||
You must have `read` privileges for the *Cases* feature in the *Management*, | ||
*{observability}*, or *Security* section of the | ||
<<kibana-feature-privileges,{kib} feature privileges>>, depending on the | ||
`owner` of the cases you're seeking. | ||
|
||
=== Query parameters | ||
|
||
`owner`:: | ||
(Optional, string or array of strings) A filter to limit the retrieved reporters | ||
to a specific set of applications. If this parameter is omitted, the response | ||
will contain all reporters from cases that the user has access to read. | ||
|
||
==== Response code | ||
|
||
`200`:: | ||
Indicates a successful call. | ||
|
||
==== Example | ||
|
||
Returns all case reporters: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
GET api/cases/reporters | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
The API returns a JSON object with the retrieved reporters. For example: | ||
|
||
[source,json] | ||
-------------------------------------------------- | ||
[ | ||
{ | ||
"full_name": "Alan Hunley", | ||
"email": "ahunley@imf.usa.gov", | ||
"username": "ahunley" | ||
}, | ||
{ | ||
"full_name": "Rat Hustler", | ||
"email": "jrhustler@aol.com", | ||
"username": "rhustler" | ||
} | ||
] | ||
-------------------------------------------------- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* 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 Crypto from 'crypto'; | ||
|
||
export interface DllManifest { | ||
name: string; | ||
content: Record<string, any>; | ||
} | ||
|
||
export interface ParsedDllManifest { | ||
name: string; | ||
content: Record<string, any>; | ||
} | ||
|
||
const hash = (s: string) => { | ||
return Crypto.createHash('md5').update(s).digest('base64').replace(/=+$/, ''); | ||
}; | ||
|
||
export function parseDllManifest(manifest: DllManifest): ParsedDllManifest { | ||
return { | ||
name: manifest.name, | ||
content: Object.fromEntries( | ||
Object.entries(manifest.content).map(([k, v]) => { | ||
const { id, buildMeta, ...other } = v; | ||
const metaJson = JSON.stringify(buildMeta) || '{}'; | ||
const otherJson = JSON.stringify(other) || '{}'; | ||
|
||
return [ | ||
k, | ||
[ | ||
v.id, | ||
...(metaJson !== '{}' ? [hash(metaJson)] : []), | ||
...(otherJson !== '{}' ? [hash(otherJson)] : []), | ||
].join(':'), | ||
]; | ||
}) | ||
), | ||
}; | ||
} |
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.