diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index 9dc5842..0ee3851 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -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: diff --git a/.github/workflows/test-and-build-workflow.yml b/.github/workflows/test-and-build-workflow.yml index ae2a2ec..8a18874 100644 --- a/.github/workflows/test-and-build-workflow.yml +++ b/.github/workflows/test-and-build-workflow.yml @@ -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: @@ -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 diff --git a/gantt-chart/opensearch_dashboards.json b/gantt-chart/opensearch_dashboards.json index 5722aab..17658d5 100644 --- a/gantt-chart/opensearch_dashboards.json +++ b/gantt-chart/opensearch_dashboards.json @@ -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" diff --git a/gantt-chart/package.json b/gantt-chart/package.json index 5a35f18..0803b4a 100644 --- a/gantt-chart/package.json +++ b/gantt-chart/package.json @@ -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": { @@ -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" } } diff --git a/release-notes/opensearch-dashboards-visualizations.release-notes-1.0.0.0.md b/release-notes/opensearch-dashboards-visualizations.release-notes-1.0.0.0.md new file mode 100644 index 0000000..6df56ac --- /dev/null +++ b/release-notes/opensearch-dashboards-visualizations.release-notes-1.0.0.0.md @@ -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))