forked from opensearch-project/dashboards-maps
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'opensearch-project:main' into main
- Loading branch information
Showing
123 changed files
with
8,183 additions
and
1,572 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams | ||
* @opensearch-project/dashboards-maps | ||
# This should match the list in MAINTAINERS.md. | ||
* @heemin32 @navneet1v @VijayanB @vamshin @jmazanec15 @naveentatikonda @junqiu-lei @martin-gaievski |
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,19 @@ | ||
name: Apply 'untriaged' label during issue lifecycle | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, transferred] | ||
|
||
jobs: | ||
apply-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['untriaged'] | ||
}) |
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,28 @@ | ||
name: Releases | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: GitHub App token | ||
id: github_app_token | ||
uses: tibdex/[email protected] | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
installation_id: 22958780 | ||
- name: Get tag | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
github_token: ${{ steps.github_app_token.outputs.token }} | ||
bodyFile: release-notes/opensearch-dashboards-maps.release-notes-${{steps.tag.outputs.tag}}.md |
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 @@ | ||
name: "Changelog Verifier" | ||
on: | ||
pull_request: | ||
types: [opened, edited, review_requested, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
# Enforces the update of a changelog file on every pull request | ||
verify-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
skipLabels: "autocut, skip-changelog" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,7 @@ node_modules/ | |
target/ | ||
build/ | ||
coverage/ | ||
cypress/videos/ | ||
cypress/screenshots/ | ||
yarn-error.log | ||
.DS_Store |
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,30 @@ | ||
# CHANGELOG | ||
All notable changes to this project are documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on how to add changelog entries. | ||
|
||
## [Unreleased 3.0](https://github.com/opensearch-project/dashboards-maps/compare/2.x...HEAD) | ||
### Features | ||
### Enhancements | ||
### Bug Fixes | ||
### Infrastructure | ||
### Documentation | ||
### Maintenance | ||
### Refactoring | ||
|
||
## [Unreleased 2.x](https://github.com/opensearch-project/dashboards-maps/compare/2.9...2.x) | ||
### Features | ||
* Allow filtering geo_shape fields around map extent ([#452](https://github.com/opensearch-project/dashboards-maps/pull/452)) | ||
* Support dark mode in maps-dashboards([#455](https://github.com/opensearch-project/dashboards-maps/pull/455)) | ||
|
||
### Enhancements | ||
|
||
### Bug Fixes | ||
|
||
### Infrastructure | ||
|
||
### Documentation | ||
|
||
### Maintenance | ||
|
||
### Refactoring |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,18 @@ | |
|
||
So you want to contribute code to this project? Excellent! We're glad you're here. Here's what you need to do. | ||
|
||
- [Forking and Cloning](#forking-and-cloning) | ||
- [Forking](#forking) | ||
- [Install Prerequisites](#install-prerequisites) | ||
- [Setup](#setup) | ||
- [Run](#run) | ||
- [Build](#build) | ||
- [Test](#test) | ||
- [Submitting Changes](#submitting-changes) | ||
- [Backports](#backports) | ||
|
||
### Forking and Cloning | ||
### Forking | ||
|
||
Fork this repository on GitHub, and clone locally with `git clone`. | ||
Fork the repository on GitHub. | ||
|
||
### Install Prerequisites | ||
|
||
|
@@ -21,50 +22,61 @@ You will need to install [node.js](https://nodejs.org/en/), [nvm](https://github | |
|
||
### Setup | ||
|
||
1. Download the OpenSearch Dashboards source code for the [version specified in package.json](./src/plugins/custom_import_map/package.json#L3) you want to set up. | ||
2. Change your node version to the version specified in `.node-version` inside the OpenSearch Dashboards root directory. | ||
3. Create a `plugins` directory inside the OpenSearch Dashboards source code directory, if `plugins` directory doesn't exist. | ||
4. cd into `plugins` directory in the OpenSearch Dashboards source code directory. | ||
5. Check out this package from version control into the `plugins` directory. | ||
```bash | ||
git clone [email protected]:opensearch-project/dashboards-maps.git plugins --no-checkout | ||
cd plugins | ||
echo 'src/plugins/custom_import_map/*' >> .git/info/sparse-checkout | ||
git config core.sparseCheckout true | ||
git checkout main | ||
``` | ||
6. Run `yarn osd bootstrap` inside `OpenSearch-Dashboards/plugins/src/plugins/custom_import_map`. | ||
1. Download OpenSearch [Geospatial](https://github.com/opensearch-project/geospatial) plugin, which requires same version with OpenSearch-Dashboard and dashboards-maps plugin. | ||
2. Run `./gradlew run` under Geospatial plugin root path to start OpenSearch cluster. | ||
3. Download the OpenSearch Dashboards source code for the version specified in package.json you want to set up. | ||
4. Change your node version by `nvm use <version>`to the version specified in `.node-version` inside the OpenSearch Dashboards root directory. | ||
5. Create a `plugins` directory inside the OpenSearch Dashboards source code directory, if `plugins` directory doesn't exist. | ||
6. cd into `plugins` directory in the OpenSearch Dashboards source code directory. | ||
7. Check out this package from version control into the `plugins` directory. | ||
8. Run `yarn osd bootstrap` inside `OpenSearch-Dashboards/plugins/dashboards-maps` folder. | ||
|
||
Ultimately, your directory structure should look like this: | ||
|
||
```md | ||
. | ||
├── OpenSearch-Dashboards | ||
│ └── plugins | ||
│ └── src/plugins/custom_import_map | ||
│ ├── plugins | ||
│ │ └── dashboards-maps | ||
``` | ||
|
||
### Run | ||
|
||
From OpenSearch-Dashbaords repo (root folder), run the following command - | ||
- `yarn start` | ||
From OpenSearch-Dashboards repo (root folder), the following commands start OpenSearch Dashboards and includes this plugin. | ||
|
||
``` | ||
yarn osd bootstrap | ||
yarn start --no-base-path | ||
``` | ||
|
||
OpenSearch Dashboards will be available on `localhost:5601`. | ||
|
||
### Build | ||
|
||
Starts OpenSearch Dashboards and includes this plugin. OpenSearch Dashboards will be available on `localhost:5601`. | ||
To build the plugin's distributable zip simply run `yarn build`. | ||
|
||
Example output: ./build/customImportMapDashboards-1.0.0.0.zip | ||
|
||
### Test | ||
|
||
From custom_import_map folder running the following command runs the plugin unit tests - | ||
From dashboards-maps folder running the following command runs the plugin unit tests: | ||
|
||
#### Unit test | ||
``` | ||
yarn test:jest | ||
``` | ||
|
||
`yarn test:jest` | ||
#### Integration Tests | ||
Integration tests for this plugin are written using the Cypress test framework. | ||
``` | ||
yarn run cypress run | ||
``` | ||
|
||
### Submitting Changes | ||
|
||
See [CONTRIBUTING](CONTRIBUTING.md). | ||
|
||
### Backports | ||
|
||
The Github workflow in [`backport.yml`](.github/workflows/backport.yml) creates backport PRs automatically when the original PR | ||
with an appropriate label `backport <backport-branch-name>` is merged to main with the backport workflow run successfully on the | ||
PR. For example, if a PR on main needs to be backported to `1.x` branch, add a label `backport 1.x` to the PR and make sure the | ||
The GitHub backport workflow creates backport PRs automatically for PRs with label `backport <backport-branch-name>`. Label should be attached to the original PR, backport workflow starts when original PR merged to main branch. For example, if a PR on main needs to be backported to `1.x` branch, add a label `backport 1.x` to the PR and make sure the | ||
backport workflow runs on the PR along with other checks. Once this PR is merged to main, the workflow will create a backport PR | ||
to the `1.x` branch. | ||
to the `1.x` branch. |
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
Oops, something went wrong.