forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
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 actions/pagerduty-dedup
* master: (45 commits) [CSM] Use stacked chart for page views (elastic#78042) [Enterprise Search] Fix various plugin states when app has error connecting to Enterprise Search (elastic#78091) Remove service map beta badge (elastic#78039) [Enterprise Search] Rename "telemetry" to "stats" (elastic#78124) [Alerting] optimize calculation of unmuted alert instances (elastic#78021) call .destroy on ace when react component unmounts (elastic#78132) [Ingest Manager] Fix agent action acknowledgement (elastic#78089) [Upgrade Assistant] Rename "telemetry" to "stats" (elastic#78127) [Security Solution] Refactor Hosts Kpi to use Search Strategy (elastic#77606) Bump backport to 5.6.0 (elastic#78097) [Actions] adds a Test Connector tab in the Connectors list (elastic#77365) [Uptime] Improve ping chart axis (elastic#77992) [TSVB] Fields dropdowns are not populated if one of the indices is missing (elastic#77363) [UiActions] Remove duplicate apply filter action (elastic#77485) [APM] Use transaction metrics for transaction error rate (elastic#78009) [ES-ARCHIVER] Fix bug when query flag is empty (elastic#77983) Edit UI text strings in Integrations and Fleet tabs (elastic#75837) [baseline capture] switch to large workers (elastic#78109) [SECURITY_SOLUTION] list UI is backwards compatible (elastic#77956) [Mappings editor] Add support for point field type (elastic#77543) ...
- Loading branch information
Showing
322 changed files
with
19,612 additions
and
4,730 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
18 changes: 18 additions & 0 deletions
18
docs/development/core/server/kibana-plugin-core-server.kibanarequest.uuid.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,18 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [KibanaRequest](./kibana-plugin-core-server.kibanarequest.md) > [uuid](./kibana-plugin-core-server.kibanarequest.uuid.md) | ||
|
||
## KibanaRequest.uuid property | ||
|
||
A UUID to identify this request. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
readonly uuid: string; | ||
``` | ||
|
||
## Remarks | ||
|
||
This value is NOT sourced from the incoming request's `X-Opaque-Id` header. it is always a UUID uniquely identifying the request. | ||
|
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
63 changes: 63 additions & 0 deletions
63
examples/ui_actions_explorer/public/context_menu_examples/context_menu_examples.tsx
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,63 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiCode, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; | ||
import { PanelView } from './panel_view'; | ||
import { PanelViewWithSharing } from './panel_view_with_sharing'; | ||
import { PanelViewWithSharingLong } from './panel_view_with_sharing_long'; | ||
import { PanelEdit } from './panel_edit'; | ||
import { PanelEditWithDrilldowns } from './panel_edit_with_drilldowns'; | ||
import { PanelEditWithDrilldownsAndContextActions } from './panel_edit_with_drilldowns_and_context_actions'; | ||
|
||
export const ContextMenuExamples: React.FC = () => { | ||
return ( | ||
<EuiText> | ||
<h1>Context menu examples</h1> | ||
<p> | ||
Below examples show how context menu panels look with varying number of actions and how the | ||
actions can be grouped into different panels using <EuiCode>grouping</EuiCode> field. | ||
</p> | ||
|
||
<EuiFlexGroup> | ||
<EuiFlexItem> | ||
<PanelView /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<PanelViewWithSharing /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<PanelViewWithSharingLong /> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
|
||
<EuiFlexGroup> | ||
<EuiFlexItem> | ||
<PanelEdit /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<PanelEditWithDrilldowns /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<PanelEditWithDrilldownsAndContextActions /> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiText> | ||
); | ||
}; |
20 changes: 20 additions & 0 deletions
20
examples/ui_actions_explorer/public/context_menu_examples/index.tsx
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,20 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
export * from './context_menu_examples'; |
59 changes: 59 additions & 0 deletions
59
examples/ui_actions_explorer/public/context_menu_examples/panel_edit.tsx
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,59 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import * as React from 'react'; | ||
import { EuiButton, EuiContextMenu, EuiPopover } from '@elastic/eui'; | ||
import useAsync from 'react-use/lib/useAsync'; | ||
import { buildContextMenuForActions } from '../../../../src/plugins/ui_actions/public'; | ||
import { sampleAction } from './util'; | ||
|
||
export const PanelEdit: React.FC = () => { | ||
const [open, setOpen] = React.useState(false); | ||
|
||
const context = {}; | ||
const trigger: any = 'TEST_TRIGGER'; | ||
const actions = [ | ||
sampleAction('test-1', 100, 'Edit visualization', 'pencil'), | ||
sampleAction('test-2', 99, 'Clone panel', 'partial'), | ||
sampleAction('test-3', 98, 'Edit panel title', 'pencil'), | ||
sampleAction('test-4', 97, 'Customize time range', 'calendar'), | ||
sampleAction('test-5', 96, 'Inspect', 'inspect'), | ||
sampleAction('test-6', 95, 'Full screen', 'fullScreen'), | ||
sampleAction('test-7', 94, 'Replace panel', 'submodule'), | ||
sampleAction('test-8', 93, 'Delete from dashboard', 'trash'), | ||
]; | ||
|
||
const panels = useAsync(() => | ||
buildContextMenuForActions({ | ||
actions: actions.map((action) => ({ action, context, trigger })), | ||
}) | ||
); | ||
|
||
return ( | ||
<EuiPopover | ||
button={<EuiButton onClick={() => setOpen((x) => !x)}>Edit mode</EuiButton>} | ||
isOpen={open} | ||
panelPaddingSize="none" | ||
anchorPosition="downLeft" | ||
closePopover={() => setOpen(false)} | ||
> | ||
<EuiContextMenu initialPanelId={'mainMenu'} panels={panels.value} /> | ||
</EuiPopover> | ||
); | ||
}; |
70 changes: 70 additions & 0 deletions
70
examples/ui_actions_explorer/public/context_menu_examples/panel_edit_with_drilldowns.tsx
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,70 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import * as React from 'react'; | ||
import { EuiButton, EuiContextMenu, EuiPopover } from '@elastic/eui'; | ||
import useAsync from 'react-use/lib/useAsync'; | ||
import { buildContextMenuForActions, Action } from '../../../../src/plugins/ui_actions/public'; | ||
import { sampleAction } from './util'; | ||
|
||
export const PanelEditWithDrilldowns: React.FC = () => { | ||
const [open, setOpen] = React.useState(false); | ||
|
||
const context = {}; | ||
const trigger: any = 'TEST_TRIGGER'; | ||
const grouping: Action['grouping'] = [ | ||
{ | ||
id: 'drilldowns', | ||
getDisplayName: () => 'Drilldowns', | ||
getIconType: () => 'popout', | ||
order: 20, | ||
}, | ||
]; | ||
const actions = [ | ||
sampleAction('test-1', 100, 'Edit visualization', 'pencil'), | ||
sampleAction('test-2', 99, 'Clone panel', 'partial'), | ||
sampleAction('test-3', 98, 'Edit panel title', 'pencil'), | ||
sampleAction('test-4', 97, 'Customize time range', 'calendar'), | ||
sampleAction('test-5', 96, 'Inspect', 'inspect'), | ||
sampleAction('test-6', 95, 'Full screen', 'fullScreen'), | ||
sampleAction('test-7', 94, 'Replace panel', 'submodule'), | ||
sampleAction('test-8', 93, 'Delete from dashboard', 'trash'), | ||
|
||
sampleAction('test-9', 10, 'Create drilldown', 'plusInCircle', grouping), | ||
sampleAction('test-10', 9, 'Manage drilldowns', 'list', grouping), | ||
]; | ||
|
||
const panels = useAsync(() => | ||
buildContextMenuForActions({ | ||
actions: actions.map((action) => ({ action, context, trigger })), | ||
}) | ||
); | ||
|
||
return ( | ||
<EuiPopover | ||
button={<EuiButton onClick={() => setOpen((x) => !x)}>Edit mode with drilldowns</EuiButton>} | ||
isOpen={open} | ||
panelPaddingSize="none" | ||
anchorPosition="downLeft" | ||
closePopover={() => setOpen(false)} | ||
> | ||
<EuiContextMenu initialPanelId={'mainMenu'} panels={panels.value} /> | ||
</EuiPopover> | ||
); | ||
}; |
87 changes: 87 additions & 0 deletions
87
..._explorer/public/context_menu_examples/panel_edit_with_drilldowns_and_context_actions.tsx
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,87 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import * as React from 'react'; | ||
import { EuiButton, EuiContextMenu, EuiPopover } from '@elastic/eui'; | ||
import useAsync from 'react-use/lib/useAsync'; | ||
import { buildContextMenuForActions, Action } from '../../../../src/plugins/ui_actions/public'; | ||
import { sampleAction } from './util'; | ||
|
||
export const PanelEditWithDrilldownsAndContextActions: React.FC = () => { | ||
const [open, setOpen] = React.useState(false); | ||
|
||
const context = {}; | ||
const trigger: any = 'TEST_TRIGGER'; | ||
const drilldownGrouping: Action['grouping'] = [ | ||
{ | ||
id: 'drilldowns', | ||
getDisplayName: () => 'Drilldowns', | ||
getIconType: () => 'popout', | ||
order: 20, | ||
}, | ||
]; | ||
const customActionGrouping: Action['grouping'] = [ | ||
{ | ||
id: 'actions', | ||
getDisplayName: () => 'Custom actions', | ||
getIconType: () => 'cloudStormy', | ||
order: 20, | ||
}, | ||
]; | ||
const actions = [ | ||
sampleAction('test-1', 100, 'Edit visualization', 'pencil'), | ||
sampleAction('test-2', 99, 'Clone panel', 'partial'), | ||
sampleAction('test-3', 98, 'Edit panel title', 'pencil'), | ||
sampleAction('test-4', 97, 'Customize time range', 'calendar'), | ||
sampleAction('test-5', 96, 'Inspect', 'inspect'), | ||
sampleAction('test-6', 95, 'Full screen', 'fullScreen'), | ||
sampleAction('test-7', 94, 'Replace panel', 'submodule'), | ||
sampleAction('test-8', 93, 'Delete from dashboard', 'trash'), | ||
|
||
sampleAction('test-9', 10, 'Create drilldown', 'plusInCircle', drilldownGrouping), | ||
sampleAction('test-10', 9, 'Manage drilldowns', 'list', drilldownGrouping), | ||
|
||
sampleAction('test-11', 10, 'Go to Sales dashboard', 'dashboardApp', customActionGrouping), | ||
sampleAction('test-12', 9, 'Go to Traffic dashboard', 'dashboardApp', customActionGrouping), | ||
sampleAction('test-13', 8, 'Custom actions', 'cloudStormy', customActionGrouping), | ||
sampleAction('test-14', 7, 'View in Salesforce', 'link', customActionGrouping), | ||
]; | ||
|
||
const panels = useAsync(() => | ||
buildContextMenuForActions({ | ||
actions: actions.map((action) => ({ action, context, trigger })), | ||
}) | ||
); | ||
|
||
return ( | ||
<EuiPopover | ||
button={ | ||
<EuiButton onClick={() => setOpen((x) => !x)}> | ||
Edit mode with drilldowns and custom actions | ||
</EuiButton> | ||
} | ||
isOpen={open} | ||
panelPaddingSize="none" | ||
anchorPosition="downLeft" | ||
closePopover={() => setOpen(false)} | ||
> | ||
<EuiContextMenu initialPanelId={'mainMenu'} panels={panels.value} /> | ||
</EuiPopover> | ||
); | ||
}; |
Oops, something went wrong.