Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '*'
env:
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_VERSION: '3.0.0-SNAPSHOT'
OPENSEARCH_VERSION: '3.1.0-SNAPSHOT'
SECURITY_ANALYTICS_BRANCH: 'main'
GRADLE_VERSION: '7.6.1'
jobs:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/verify-binary-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Install Dashboards with Plugin via Binary'

on: [push, pull_request]
env:
OPENSEARCH_VERSION: '3.0.0'
OPENSEARCH_VERSION: '3.1.0'
CI: 1
# avoid warnings like "tput: No value for $TERM and no -T specified"
TERM: xterm
Expand All @@ -20,6 +20,12 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 21

- name: Set env
run: |
opensearch_version=$(node -p "require('./opensearch_dashboards.json').opensearchDashboardsVersion")
Expand All @@ -29,10 +35,11 @@ jobs:
shell: bash

- name: Run Opensearch
uses: derek-ho/start-opensearch@v2
uses: derek-ho/start-opensearch@v6
with:
opensearch-version: ${{ env.OPENSEARCH_VERSION }}
security-enabled: false
jdk-version: 21

- name: Run Dashboard
id: setup-dashboards
Expand All @@ -52,4 +59,3 @@ jobs:
run: |
timeout 300 bash -c 'while [[ "$(curl http://localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done'
shell: bash

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": "3.0.0.0",
"opensearchDashboardsVersion": "3.0.0",
"version": "3.1.0.0",
"opensearchDashboardsVersion": "3.1.0",
"configPath": ["opensearch_security_analytics"],
"requiredPlugins": ["data", "navigation", "opensearchDashboardsUtils", "contentManagement"],
"optionalPlugins": ["dataSource", "dataSourceManagement"],
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": "3.0.0.0",
"version": "3.1.0.0",
"description": "OpenSearch Dashboards plugin for Security Analytics",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
26 changes: 17 additions & 9 deletions public/pages/Correlations/containers/CreateCorrelationRule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,12 @@ export const CreateCorrelationRule: React.FC<CreateCorrelationRuleProps> = (
props.resetForm();
}

useEffect(() => {
if (trigger?.id) {
setShowForm(true);
}
}, [trigger?.id]);

return (
<Form>
<ContentPanel
Expand Down Expand Up @@ -1010,15 +1016,17 @@ export const CreateCorrelationRule: React.FC<CreateCorrelationRuleProps> = (
<p>Get an alert on the correlation between the findings.</p>
</EuiText>
<EuiSpacer size="m" />
<EuiCompressedFormRow>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiSmallButton onClick={() => setShowForm(!showForm)}>
Add Alert Trigger
</EuiSmallButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCompressedFormRow>
{!showForm && (
<EuiCompressedFormRow>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiSmallButton onClick={() => setShowForm(!showForm)}>
Add Alert Trigger
</EuiSmallButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCompressedFormRow>
)}
{showForm && (
<>
<EuiSpacer size="m" />
Expand Down
Loading
Loading