@opensearch-project/opensearch 3.0.0-beta.4 → 3.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/api/cat/_api.js +24 -26
- package/api/cluster/_api.js +21 -23
- package/api/danglingIndices/_api.js +3 -5
- package/api/http/_api.js +9 -11
- package/api/indices/_api.js +48 -50
- package/api/ingest/_api.js +5 -7
- package/api/knn/_api.js +6 -8
- package/api/ml/_api.js +7 -9
- package/api/nodes/_api.js +5 -7
- package/api/notifications/_api.js +9 -11
- package/api/ppl/_api.js +4 -6
- package/api/remoteStore/_api.js +1 -3
- package/api/rollups/_api.js +6 -8
- package/api/searchPipeline/_api.js +3 -5
- package/api/security/_api.js +74 -76
- package/api/snapshot/_api.js +11 -13
- package/api/sql/_api.js +6 -8
- package/api/tasks/_api.js +3 -5
- package/api/transforms/_api.js +8 -10
- package/api/utils.js +6 -7
- package/lib/OpenSearchAPI.d.ts +1403 -0
- package/lib/OpenSearchAPI.js +117 -0
- package/package.json +5 -1
- package/.dockerignore +0 -5
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -34
- package/.prettierrc.json +0 -5
- package/.whitesource +0 -15
- package/ADMINS.md +0 -16
- package/COMPATIBILITY.md +0 -13
- package/DEVELOPER_GUIDE.md +0 -127
- package/MAINTAINERS.md +0 -23
- package/Makefile +0 -17
- package/RELEASING.md +0 -41
- package/SECURITY.md +0 -3
- package/USER_GUIDE.md +0 -316
- package/codecov.yml +0 -14
- package/guides/advanced_index_actions.md +0 -92
- package/guides/bulk.md +0 -126
- package/guides/document_lifecycle.md +0 -162
- package/guides/index_lifecycle.md +0 -142
- package/guides/index_template.md +0 -228
- package/guides/json.md +0 -53
- package/guides/msearch.md +0 -56
- package/guides/search.md +0 -203
- package/jenkins/release.JenkinsFile +0 -11
- package/samples/README.md +0 -17
- package/samples/bulk.js +0 -91
- package/samples/json.js +0 -75
- package/samples/msearch.js +0 -131
- package/samples/rollups.js +0 -139
- package/samples/search.js +0 -155
- package/samples/transforms.ts +0 -146
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* This file was generated from OpenSearch API Spec. Do not edit it
|
|
12
|
+
* manually. If you want to make changes, either update the spec or
|
|
13
|
+
* the API generator.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
'use strict'
|
|
17
|
+
|
|
18
|
+
const { kConfigErr } = require('../api/utils')
|
|
19
|
+
const kApiModules = Symbol('api modules')
|
|
20
|
+
|
|
21
|
+
class OpenSearchAPI {
|
|
22
|
+
constructor (opts) {
|
|
23
|
+
this[kConfigErr] = opts.ConfigurationError
|
|
24
|
+
this[kApiModules] = {
|
|
25
|
+
cat: new(require('../api/cat/_api'))(this),
|
|
26
|
+
cluster: new(require('../api/cluster/_api'))(this),
|
|
27
|
+
danglingIndices: new(require('../api/danglingIndices/_api'))(this),
|
|
28
|
+
http: new(require('../api/http/_api'))(this),
|
|
29
|
+
indices: new(require('../api/indices/_api'))(this),
|
|
30
|
+
ingest: new(require('../api/ingest/_api'))(this),
|
|
31
|
+
knn: new(require('../api/knn/_api'))(this),
|
|
32
|
+
ml: new(require('../api/ml/_api'))(this),
|
|
33
|
+
nodes: new(require('../api/nodes/_api'))(this),
|
|
34
|
+
notifications: new(require('../api/notifications/_api'))(this),
|
|
35
|
+
ppl: new(require('../api/ppl/_api'))(this),
|
|
36
|
+
remoteStore: new(require('../api/remoteStore/_api'))(this),
|
|
37
|
+
rollups: new(require('../api/rollups/_api'))(this),
|
|
38
|
+
searchPipeline: new(require('../api/searchPipeline/_api'))(this),
|
|
39
|
+
security: new(require('../api/security/_api'))(this),
|
|
40
|
+
snapshot: new(require('../api/snapshot/_api'))(this),
|
|
41
|
+
sql: new(require('../api/sql/_api'))(this),
|
|
42
|
+
tasks: new(require('../api/tasks/_api'))(this),
|
|
43
|
+
transforms: new(require('../api/transforms/_api'))(this),
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Setup Root API Functions
|
|
47
|
+
/** @namespace API-Core */
|
|
48
|
+
const cache = {}
|
|
49
|
+
this.bulk = require('../api/_core/bulk').bind(this)
|
|
50
|
+
this.clearScroll = require('../api/_core/clearScroll').bind(this)
|
|
51
|
+
this.count = require('../api/_core/count').bind(this)
|
|
52
|
+
this.create = require('../api/_core/create').bind(this)
|
|
53
|
+
this.createPit = require('../api/_core/createPit').bind(this)
|
|
54
|
+
this.delete = require('../api/_core/delete').bind(this)
|
|
55
|
+
this.deleteAllPits = require('../api/_core/deleteAllPits').bind(this)
|
|
56
|
+
this.deleteByQuery = require('../api/_core/deleteByQuery').bind(this)
|
|
57
|
+
this.deleteByQueryRethrottle = require('../api/_core/deleteByQueryRethrottle').bind(this)
|
|
58
|
+
this.deletePit = require('../api/_core/deletePit').bind(this)
|
|
59
|
+
this.deleteScript = require('../api/_core/deleteScript').bind(this)
|
|
60
|
+
this.exists = require('../api/_core/exists').bind(this)
|
|
61
|
+
this.existsSource = require('../api/_core/existsSource').bind(this)
|
|
62
|
+
this.explain = require('../api/_core/explain').bind(this)
|
|
63
|
+
this.fieldCaps = require('../api/_core/fieldCaps').bind(this)
|
|
64
|
+
this.get = require('../api/_core/get').bind(this)
|
|
65
|
+
this.getAllPits = require('../api/_core/getAllPits').bind(this)
|
|
66
|
+
this.getScript = require('../api/_core/getScript').bind(this)
|
|
67
|
+
this.getScriptContext = require('../api/_core/getScriptContext').bind(this)
|
|
68
|
+
this.getScriptLanguages = require('../api/_core/getScriptLanguages').bind(this)
|
|
69
|
+
this.getSource = require('../api/_core/getSource').bind(this)
|
|
70
|
+
this.index = require('../api/_core/index').bind(this)
|
|
71
|
+
this.info = require('../api/_core/info').bind(this)
|
|
72
|
+
this.mget = require('../api/_core/mget').bind(this)
|
|
73
|
+
this.msearch = require('../api/_core/msearch').bind(this)
|
|
74
|
+
this.msearchTemplate = require('../api/_core/msearchTemplate').bind(this)
|
|
75
|
+
this.mtermvectors = require('../api/_core/mtermvectors').bind(this)
|
|
76
|
+
this.ping = require('../api/_core/ping').bind(this)
|
|
77
|
+
this.putScript = require('../api/_core/putScript').bind(this)
|
|
78
|
+
this.rankEval = require('../api/_core/rankEval').bind(this)
|
|
79
|
+
this.reindex = require('../api/_core/reindex').bind(this)
|
|
80
|
+
this.reindexRethrottle = require('../api/_core/reindexRethrottle').bind(this)
|
|
81
|
+
this.renderSearchTemplate = require('../api/_core/renderSearchTemplate').bind(this)
|
|
82
|
+
this.scriptsPainlessExecute = require('../api/_core/scriptsPainlessExecute').bind(this)
|
|
83
|
+
this.scroll = require('../api/_core/scroll').bind(this)
|
|
84
|
+
this.search = require('../api/_core/search').bind(this)
|
|
85
|
+
this.searchShards = require('../api/_core/searchShards').bind(this)
|
|
86
|
+
this.searchTemplate = require('../api/_core/searchTemplate').bind(this)
|
|
87
|
+
this.termvectors = require('../api/_core/termvectors').bind(this)
|
|
88
|
+
this.update = require('../api/_core/update').bind(this)
|
|
89
|
+
this.updateByQuery = require('../api/_core/updateByQuery').bind(this)
|
|
90
|
+
this.updateByQueryRethrottle = require('../api/_core/updateByQueryRethrottle').bind(this)
|
|
91
|
+
|
|
92
|
+
// Setup API Modules
|
|
93
|
+
Object.defineProperties(this, {
|
|
94
|
+
cat: { get() { return this[kApiModules].cat } },
|
|
95
|
+
cluster: { get() { return this[kApiModules].cluster } },
|
|
96
|
+
danglingIndices: { get() { return this[kApiModules].danglingIndices } },
|
|
97
|
+
http: { get() { return this[kApiModules].http } },
|
|
98
|
+
indices: { get() { return this[kApiModules].indices } },
|
|
99
|
+
ingest: { get() { return this[kApiModules].ingest } },
|
|
100
|
+
knn: { get() { return this[kApiModules].knn } },
|
|
101
|
+
ml: { get() { return this[kApiModules].ml } },
|
|
102
|
+
nodes: { get() { return this[kApiModules].nodes } },
|
|
103
|
+
notifications: { get() { return this[kApiModules].notifications } },
|
|
104
|
+
ppl: { get() { return this[kApiModules].ppl } },
|
|
105
|
+
remoteStore: { get() { return this[kApiModules].remoteStore } },
|
|
106
|
+
rollups: { get() { return this[kApiModules].rollups } },
|
|
107
|
+
searchPipeline: { get() { return this[kApiModules].searchPipeline } },
|
|
108
|
+
security: { get() { return this[kApiModules].security } },
|
|
109
|
+
snapshot: { get() { return this[kApiModules].snapshot } },
|
|
110
|
+
sql: { get() { return this[kApiModules].sql } },
|
|
111
|
+
tasks: { get() { return this[kApiModules].tasks } },
|
|
112
|
+
transforms: { get() { return this[kApiModules].transforms } },
|
|
113
|
+
})
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
module.exports = OpenSearchAPI;
|
package/package.json
CHANGED
|
@@ -26,8 +26,12 @@
|
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
+
"files": [
|
|
30
|
+
"api/", "lib/",
|
|
31
|
+
"index.d.ts", "index.js", "index.mjs",
|
|
32
|
+
"README.md", "LICENSE.txt"],
|
|
29
33
|
"homepage": "https://www.opensearch.org/",
|
|
30
|
-
"version": "3.0.0-beta.
|
|
34
|
+
"version": "3.0.0-beta.6",
|
|
31
35
|
"versionCanary": "7.10.0-canary.6",
|
|
32
36
|
"keywords": [
|
|
33
37
|
"opensearch",
|
package/.dockerignore
DELETED
package/.eslintignore
DELETED
package/.eslintrc.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"es6": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"prettier"
|
|
9
|
-
],
|
|
10
|
-
"parser": "@babel/eslint-parser",
|
|
11
|
-
"parserOptions": {
|
|
12
|
-
"requireConfigFile": false
|
|
13
|
-
},
|
|
14
|
-
"plugins": [
|
|
15
|
-
"prettier"
|
|
16
|
-
],
|
|
17
|
-
"rules": {
|
|
18
|
-
"prettier/prettier": [
|
|
19
|
-
"error",
|
|
20
|
-
{
|
|
21
|
-
"endOfLine": "auto"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
/*temporarily turn off no-dupe-else-if, open an issue to track https://github.com/opensearch-project/opensearch-js/issues/240*/
|
|
25
|
-
"no-dupe-else-if": "off",
|
|
26
|
-
"no-unused-vars": [
|
|
27
|
-
"error",
|
|
28
|
-
{
|
|
29
|
-
"varsIgnorePattern": "^_.*",
|
|
30
|
-
"argsIgnorePattern": "^_.*"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
}
|
package/.prettierrc.json
DELETED
package/.whitesource
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"scanSettings": {
|
|
3
|
-
"configMode": "AUTO",
|
|
4
|
-
"configExternalURL": "",
|
|
5
|
-
"projectToken": "",
|
|
6
|
-
"baseBranches": []
|
|
7
|
-
},
|
|
8
|
-
"checkRunSettings": {
|
|
9
|
-
"vulnerableCheckRunConclusionLevel": "failure",
|
|
10
|
-
"displayMode": "diff"
|
|
11
|
-
},
|
|
12
|
-
"issueSettings": {
|
|
13
|
-
"minSeverityLevel": "LOW"
|
|
14
|
-
}
|
|
15
|
-
}
|
package/ADMINS.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# OpenSearch JavaScript Client Admins
|
|
2
|
-
|
|
3
|
-
## Current Admins
|
|
4
|
-
|
|
5
|
-
| Admin | GitHub ID | Affiliation |
|
|
6
|
-
|-----------------------|-----------------------------------------------|-------------|
|
|
7
|
-
| Anan Zhuang | [ananzh](https://github.com/ananzh) | Amazon |
|
|
8
|
-
| Bishoy Boktor | [boktorbb](https://github.com/boktorbb) | Amazon |
|
|
9
|
-
| Charlotte | [CEHENKLE](https://github.com/CEHENKLE) | Amazon |
|
|
10
|
-
| Henri Yandell | [hyandell](https://github.com/hyandell) | Amazon |
|
|
11
|
-
| Kawika (Rocky) Avilla | [kavilla](https://github.com/kavilla) | Amazon |
|
|
12
|
-
| Mihir Soni | [mihirsoni](https://github.com/mihirsoni) | Amazon |
|
|
13
|
-
| Sean Neumann | [seanneumann](https://github.com/seanneumann) | Amazon |
|
|
14
|
-
|
|
15
|
-
[This document](https://github.com/opensearch-project/.github/blob/main/ADMINS.md)
|
|
16
|
-
explains what an admin's responsibilities are.
|
package/COMPATIBILITY.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Compatibility with OpenSearch
|
|
2
|
-
|
|
3
|
-
The below matrix shows the compatibility of the [`opensearch-js`](https://www.npmjs.com/package/@opensearch-project/opensearch) with versions of [`OpenSearch`](https://opensearch.org/downloads.html#opensearch). In the vast majority of cases, a minor version upgrade of the OpenSearch Server does not affect how your application's existing features interact with the cluster via the JavaScript client. However, such an upgrade can introduce new endpoints that your current version of the client does not support. In this case, you must upgrade the client to the version shown in the table below (or higher) to use the new endpoints.
|
|
4
|
-
|
|
5
|
-
If your Server Version is higher than those listed in the table below, you should use the newest client. If the newest client still does not support the endpoint you need, please open an issue and let us know.
|
|
6
|
-
|
|
7
|
-
| Server Version | Client Version |
|
|
8
|
-
|----------------|----------------|
|
|
9
|
-
| 1.x | 1.x |
|
|
10
|
-
| 2.x | 2.x |
|
|
11
|
-
|
|
12
|
-
## Upgrading
|
|
13
|
-
Major versions of OpenSearch introduce breaking changes that require careful upgrades of the client. While `opensearch-js` 2.x works against the latest OpenSearch 1.x, certain deprecated features removed in OpenSearch 2.0 have also been removed from the client. Please refer to the [OpenSearch documentation](https://opensearch.org/docs/latest/clients/index/) for more information.
|
package/DEVELOPER_GUIDE.md
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
- [Developer Guide](#developer-guide)
|
|
2
|
-
- [Getting Started](#getting-started)
|
|
3
|
-
- [Git Clone OpenSearch Node.js Client Repository](#git-clone-opensearch-nodejs-client-repository)
|
|
4
|
-
- [Install Prerequisites](#install-prerequisites)
|
|
5
|
-
- [Node.js](#nodejs)
|
|
6
|
-
- [Yarn](#yarn)
|
|
7
|
-
- [Docker](#docker)
|
|
8
|
-
- [Installing Dependencies](#installing-dependencies)
|
|
9
|
-
- [Using ESLint](#using-eslint)
|
|
10
|
-
- [Unit Testing](#unit-testing)
|
|
11
|
-
- [Integration Testing](#integration-testing)
|
|
12
|
-
- [Execute integration tests from your terminal](#execute-integration-tests-from-your-terminal)
|
|
13
|
-
|
|
14
|
-
# Developer Guide
|
|
15
|
-
|
|
16
|
-
So you want to contribute code to the OpenSearch Node.js Client? Excellent! We're glad you're here. Here's what you need to do:
|
|
17
|
-
|
|
18
|
-
## Getting Started
|
|
19
|
-
|
|
20
|
-
### Git Clone OpenSearch Node.js Client Repository
|
|
21
|
-
|
|
22
|
-
Fork [opensearch-project/opensearch-js](https://github.com/opensearch-project/opensearch-js) and clone locally,
|
|
23
|
-
e.g. `git clone https://github.com/[your username]/opensearch-js.git`.
|
|
24
|
-
|
|
25
|
-
### Install Prerequisites
|
|
26
|
-
|
|
27
|
-
#### Node.js
|
|
28
|
-
|
|
29
|
-
The minimum supported version of Node.js is v10.
|
|
30
|
-
|
|
31
|
-
#### Yarn
|
|
32
|
-
|
|
33
|
-
This project uses yarn as it's package manager. You can use npm to install yarn:
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
npm install --global yarn
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
#### Docker
|
|
40
|
-
|
|
41
|
-
[Docker](https://docs.docker.com/install/) is required for building some OpenSearch artifacts and executing integration tests.
|
|
42
|
-
|
|
43
|
-
### Installing Dependencies
|
|
44
|
-
|
|
45
|
-
To install all the dependencies needed for this project, run
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
yarn install
|
|
49
|
-
```
|
|
50
|
-
There might be an issue on Windows OS:
|
|
51
|
-
```
|
|
52
|
-
yarn. ps1 cannot be loaded because running scripts is disabled on this system
|
|
53
|
-
```
|
|
54
|
-
If this occurs, open Windows PowerShell and run:
|
|
55
|
-
```
|
|
56
|
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
57
|
-
```
|
|
58
|
-
Agree to the changes.
|
|
59
|
-
Now you can run `yarn install`
|
|
60
|
-
If the problem persists, you can try to open Windows PowerShell as an administrator and run:
|
|
61
|
-
```
|
|
62
|
-
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Using ESLint
|
|
66
|
-
|
|
67
|
-
To do a ESLint check on the project, run:
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
yarn run lint
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
To let ESLint to fix errors in your code automatically, run:
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
yarn run lint:fix
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
This will instruct ESLint to try to fix as many issues as possible. The fixes are made to the actual files themselves and only the remaining unfixed issues are output.
|
|
80
|
-
|
|
81
|
-
Not all problems are fixable using this option, and some of them you will need to fix manually.
|
|
82
|
-
|
|
83
|
-
### Unit Testing
|
|
84
|
-
|
|
85
|
-
Go to your terminal and run:
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
cd folder-path
|
|
89
|
-
yarn run test:unit
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
To run a specific unit test, you can use the following jest command. `yarn test` will not work.
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
cd folder-path/to/test
|
|
96
|
-
jest TestName
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
If you don't have jest, you can install it via yarn
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
yarn global add jest-cli
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Integration Testing
|
|
106
|
-
|
|
107
|
-
In order to test opensearch-js client, you need a running OpenSearch cluster. You can use Docker to accomplish this.
|
|
108
|
-
The [Docker Compose file](.ci/opensearch/docker-compose.yml) supports the ability to run integration tests for the project in local environments.
|
|
109
|
-
If you have not installed docker-compose, you can install it from this [link](https://docs.docker.com/compose/install/).
|
|
110
|
-
|
|
111
|
-
#### Execute integration tests from your terminal
|
|
112
|
-
|
|
113
|
-
1. Run below command to start containers. By default, it will launch latest OpenSearch cluster.
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
cd folder-path/.ci/opensearch
|
|
117
|
-
docker-compose up
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
2. Run all integration tests.
|
|
121
|
-
```
|
|
122
|
-
yarn run test:integration:helpers
|
|
123
|
-
```
|
|
124
|
-
3. Stop and clean containers.
|
|
125
|
-
```
|
|
126
|
-
docker-compose down
|
|
127
|
-
```
|
package/MAINTAINERS.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
## Overview
|
|
2
|
-
|
|
3
|
-
This document contains a list of maintainers in this repo. See [opensearch-project/.github/RESPONSIBILITIES.md](https://github.com/opensearch-project/.github/blob/main/RESPONSIBILITIES.md#maintainer-responsibilities) that explains what the role of maintainer means, what maintainers do in this and other repos, and how they should be doing it. If you're interested in contributing, and becoming a maintainer, see [CONTRIBUTING](CONTRIBUTING.md).
|
|
4
|
-
|
|
5
|
-
## Current Maintainers
|
|
6
|
-
|
|
7
|
-
| Maintainer | GitHub ID | Affiliation |
|
|
8
|
-
|-----------------------|-----------------------------------------------|-------------|
|
|
9
|
-
| Anan Zhuang | [ananzh](https://github.com/ananzh) | Amazon |
|
|
10
|
-
| Kawika (Rocky) Avilla | [kavilla](https://github.com/kavilla) | Amazon |
|
|
11
|
-
| Daniel Doubrovkine | [dblock](https://github.com/dblock) | Amazon |
|
|
12
|
-
| Vacha Shah | [VachaShah](https://github.com/VachaShah) | Amazon |
|
|
13
|
-
| Theo Truong | [nhtruong](https://github.com/nhtruong) | Amazon |
|
|
14
|
-
| Harsha Vamsi Kalluri | [harshavamsi](https://github.com/harshavamsi) | Amazon |
|
|
15
|
-
| Timur Bolotov | [timursaurus](https://github.com/timursaurus) | |
|
|
16
|
-
|
|
17
|
-
## Emeritus
|
|
18
|
-
|
|
19
|
-
| Maintainer | GitHub ID | Affiliation |
|
|
20
|
-
|---------------|-----------------------------------------------|-------------|
|
|
21
|
-
| Bishoy Boktor | [boktorbb](https://github.com/boktorbb) | Amazon |
|
|
22
|
-
| Mihir Soni | [mihirsoni](https://github.com/mihirsoni) | Amazon |
|
|
23
|
-
| Sean Neumann | [seanneumann](https://github.com/seanneumann) | Amazon |
|
package/Makefile
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
cluster.opensearch.build:
|
|
2
|
-
docker-compose --project-directory .ci/opensearch build;
|
|
3
|
-
|
|
4
|
-
cluster.opensearch.start:
|
|
5
|
-
docker-compose --project-directory .ci/opensearch up -d ;
|
|
6
|
-
sleep 60;
|
|
7
|
-
|
|
8
|
-
cluster.opensearch.stop:
|
|
9
|
-
docker-compose --project-directory .ci/opensearch down ;
|
|
10
|
-
|
|
11
|
-
cluster.clean: ## Remove unused Docker volumes and networks
|
|
12
|
-
@printf "\033[2m→ Cleaning up Docker assets...\033[0m\n"
|
|
13
|
-
docker volume prune --force
|
|
14
|
-
docker network prune --force
|
|
15
|
-
docker system prune --volumes --force
|
|
16
|
-
|
|
17
|
-
.PHONY: cluster.opensearch.build cluster.opensearch.start cluster.opensearch.stop cluster.clean
|
package/RELEASING.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
- [Overview](#overview)
|
|
2
|
-
- [Branching](#branching)
|
|
3
|
-
- [Release Branching](#release-branching)
|
|
4
|
-
- [Feature Branches](#feature-branches)
|
|
5
|
-
- [Release Labels](#release-labels)
|
|
6
|
-
- [Releasing](#releasing)
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
This document explains the release strategy for artifacts in this organization.
|
|
11
|
-
|
|
12
|
-
## Branching
|
|
13
|
-
|
|
14
|
-
### Release Branching
|
|
15
|
-
|
|
16
|
-
Given the current major release of 1.0, projects in this organization maintain the following active branches.
|
|
17
|
-
|
|
18
|
-
- **main**: The next _major_ release. This is the branch where all merges take place and code moves fast.
|
|
19
|
-
- **1.x**: The next _minor_ release. Once a change is merged into `main`, decide whether to backport it to `1.x`.
|
|
20
|
-
- **1.0**: The _current_ release. In between minor releases, only hotfixes (e.g. security) are backported to `1.0`.
|
|
21
|
-
|
|
22
|
-
Label PRs with the next major version label (e.g. `2.0.0`) and merge changes into `main`. Label PRs that you believe need to be backported as `1.x` and `1.0`. Backport PRs by checking out the versioned branch, cherry-pick changes and open a PR against each target backport branch.
|
|
23
|
-
|
|
24
|
-
### Feature Branches
|
|
25
|
-
|
|
26
|
-
Do not creating branches in the upstream repo, use your fork, for the exception of long lasting feature branches that require active collaboration from multiple developers. Name feature branches `feature/<thing>`. Once the work is merged to `main`, please make sure to delete the feature branch.
|
|
27
|
-
|
|
28
|
-
## Release Labels
|
|
29
|
-
|
|
30
|
-
Repositories create consistent release labels, such as `v1.0.0`, `v1.1.0` and `v2.0.0`, as well as `patch` and `backport`. Use release labels to target an issue or a PR for a given release. See [MAINTAINERS](MAINTAINERS.md#triage-open-issues) for more information on triaging issues.
|
|
31
|
-
|
|
32
|
-
## Releasing
|
|
33
|
-
|
|
34
|
-
The release process is standard across repositories in this org and is run by a release manager volunteering from amongst [maintainers](MAINTAINERS.md).
|
|
35
|
-
|
|
36
|
-
1. Create a tag, e.g. v2.1.0, and push it to the GitHub repo.
|
|
37
|
-
1. The [release-drafter.yml](.github/workflows/release-drafter.yml) will be automatically kicked off and is responsible for drafting a new release on GitHub.
|
|
38
|
-
1. Before creating a draft release, this workflow creates a GitHub issue asking for approval from the [maintainers](MAINTAINERS.md). See sample [issue](https://github.com/gaiksaya/opensearch-js/issues/1). The maintainers need to approve in order to continue the workflow run.
|
|
39
|
-
1. This draft release triggers the [jenkins release workflow](https://build.ci.opensearch.org/job/opensearch-js-release/) as a result of which opensearch-js client is released on [npmjs](https://www.npmjs.com/package/@opensearch-project/opensearch).
|
|
40
|
-
1. Once the above release workflow is successful, the drafted release on GitHub is published automatically.
|
|
41
|
-
1. Increment "version" in package.json to the next patch release, e.g. v2.1.1. See [example](https://github.com/opensearch-project/opensearch-js/pull/318)
|
package/SECURITY.md
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
## Reporting a Vulnerability
|
|
2
|
-
|
|
3
|
-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email to aws-security@amazon.com. Please do **not** create a public GitHub issue.
|