Skip to content

Commit

Permalink
Merge branch 'main' into feature/multitenancy
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Quispel <[email protected]>
  • Loading branch information
JulianQuispel authored Feb 20, 2024
2 parents 0f4fb09 + 7e2d951 commit 867ef53
Show file tree
Hide file tree
Showing 12 changed files with 131 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
cd ./OpenSearch-Dashboards/
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v &&
yarn config set network-timeout 1000000 -g &&
yarn osd bootstrap"
yarn osd bootstrap --single-version=loose"
- name: Test all dashboards-observability modules
run: |
chown -R 1000:1000 `pwd`
cd ./OpenSearch-Dashboards/
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v &&
cd plugins/dashboards-observability &&
yarn osd bootstrap && yarn test --coverage --maxWorkers=100%"
yarn osd bootstrap --single-version=loose && yarn test --coverage --maxWorkers=100%"
- name: Upload coverage
uses: codecov/codecov-action@v1
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
command: |
cd OpenSearch-Dashboards
yarn config set network-timeout 1000000 -g
yarn osd bootstrap
yarn osd bootstrap --single-version=loose
- name: Test all dashboards-observability modules
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Bootstrap the plugin
run: |
cd OpenSearch-Dashboards/plugins/dashboards-observability
yarn osd bootstrap
yarn osd bootstrap --single-version=loose
- name: Run OpenSearch Dashboards server
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Bootstrap the plugin
run: |
cd OpenSearch-Dashboards/plugins/dashboards-observability
yarn osd bootstrap
yarn osd bootstrap --single-version=loose
- name: Run OpenSearch Dashboards server
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Bootstrap the plugin
working-directory: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
run: yarn osd bootstrap
run: yarn osd bootstrap --single-version=loose

- name: Get list of changed files using GitHub Action
uses: lots0logs/[email protected]
Expand Down
14 changes: 14 additions & 0 deletions common/types/trace_analytics.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

export type SpanField =
| 'SPAN_ID'
| 'PARENT_SPAN_ID'
| 'SERVICE'
| 'OPERATION'
| 'DURATION'
| 'START_TIME'
| 'END_TIME'
| 'ERRORS';
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@
"mime": "^3.0.0",
"mocha": "10.1.0",
"performance-now": "^2.1.0",
"plotly.js-dist": "^2.2.0",
"plotly.js-dist": "^2.29.1",
"postinstall": "^0.7.4",
"react-graph-vis": "^1.0.7",
"react-paginate": "^8.1.3",
"react-plotly.js": "^2.5.1",
"react-plotly.js": "^2.6.0",
"redux-persist": "^6.0.0",
"sanitize-filename": "^1.6.3"
},
"devDependencies": {
"@cypress/skip-test": "^2.6.1",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/mime": "^3.0.1",
"@types/react-plotly.js": "^2.5.0",
"@types/react-plotly.js": "^2.6.3",
"@types/react-test-renderer": "^18.0.0",
"@types/sanitize-filename": "^1.6.3",
"antlr4ts-cli": "^0.5.0-alpha.4",
Expand Down Expand Up @@ -80,4 +80,4 @@
"node_modules/*",
"target/*"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ exports[`Available Integration Card View Test Renders nginx integration card vie
className="euiButtonContent__icon"
color="inherit"
size="m"
title="list"
type="list"
>
<EuiIconBeaker
Expand All @@ -279,9 +280,12 @@ exports[`Available Integration Card View Test Renders nginx integration card vie
focusable="false"
role="img"
style={null}
title="list"
titleId="random_html_id"
>
<svg
aria-hidden={true}
aria-labelledby="random_html_id"
className="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
focusable="false"
height={16}
Expand All @@ -291,6 +295,11 @@ exports[`Available Integration Card View Test Renders nginx integration card vie
width={16}
xmlns="http://www.w3.org/2000/svg"
>
<title
id="random_html_id"
>
list
</title>
<path
d="M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z"
/>
Expand Down Expand Up @@ -384,6 +393,7 @@ exports[`Available Integration Card View Test Renders nginx integration card vie
className="euiButtonContent__icon"
color="inherit"
size="m"
title="grid"
type="grid"
>
<EuiIconBeaker
Expand All @@ -392,9 +402,12 @@ exports[`Available Integration Card View Test Renders nginx integration card vie
focusable="false"
role="img"
style={null}
title="grid"
titleId="random_html_id"
>
<svg
aria-hidden={true}
aria-labelledby="random_html_id"
className="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
focusable="false"
height={16}
Expand All @@ -404,6 +417,11 @@ exports[`Available Integration Card View Test Renders nginx integration card vie
width={16}
xmlns="http://www.w3.org/2000/svg"
>
<title
id="random_html_id"
>
grid
</title>
<path
d="M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v
className="euiButtonContent__icon"
color="inherit"
size="m"
title="list"
type="list"
>
<EuiIconBeaker
Expand All @@ -481,9 +482,12 @@ exports[`Available Integration Table View Test Renders nginx integration table v
focusable="false"
role="img"
style={null}
title="list"
titleId="random_html_id"
>
<svg
aria-hidden={true}
aria-labelledby="random_html_id"
className="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
focusable="false"
height={16}
Expand All @@ -493,6 +497,11 @@ exports[`Available Integration Table View Test Renders nginx integration table v
width={16}
xmlns="http://www.w3.org/2000/svg"
>
<title
id="random_html_id"
>
list
</title>
<path
d="M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z"
/>
Expand Down Expand Up @@ -586,6 +595,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v
className="euiButtonContent__icon"
color="inherit"
size="m"
title="grid"
type="grid"
>
<EuiIconBeaker
Expand All @@ -594,9 +604,12 @@ exports[`Available Integration Table View Test Renders nginx integration table v
focusable="false"
role="img"
style={null}
title="grid"
titleId="random_html_id"
>
<svg
aria-hidden={true}
aria-labelledby="random_html_id"
className="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
focusable="false"
height={16}
Expand All @@ -606,6 +619,11 @@ exports[`Available Integration Table View Test Renders nginx integration table v
width={16}
xmlns="http://www.w3.org/2000/svg"
>
<title
id="random_html_id"
>
grid
</title>
<path
d="M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import React, { useState } from 'react';
interface FlyoutListItemProps {
title: React.ReactNode;
description: React.ReactNode;
addSpanFilter: () => void;
addSpanFilter?: () => void;
}

export function FlyoutListItem(props: FlyoutListItemProps) {
Expand All @@ -27,12 +27,15 @@ export function FlyoutListItem(props: FlyoutListItemProps) {
props.description !== '-' ? (
<EuiFlexGroup gutterSize="none">
<EuiFlexItem>
<EuiText size="s" style={{ wordBreak: 'break-all', wordWrap: 'break-word', whiteSpace: 'pre-line' }}>
<EuiText
size="s"
style={{ wordBreak: 'break-all', wordWrap: 'break-word', whiteSpace: 'pre-line' }}
>
<b>{props.description}</b>
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
{hover && (
{hover && props.addSpanFilter && (
<EuiToolTip position="top" content="Filter spans on this value">
<EuiButtonIcon
aria-label="span-flyout-filter-icon"
Expand Down
Loading

0 comments on commit 867ef53

Please sign in to comment.