Skip to content

Commit

Permalink
Bumped version to 2.6 (#422)
Browse files Browse the repository at this point in the history
* bumped version

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* fixed unit test

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* upgraded yarn version to match OSD

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* fix yarn version

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* reverted version change

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* fixed dashboard message

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated workflows

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated workflows

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated package version

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan authored Feb 22, 2023
1 parent 6609322 commit ab6a342
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.5.0'
OPENSEARCH_VERSION: '2.5.0-SNAPSHOT'
SECURITY_ANALYTICS_BRANCH: '2.5'
OPENSEARCH_DASHBOARDS_VERSION: '2.6'
OPENSEARCH_VERSION: '2.6.0-SNAPSHOT'
SECURITY_ANALYTICS_BRANCH: '2.6'
jobs:
tests:
name: Run Cypress E2E tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.5.0'
OPENSEARCH_DASHBOARDS_VERSION: '2.6'
jobs:
tests:
name: Run unit tests
Expand Down
4 changes: 2 additions & 2 deletions opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "securityAnalyticsDashboards",
"version": "2.5.0.0",
"opensearchDashboardsVersion": "2.5.0",
"version": "2.6.0.0",
"opensearchDashboardsVersion": "2.6.0",
"configPath": ["opensearch_security_analytics"],
"requiredPlugins": ["data"],
"server": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opensearch_security_analytics_dashboards",
"version": "2.5.0.0",
"version": "2.6.0.0",
"description": "OpenSearch Dashboards plugin for Security Analytics",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from '../components/DetectionRules/DetectionRules';
import { NotificationsStart } from 'opensearch-dashboards/public';
import _ from 'lodash';
import { logTypesWithDashboards } from '../../../../../utils/constants';

interface DefineDetectorProps extends RouteComponentProps {
detector: Detector;
Expand Down Expand Up @@ -219,16 +220,20 @@ export default class DefineDetector extends Component<DefineDetectorProps, Defin

<EuiSpacer size={'m'} />

<EuiCallOut
title={'Detector dashboard will be created to visualize insights for this detector'}
>
<p>
A detector dashboard will be automatically created to provide insights for this
detector.
</p>
</EuiCallOut>

<EuiSpacer size={'m'} />
{logTypesWithDashboards.has(detector_type) ? (
<>
<EuiCallOut
title={'Detector dashboard will be created to visualize insights for this detector'}
>
<p>
A detector dashboard will be automatically created to provide insights for this
detector.
</p>
</EuiCallOut>

<EuiSpacer size={'m'} />
</>
) : null}

<DetectorSchedule
detector={detector}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import services from '../../../services';
import detectorHitMock from '../../containers/Detectors/DetectorHit.mock';
import notificationsStartMock from '../../../services/notifications/NotificationsStart.mock';
import UpdateAlertConditions from '../../../../../public/pages/Detectors/components/UpdateAlertConditions/UpdateAlertConditions';
import { ROUTES } from '../../../../../public/utils/constants';

const { notificationsService, detectorService, openSearchService, ruleService } = services;

Expand All @@ -18,6 +19,7 @@ export default ({
notificationsService: notificationsService,
notifications: notificationsStartMock,
location: {
pathname: `${ROUTES.EDIT_DETECTOR_ALERT_TRIGGERS}/${detectorHitMock._id}`,
state: {
detectorHit: detectorHitMock,
},
Expand Down

0 comments on commit ab6a342

Please sign in to comment.