-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.x' into backport/backport-4164-to-2.x
Signed-off-by: Manasvini B Suryanarayana <[email protected]>
- Loading branch information
Showing
19 changed files
with
467 additions
and
53 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @ananzh @kavilla @seanneumann @AMoo-Miki @ashwin-pc @joshuarrrr @abbyhu2000 @zengyan-amazon @kristenTian @zhongnansu @manasvinibs | ||
* @ananzh @kavilla @seanneumann @AMoo-Miki @ashwin-pc @joshuarrrr @abbyhu2000 @zengyan-amazon @kristenTian @zhongnansu @manasvinibs @ZilongX @Flyingliuhub |
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
83 changes: 83 additions & 0 deletions
83
...actions_explorer/public/context_menu_examples/panel_group_options_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,83 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
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 PanelGroupOptionsAndContextActions: React.FC = () => { | ||
const [open, setOpen] = React.useState(false); | ||
|
||
const context = {}; | ||
const trigger: any = 'TEST_TRIGGER'; | ||
const drilldownGrouping: Action['grouping'] = [ | ||
{ | ||
id: 'drilldowns', | ||
getDisplayName: () => 'Uncategorized group', | ||
getIconType: () => 'popout', | ||
order: 20, | ||
}, | ||
]; | ||
const exampleGroup: Action['grouping'] = [ | ||
{ | ||
id: 'example', | ||
getDisplayName: () => 'Example group', | ||
getIconType: () => 'cloudStormy', | ||
order: 20, | ||
category: 'visAug', | ||
}, | ||
]; | ||
const alertingGroup: Action['grouping'] = [ | ||
{ | ||
id: 'alerting', | ||
getDisplayName: () => 'Alerting', | ||
getIconType: () => 'cloudStormy', | ||
order: 20, | ||
category: 'visAug', | ||
}, | ||
]; | ||
const anomaliesGroup: Action['grouping'] = [ | ||
{ | ||
id: 'anomalies', | ||
getDisplayName: () => 'Anomalies', | ||
getIconType: () => 'cloudStormy', | ||
order: 30, | ||
category: 'visAug', | ||
}, | ||
]; | ||
const actions = [ | ||
sampleAction('test-1', 100, 'Edit visualization', 'pencil'), | ||
sampleAction('test-2', 99, 'Clone panel', 'partial'), | ||
|
||
sampleAction('test-9', 10, 'Create drilldown', 'plusInCircle', drilldownGrouping), | ||
sampleAction('test-10', 9, 'Manage drilldowns', 'list', drilldownGrouping), | ||
|
||
sampleAction('test-11', 10, 'Example action', 'dashboardApp', exampleGroup), | ||
sampleAction('test-11', 10, 'Alertin action 1', 'dashboardApp', alertingGroup), | ||
sampleAction('test-12', 9, 'Alertin action 2', 'dashboardApp', alertingGroup), | ||
sampleAction('test-13', 8, 'Anomalies 1', 'cloudStormy', anomaliesGroup), | ||
sampleAction('test-14', 7, 'Anomalies 2', 'link', anomaliesGroup), | ||
]; | ||
|
||
const panels = useAsync(() => | ||
buildContextMenuForActions({ | ||
actions: actions.map((action) => ({ action, context, trigger })), | ||
}) | ||
); | ||
|
||
return ( | ||
<EuiPopover | ||
button={<EuiButton onClick={() => setOpen((x) => !x)}>Grouping with categories</EuiButton>} | ||
isOpen={open} | ||
panelPaddingSize="none" | ||
anchorPosition="downLeft" | ||
closePopover={() => setOpen(false)} | ||
> | ||
<EuiContextMenu initialPanelId={'mainMenu'} panels={panels.value} /> | ||
</EuiPopover> | ||
); | ||
}; |
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
30 changes: 30 additions & 0 deletions
30
release-notes/opensearch-dashboards.release-notes-2.8.0.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,30 @@ | ||
## Version 2.8.0 Release Notes | ||
|
||
### 🛡 Security | ||
|
||
- [CVE-2023-2251] Bump yaml to `2.2.2` ([#3947](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3947)) | ||
|
||
### 📈 Features/Enhancements | ||
|
||
- [Multiple Datasource] Support Amazon OpenSearch Serverless ([#3957](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3957)) | ||
- Add support for Node.js >=14.20.1 <19 ([#4071](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4071)) | ||
- Bundle Node.js 14 as a fallback for operating systems that cannot run Node.js 18 ([#4151](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4151)) | ||
- Enhance grouping for context menus ([#3924](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3924)) | ||
|
||
### 🐛 Bug Fixes | ||
|
||
- [BUG] Fix bottom bar visibility using createPortal ([#3978](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3978)) | ||
|
||
### 🚞 Infrastructure | ||
|
||
- Add threshold to code coverage config to prevent workflow failures ([#4040](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4040)) | ||
- [CI] Skip checksum verification on OpenSearch snapshot for cypress tests ([#4188](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4188)) | ||
|
||
### 🛠 Maintenance | ||
|
||
- Use `exec` in the CLI shell scripts to prevent new process creation ([#3955](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3955)) | ||
- Remove timeline application ([#3971](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3971)) | ||
|
||
## 🎉 Welcome | ||
|
||
Thank you to all the first-time contributors who made this release possible: @sikhote, @SergeyMyssak! |
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
Oops, something went wrong.