-
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.
- Loading branch information
Showing
259 changed files
with
6,064 additions
and
2,944 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 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
Validating CODEOWNERS rules …
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 |
---|---|---|
|
@@ -47,12 +47,12 @@ default space is used. | |
|
||
=== {api-examples-title} | ||
|
||
Retrieves comment ID `71ec1870-725b-11ea-a0b2-c51ea50a58e2` from case ID | ||
`a18b38a0-71b0-11ea-a0b2-c51ea50a58e2`: | ||
Retrieves comment ID `8048b460-fe2b-11ec-b15d-779a7c8bbcc3` from case ID | ||
`ecbf8a20-fe2a-11ec-b15d-779a7c8bbcc3`: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
GET api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments/71ec1870-725b-11ea-a0b2-c51ea50a58e2 | ||
GET api/cases/ecbf8a20-fe2a-11ec-b15d-779a7c8bbcc3/comments/8048b460-fe2b-11ec-b15d-779a7c8bbcc3 | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
@@ -61,20 +61,20 @@ The API returns the requested comment JSON object. For example: | |
[source,json] | ||
-------------------------------------------------- | ||
{ | ||
"id":"8acb3a80-ab0a-11ec-985f-97e55adae8b9", | ||
"version":"Wzc5NzYsM10=", | ||
"comment":"Start operation bubblegum immediately! And chew fast!", | ||
"id":"8048b460-fe2b-11ec-b15d-779a7c8bbcc3", | ||
"version":"WzIzLDFd", | ||
"type":"user", | ||
"owner":"cases", | ||
"created_at":"2022-03-24T00:37:10.832Z", | ||
"created_by": { | ||
"email": "[email protected]", | ||
"full_name": "Classified", | ||
"username": "M" | ||
}, | ||
"pushed_at": null, | ||
"pushed_by": null, | ||
"updated_at": null, | ||
"updated_by": null | ||
"comment":"A new comment", | ||
"created_at":"2022-07-07T19:32:13.104Z", | ||
"created_by":{ | ||
"email":null, | ||
"full_name":null, | ||
"username":"elastic" | ||
}, | ||
"pushed_at":null, | ||
"pushed_by":null, | ||
"updated_at":null, | ||
"updated_by":null | ||
} | ||
-------------------------------------------------- |
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
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
6 changes: 6 additions & 0 deletions
6
src/plugins/chart_expressions/expression_legacy_metric/.i18nrc.json
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,6 @@ | ||
{ | ||
"prefix": "expressionLegacyMetricVis", | ||
"paths": { | ||
"expressionLegacyMetricVis": "." | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/plugins/chart_expressions/expression_legacy_metric/.storybook/main.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,26 @@ | ||
/* | ||
* 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 { defaultConfig } from '@kbn/storybook'; | ||
import webpackMerge from 'webpack-merge'; | ||
import { resolve } from 'path'; | ||
|
||
const mockConfig = { | ||
resolve: { | ||
alias: { | ||
'../../../expression_legacy_metric/public/services': resolve( | ||
__dirname, | ||
'../public/__mocks__/services.ts' | ||
), | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = { | ||
...defaultConfig, | ||
webpackFinal: (config) => webpackMerge(config, mockConfig), | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/plugins/chart_expressions/expression_legacy_metric/README.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,9 @@ | ||
# expressionLegacyMetricVis | ||
|
||
Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart. | ||
|
||
--- | ||
|
||
## Development | ||
|
||
See the [kibana contributing guide](https://github.com/elastic/kibana/blob/main/CONTRIBUTING.md) for instructions setting up your development environment. |
14 changes: 14 additions & 0 deletions
14
src/plugins/chart_expressions/expression_legacy_metric/common/constants.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,14 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export const EXPRESSION_METRIC_NAME = 'legacyMetricVis'; | ||
|
||
export const LabelPosition = { | ||
BOTTOM: 'bottom', | ||
TOP: 'top', | ||
} as const; |
2 changes: 1 addition & 1 deletion
2
...pshots__/metric_vis_function.test.ts.snap → ...pshots__/metric_vis_function.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/index.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,9 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export { metricVisFunction } from './metric_vis_function'; |
File renamed without changes.
Oops, something went wrong.