Skip to content

Commit

Permalink
[frontend/api/doc] Fix versions and migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Dec 6, 2019
1 parent fe502c6 commit 565dcda
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions opencti-documentation/docs/clients/python/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ from pycti import OpenCTIApiClient
opencti_api_client = OpenCTIApiClient(api_url, api_token, log_level, ssl_verify)
```

| Argument | Type | Description |
| ------------------------ | ------------------ | --------------------------------------------------------------------|
| Argument | Type | Description |
| -------------------------- | ------------------ | --------------------------------------------------------------------|
| api_url (*required*) | String | The URL of the OpenCTI instance |
| api_token (*required*) | String | The OpenCTI token |
| log_level (*optional*) | String | Log level, could be 'debug', 'info', 'warning' or 'error' |
Expand Down
2 changes: 1 addition & 1 deletion opencti-documentation/docs/development/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: Development environment
## Prerequisites

- Docker
- Node.JS (>= 10)
- Node.JS (>= 12)
- Python (>= 3)
- Yarn (>= 1.16)

Expand Down
6 changes: 3 additions & 3 deletions opencti-documentation/docs/installation/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ sidebar_label: Manual deployment

## Prerequisites

- Node.JS (>= 10)
- Grakn (>= 1.5.78
- Node.JS (>= 12)
- Grakn (>= 1.5.9)
- Redis (>= 3.0)
- ElasticSearch (>= 7.x)
- ElasticSearch (>= 7.5)
- Minio (>= 20191012)
- RabbitMQ (>= 3.7)

Expand Down
4 changes: 2 additions & 2 deletions opencti-platform/opencti-front/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencti-front",
"version": "2.0.2",
"version": "2.1.1",
"author": "Luatix",
"license": "AGPL-3.0-or-later",
"dependencies": {
Expand Down Expand Up @@ -84,7 +84,7 @@
"**/lodash": "4.17.15"
},
"engines": {
"node": ">= 10.*"
"node": ">= 12.*"
},
"scripts": {
"start": "yarn relay && react-app-rewired start",
Expand Down
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencti-graphql",
"version": "2.1.0",
"version": "2.1.1",
"main": "src/server.js",
"author": "Luatix",
"license": "AGPL-3.0-or-later",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module.exports.up = async next => {
wTx.tx.query(`match $r isa stix_relation; not {$r ($x, $y) isa stix_relation;}; delete;`);
});
logger.info(`[MIGRATION] reindex > Delete orphan stix_relation_embedded`);
await executeWrite(wTx => {
wTx.tx.query(`match $r isa stix_relation_embedded; not {$r ($x, $y) isa stix_relation_embedded;}; delete;`);
});
} catch (err) {
logger.info(`[MIGRATION] reindex > Error during deleting orphan relations (${err}), try to index...`);
}
Expand Down

0 comments on commit 565dcda

Please sign in to comment.