Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 2.09 KB

DEVELOPER_GUIDE.md

File metadata and controls

47 lines (33 loc) · 2.09 KB

Developer Guide

So you want to contribute code to this project? Excellent! We're glad you're here. Here's what you need to do.

Setup

  1. Download OpenSearch for the version that matches the OpenSearch Dashboards version specified in opensearch_dashboards.json from opensearch.org.
  2. Download the OpenSearch Dashboards source code for the version specified in opensearch_dashboards.json you want to set up.
  3. Change your node version to the version specified in .node-version inside the OpenSearch Dashboards root directory.
  4. cd into OpenSearch-Dashboards and remove the plugins directory.
  5. Check out this package from version control as the plugins/dashboards-observability directory.
git clone https://github.com/opensearch-project/dashboards-observability plugins
git checkout main
  1. Run yarn osd bootstrap inside OpenSearch-Dashboards.

Ultimately, your directory structure should look like this:

.
├── OpenSearch-Dashboards
│   └── plugins
│       └── dashboards-observability

Build

To build the plugin's distributable zip simply run yarn build.

Example output: ./build/observability*.zip

Run

cd back to OpenSearch-Dashboards directory and run yarn start to start OpenSearch Dashboards including this plugin. OpenSearch Dashboards will be available on localhost:5601.

Submitting Changes

See CONTRIBUTING.

Backports

The Github workflow in 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 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.