Skip to content

Commit 7bcd53a

Browse files
author
Jason Rogers
committed
Revert "[STUD-490] add cluster api support (#236)"
This reverts commit ac16734.
1 parent 00358b0 commit 7bcd53a

11 files changed

Lines changed: 4 additions & 216 deletions

File tree

.circleci/cluster.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

.circleci/docker-compose.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ node_modules/
55
dist/**
66
.vscode/
77
.rpt2_cache/
8-
stardog-license-key.bin
8+

README.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ In order to contribute changes, all test cases must pass. With the Stardog serve
5353
npm test
5454
```
5555

56-
To test the cluster commands you will need to first start a Stardog cluster then run the cluster suite. The easiest way to do this is to run docker-compose to start a cluster:
57-
58-
```bash
59-
docker-compose -f .circleci/docker-compose.yml up
60-
```
61-
62-
Then run the cluster test suite in `test/cluster`:
63-
64-
```bash
65-
npm run test:cluster
66-
```
67-
6856
### Contributing
6957

7058
Fork, clone and develop, write or amend tests, and then open a PR. All PRs go against "master". This project uses [prettier](https://github.com/prettier/prettier) on file commit, so don't worry about style as it'll just get rewritten when you commit your changes.
@@ -2107,24 +2095,3 @@ Expects the following parameters:
21072095

21082096
Returns [`Promise<HTTP.Body>`](#body)
21092097

2110-
## <a name="cluster">cluster</a>
2111-
2112-
#### <a name="shutdown">`cluster.info(conn)`</a>
2113-
2114-
Retrieves basic information about a Stardog cluster.
2115-
2116-
Expects the following parameters:
2117-
2118-
- conn ([`Connection`](#connection))
2119-
2120-
Returns [`Promise<HTTP.Body>`](#body)
2121-
2122-
#### <a name="status">`cluster.status(conn)`</a>
2123-
2124-
Retrieves detailed status information about a Stardog cluster.
2125-
2126-
Expects the following parameters:
2127-
2128-
- conn ([`Connection`](#connection))
2129-
2130-
Returns [`Promise<HTTP.Body>`](#body)

lib/cluster.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

lib/index.d.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,23 +1340,6 @@ declare namespace Stardog {
13401340
*/
13411341
function getAll(conn: Connection, params?: object): Promise<HTTP.Body>
13421342
}
1343-
1344-
/** Stardog HTTP cluster actions. */
1345-
export namespace cluster {
1346-
/**
1347-
* Retrieves basic information about a Stardog cluster.
1348-
*
1349-
* @param {Connection} conn the Stardog server connection
1350-
*/
1351-
function info(conn: Connection): Promise<HTTP.Body>;
1352-
1353-
/**
1354-
* Retrieves detailed status information about a Stardog cluster.
1355-
*
1356-
* @param {Connection} conn the Stardog server connection
1357-
*/
1358-
function status(conn: Connection): Promise<HTTP.Body>;
1359-
}
13601343
}
13611344

13621345
// No idea why I need this, but this is what removes the extra level of nesting

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const Stardog = {
66
query: require('./query'),
77
user: require('./user'),
88
server: require('./server'),
9-
cluster: require('./cluster'),
109
virtualGraphs: require('./virtualGraphs'),
1110
storedFunctions: require('./storedFunctions'),
1211
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"build": "node scripts/build",
116116
"docs": "node scripts/docs",
117117
"test": "eslint '{lib,test}/**/*.js' --fix && jest test/*.spec.js --verbose -i",
118-
"test:cluster": "jest test/cluster/*.spec.js --verbose -i",
119118
"precommit": "lint-staged",
120119
"format": "prettier '{lib,test}/**/*.js' --single-quote --trailing-comma es5 --write",
121120
"version": "mdchangelog --remote stardog-union/stardog.js --no-prologue --order-milestones semver --order-issues closed_at --overwrite --no-orphan-issues && npm run docs && git add README.md CHANGELOG.md",

test/cluster/clusterInfo.spec.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

test/cluster/clusterStatus.spec.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)