forked from opensearch-project/OpenSearch-Dashboards
-
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 pull request #4 from ajygupta/point-in-time
Point in time
- Loading branch information
Showing
36 changed files
with
1,174 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -309,8 +309,78 @@ jobs: | |
path: ./artifacts/target/${{ env.ARTIFACT_BUILD_NAME }} | ||
retention-days: 1 | ||
|
||
build-min-artifact-tests-windows: | ||
runs-on: windows-latest | ||
name: Build min release artifacts on Windows | ||
defaults: | ||
run: | ||
working-directory: artifacts | ||
strategy: | ||
matrix: | ||
include: | ||
- name: Windows x64 | ||
ext: zip | ||
suffix: windows-x64 | ||
script: build-platform --windows --skip-os-packages | ||
steps: | ||
- name: Configure git's autocrlf | ||
run: | | ||
git config --global core.autocrlf false | ||
working-directory: . | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: artifacts | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: 'artifacts/.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Setup Yarn | ||
run: | | ||
npm uninstall -g yarn | ||
npm i -g [email protected] | ||
yarn config set network-timeout 1000000 -g | ||
- name: Configure Yarn Cache | ||
run: | | ||
echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $env:GITHUB_ENV | ||
echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%" | ||
- name: Initialize Yarn Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.YARN_CACHE_LOCATION }} | ||
key: yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
yarn- | ||
- name: Get package version | ||
run: | | ||
echo "VERSION=$(yarn --silent pkg-version)" >> $env:GITHUB_ENV | ||
- name: Get artifact build name | ||
run: | | ||
echo "ARTIFACT_BUILD_NAME=opensearch-dashboards-${{ env.VERSION }}-${{ matrix.suffix }}.${{ matrix.ext }}" >> $env:GITHUB_ENV | ||
- name: Run bootstrap | ||
run: yarn osd bootstrap | ||
|
||
- name: Build `${{ matrix.name }}` | ||
run: yarn ${{ matrix.script }} --release | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: ${{ matrix.suffix }}-${{ env.VERSION }} | ||
path: artifacts/target/${{ env.ARTIFACT_BUILD_NAME }} | ||
retention-days: 1 | ||
|
||
bwc-tests: | ||
needs: [build-min-artifact-tests] | ||
needs: [build-min-artifact-tests-linux] | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker://opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-dashboards-integtest-v2 | ||
|
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
18 changes: 18 additions & 0 deletions
18
src/plugins/point_in_time_management/opensearch_dashboards.json
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 @@ | ||
{ | ||
"id": "pit", | ||
"version": "1.0.0", | ||
"opensearchDashboardsVersion": "opensearchDashboards", | ||
"server": true, | ||
"ui": true, | ||
"requiredPlugins": [ | ||
"navigation", | ||
"management", | ||
"data" | ||
], | ||
"optionalPlugins": [ | ||
"dataSource" | ||
], | ||
"requiredBundles": [ | ||
"opensearchDashboardsReact" | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
src/plugins/point_in_time_management/public/components/breadcrumbs.ts
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,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { i18n } from '@osd/i18n'; | ||
|
||
export function getListBreadcrumbs() { | ||
return [ | ||
{ | ||
text: i18n.translate('pitManagement.listBreadcrumb', { | ||
defaultMessage: 'Point in time', | ||
}), | ||
href: `/`, | ||
}, | ||
]; | ||
} |
89 changes: 89 additions & 0 deletions
89
..._in_time_management/public/components/empty_state/__snapshots__/empty_state.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/plugins/point_in_time_management/public/components/empty_state/empty_state.test.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,16 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EmptyState } from './empty_state'; | ||
import { shallow } from 'enzyme'; | ||
|
||
describe('EmptyState', () => { | ||
it('should render normally', () => { | ||
const component = shallow(<EmptyState />); | ||
|
||
expect(component).toMatchSnapshot(); | ||
}); | ||
}); |
78 changes: 78 additions & 0 deletions
78
src/plugins/point_in_time_management/public/components/empty_state/empty_state.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,78 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { FormattedMessage } from '@osd/i18n/react'; | ||
import { | ||
EuiPageContentHeader, | ||
EuiPageContentHeaderSection, | ||
EuiTitle, | ||
EuiPageContent, | ||
EuiSpacer, | ||
EuiText, | ||
EuiPageContentBody, | ||
EuiFlexItem, | ||
EuiFlexGroup, | ||
EuiButton, | ||
} from '@elastic/eui'; | ||
|
||
export const EmptyState = () => { | ||
return ( | ||
<> | ||
<EuiPageContent | ||
className="pitEmptyState" | ||
grow={false} | ||
style={{ minHeight: '70vh' }} | ||
horizontalPosition="center" | ||
data-test-subj="pointInTimeEmptyState" | ||
> | ||
<EuiPageContentHeader> | ||
<EuiPageContentHeaderSection> | ||
<EuiTitle> | ||
<h1> | ||
<FormattedMessage | ||
id="pointInTimeManagement.header.pointInTimeTitle" | ||
defaultMessage="Point in Time" | ||
/> | ||
</h1> | ||
</EuiTitle> | ||
</EuiPageContentHeaderSection> | ||
<EuiButton fill={true} iconType="plusInCircle" data-test-subj="createPITBtnInHeader"> | ||
<FormattedMessage | ||
id="pointInTimeManagement.header.createPointInTimeButton" | ||
defaultMessage="Create point in time" | ||
/> | ||
</EuiButton> | ||
</EuiPageContentHeader> | ||
<EuiText size="s"> | ||
<p> | ||
<FormattedMessage | ||
id="pointInTimeManagement.pointInTimeDescription" | ||
defaultMessage="Create and manage point in time objects to help you retrieve data from OpenSearch." | ||
/> | ||
</p> | ||
</EuiText> | ||
<EuiSpacer size="m" /> | ||
<EuiPageContentBody> | ||
<EuiFlexGroup | ||
style={{ minHeight: '50vh' }} | ||
alignItems="center" | ||
justifyContent="center" | ||
direction="column" | ||
> | ||
<EuiFlexItem grow={false}>No point in time objects have been created yet.</EuiFlexItem> | ||
<EuiSpacer /> | ||
<EuiButton data-test-subj="createPITBtnInBody"> | ||
<FormattedMessage | ||
id="pointInTimeManagement.createPointInTimeButton" | ||
defaultMessage="Create point in time" | ||
/> | ||
</EuiButton> | ||
</EuiFlexGroup> | ||
</EuiPageContentBody> | ||
</EuiPageContent> | ||
</> | ||
); | ||
}; |
6 changes: 6 additions & 0 deletions
6
src/plugins/point_in_time_management/public/components/empty_state/index.ts
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,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export { EmptyState } from './empty_state'; |
6 changes: 6 additions & 0 deletions
6
src/plugins/point_in_time_management/public/components/index.ts
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,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export { PITTableWithRouter } from './pit_table'; |
Oops, something went wrong.