Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version to 1.0.0.0 and add release notes #20

Merged
merged 7 commits into from
Jun 30, 2021
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/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
PLUGIN_NAME: gantt-chart-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:

Expand Down
42 changes: 32 additions & 10 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on: [pull_request, push]
env:
PLUGIN_NAME: gantt-chart-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:

Expand All @@ -16,39 +16,61 @@ jobs:

steps:
- name: Checkout Plugin
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Checkout OpenSearch Dashboards
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
path: dashboards-visualizations/OpenSearch-Dashboards
- name: Setup Node

- name: Get node and yarn versions
id: versions_step
run: |
echo "::set-output name=node_version::$(node -p "(require('./dashboards-visualizations/OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
echo "::set-output name=yarn_version::$(node -p "(require('./dashboards-visualizations/OpenSearch-Dashboards/package.json').engines.yarn).match(/[.0-9]+/)[0]")"

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '10.23.1'
node-version: ${{ steps.versions_step.outputs.node_version }}
registry-url: 'https://registry.npmjs.org'

- name: Install correct yarn version for OpenSearch Dashboards
run: |
npm uninstall -g yarn
echo "Installing yarn ${{ steps.versions_step.outputs.yarn_version }}"
npm i -g yarn@${{ steps.versions_step.outputs.yarn_version }}

- name: Move Gantt Chart to Plugins Dir
run: |
mv gantt-chart OpenSearch-Dashboards/plugins
mv gantt-chart ./dashboards-visualizations/OpenSearch-Dashboards/plugins

- name: Plugin Bootstrap
run: |
cd OpenSearch-Dashboards/plugins/gantt-chart
cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart
yarn osd bootstrap

- name: Test
run: |
cd OpenSearch-Dashboards/plugins/gantt-chart
cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart
yarn test --coverage

- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
direcotry: ./dashboards-visualizations/OpenSearch-Dashboards/plugins/trace-analytics

- name: Build Artifact
run: |
cd OpenSearch-Dashboards/plugins/gantt-chart
cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart
yarn build
mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip

- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: gantt-chart
path: OpenSearch-Dashboards/plugins/gantt-chart/build
path: ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart/build
4 changes: 2 additions & 2 deletions gantt-chart/opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "ganttChartDashboards",
"version": "1.0.0.0-rc1",
"opensearchDashboardsVersion": "1.0.0-rc1",
"version": "1.0.0.0",
"opensearchDashboardsVersion": "1.0.0",
"requiredPlugins": [
"visualizations",
"data"
Expand Down
10 changes: 3 additions & 7 deletions gantt-chart/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "gantt-chart-dashboards",
"version": "1.0.0.0-rc1",
"version": "1.0.0.0",
"opensearchDashboards": {
"version": "1.0.0-rc1",
"templateVersion": "1.0.0-rc1"
"version": "1.0.0",
"templateVersion": "1.0.0"
},
"license": "Apache-2.0",
"scripts": {
Expand All @@ -28,9 +28,5 @@
"eslint": "^6.8.0",
"jest": "^26.4.2",
"jest-dom": "^4.0.0"
},
"engines": {
"node": "10.23.1",
"yarn": "^1.21.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Version 1.0.0.0 Release Notes

Compatible with OpenSearch 1.0.0

### Bug Fixes
* Bump glob-parent from 5.1.1 to 5.1.2 in /gantt-chart ([#14](https://github.com/opensearch-project/dashboards-visualizations/pull/14))

### Infrastructure
* Add unit tests and codecov ([#19](https://github.com/opensearch-project/dashboards-visualizations/pull/19))

### Documentation
* Level up markdown contents ([#16](https://github.com/opensearch-project/dashboards-visualizations/pull/16))

### Maintenance
* Bump version to 1.0.0.0 and add release notes ([#20](https://github.com/opensearch-project/dashboards-visualizations/pull/20))

### OpenSearch Migration
* Add release notes for version 1.0.0.0-rc1 ([#13](https://github.com/opensearch-project/dashboards-visualizations/pull/13))
* Update version to rc1 ([#12](https://github.com/opensearch-project/dashboards-visualizations/pull/12))
* Update documentation link to opensearch ([#11](https://github.com/opensearch-project/dashboards-visualizations/pull/11))
* Update issue template with multiple labels ([#8](https://github.com/opensearch-project/dashboards-visualizations/pull/8))
* Rename artifacts to follow camel case ([#7](https://github.com/opensearch-project/dashboards-visualizations/pull/7))