mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.8`: - [[RAM] Performance to our browser field endpoint (#157523)](https://github.com/elastic/kibana/pull/157523) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Xavier Mouligneau","email":"xavier.mouligneau@elastic.co"},"sourceCommit":{"committedDate":"2023-05-16T15:20:45Z","message":"[RAM] Performance to our browser field endpoint (#157523)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/155000\r\n\r\nWe had to re-introduce this endpoint to allow our user to access alert\r\nfields without creating a specific privileges on the alert index.\r\n\r\n---------\r\n\r\nCo-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>","sha":"e68bb9bb22444a418b5136b143f02cd1a9c2e6f7","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["enhancement","release_note:skip","Team:ResponseOps","ci:cloud-deploy","v8.8.0","v8.9.0"],"number":157523,"url":"https://github.com/elastic/kibana/pull/157523","mergeCommit":{"message":"[RAM] Performance to our browser field endpoint (#157523)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/155000\r\n\r\nWe had to re-introduce this endpoint to allow our user to access alert\r\nfields without creating a specific privileges on the alert index.\r\n\r\n---------\r\n\r\nCo-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>","sha":"e68bb9bb22444a418b5136b143f02cd1a9c2e6f7"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157523","number":157523,"mergeCommit":{"message":"[RAM] Performance to our browser field endpoint (#157523)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/155000\r\n\r\nWe had to re-introduce this endpoint to allow our user to access alert\r\nfields without creating a specific privileges on the alert index.\r\n\r\n---------\r\n\r\nCo-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>","sha":"e68bb9bb22444a418b5136b143f02cd1a9c2e6f7"}}]}] BACKPORT--> Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
This commit is contained in:
parent
ba9b182a34
commit
0c16782adf
3 changed files with 5 additions and 2 deletions
|
@ -37,6 +37,7 @@ export const columns: Array<
|
|||
}),
|
||||
id: TIMESTAMP,
|
||||
initialWidth: 230,
|
||||
schema: 'datetime',
|
||||
},
|
||||
{
|
||||
columnHeaderType: 'not-filtered',
|
||||
|
|
|
@ -35,8 +35,8 @@ export const fieldDescriptorToBrowserFieldMapper = (fields: FieldDescriptor[]):
|
|||
const category = getFieldCategory(field);
|
||||
const browserField = browserFieldFactory(field, category);
|
||||
|
||||
if (browserFields[category]) {
|
||||
browserFields[category] = { fields: { ...browserFields[category].fields, ...browserField } };
|
||||
if (browserFields[category] && browserFields[category]) {
|
||||
Object.assign(browserFields[category].fields, browserField);
|
||||
} else {
|
||||
browserFields[category] = { fields: browserField };
|
||||
}
|
||||
|
|
|
@ -36,11 +36,13 @@ export function registerAlertsTableConfiguration({
|
|||
id: '@timestamp',
|
||||
displayAsText: 'Last updated',
|
||||
initialWidth: 250,
|
||||
schema: 'datetime',
|
||||
},
|
||||
{
|
||||
id: 'kibana.alert.duration.us',
|
||||
displayAsText: 'Duration',
|
||||
initialWidth: 150,
|
||||
schema: 'numeric',
|
||||
},
|
||||
{
|
||||
id: 'kibana.alert.reason',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue