So you want to contribute code to this project? Excellent! We're glad you're here. Here's what you need to do.
Fork the repository on GitHub.
You will need to install node.js, nvm, and yarn in your environment to properly pull down dependencies to build and bootstrap the plugin.
- Download OpenSearch Geospatial plugin, which requires same version with OpenSearch-Dashboard and dashboards-maps plugin.
- Run
./gradlew run
under Geospatial plugin root path to start OpenSearch cluster. - Download the OpenSearch Dashboards source code for the version specified in package.json you want to set up.
- Change your node version by
nvm use <version>
to the version specified in.node-version
inside the OpenSearch Dashboards root directory. - Create a
plugins
directory inside the OpenSearch Dashboards source code directory, ifplugins
directory doesn't exist. - cd into
plugins
directory in the OpenSearch Dashboards source code directory. - Check out this package from version control into the
plugins
directory. - Run
yarn osd bootstrap
insideOpenSearch-Dashboards/plugins/dashboards-maps
folder.
Ultimately, your directory structure should look like this:
├── OpenSearch-Dashboards
│ ├── plugins
│ │ └── dashboards-maps
From OpenSearch-Dashboards repo (root folder), the following commands start OpenSearch Dashboards and includes this plugin.
yarn osd bootstrap --single-version=loose
yarn start --no-base-path
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
From dashboards-maps folder running the following command runs the plugin unit tests:
yarn test:jest
Integration tests for this plugin are written using the Cypress test framework.
yarn run cypress run
See CONTRIBUTING.
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.