Skip to content

Commit 3eefb5f

Browse files
committed
Improve docs & add release note
- Add release note for 2.3.0 - Add release section to docs - Rearrange docs a bit
1 parent 59dabb3 commit 3eefb5f

File tree

11 files changed

+82
-41
lines changed

11 files changed

+82
-41
lines changed

docs/SUMMARY.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
# Summary
22

3+
### Documentation
4+
35
* [Introduction](README.md)
46
* [Data sources](data-sources/index.md)
57
* [Neo4j - Bolt](data-sources/types/neo4j-bolt.md)
68
* [Console](console/index.md)
79
* [Log](console/log.md)
8-
* [Graph](console/graph/index.md)
9-
* [Canvas](console/graph/canvas.md)
10+
* [Graph](console/graph.md)
1011
* [Table](console/table.md)
1112
* [Parameters](console/parameters.md)
12-
* [Plan](console/plan.md)
1313
* [Cypher](cypher/index.md)
14-
* [Syntax](cypher/syntax.md)
14+
* [Plan](cypher/plan.md)
1515
* [Autocompletion](cypher/autocompletion.md)
1616
* [Refactoring](cypher/refactoring.md)
1717
* [Inspections](cypher/inspections.md)
1818
* [Language injections](cypher/language-injections.md)
19+
20+
### Releases
21+
22+
* [2.3.0](releases/2.3.0/index.md)

docs/console/graph/index.md renamed to docs/console/graph.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
### Canvas
44

5-
Detailed [more information](canvas.md) about canvas features.
5+
TODO
66

77
### Entity view
88

9+
TODO
10+
911
<!--
1012
Node information
1113
Relationship information

docs/console/graph/canvas.md

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

docs/cypher/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
## Execution
44

55
Queries can be executed either for Cypher file (in this case data source selection is required),
6-
or from data source editor. To open data source editor, right click on data source and choose `Open editor`.
6+
or from data source editor.
7+
To open data source editor, right click on data source and choose `Open editor`.
78

8-
Keyboard shortcut for query execution is *Ctrl + Enter* with the cursor on the query. Alternatively right click on
9-
the query statement, select `Graph Database` -> `Execute Query`.
9+
Keyboard shortcut for query execution is *Ctrl + Enter* with the cursor on the query.
10+
Alternatively right click on the query statement, select `Graph Database` -> `Execute Query`.
1011

1112
If query execution fails, an error hint is displayed.
1213
![plugin screenshot](../screenshots/error_hint.png "Error hint")
@@ -15,11 +16,13 @@ The hint disappears as soon as any user interaction like mouse movement takes pl
1516
Afterwards it is possible to view the error details in `Log` tab.
1617

1718
If parameters are needed for query execution, they can be provided in `Paramters` tab in JSON format.
18-
For instance, for query `MATCH (n) WHERE n.name = $name RETURN n`, parameter could look like `{"name": "Johan"}`.
19+
For instance, for query `MATCH (n) WHERE n.name = $name RETURN n`,
20+
parameter could look like `{"name": "Johan"}`.
1921

2022
![plugin screenshot](../screenshots/query_parameters_sample.png "Providing query parameters")
2123

2224
`Log` tab displays, what parameters where used for query execution.
25+
2326
<!--
2427
General information
2528
File type support

docs/cypher/inspections.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
### EXPLAIN warnings
44

55
Graph database plugin provides a functionality to automatically find any problems with your queries,
6-
using `EXPLAIN` queries. Then, all database notifications are displayed as warnings, highlighting problematic parts of
7-
query.
6+
using `EXPLAIN` queries.
7+
Then, all database notifications are displayed as warnings, highlighting problematic parts of query.
88

99
![explain warning screenshot](../screenshots/explain_warning.png)
1010

11-
Under the hood, IntelliJ platform launches inspection for a query without syntax errors, inspection prepends to the
12-
query an `EXPLAIN` keyword and executes it against the active data-source silently.
11+
Under the hood, IntelliJ platform launches inspection for a query without syntax errors,
12+
inspection prepends to the query an `EXPLAIN` keyword and executes it against the active
13+
data-source silently.
1314
After all results have been received, database notifications are displayed as warnings.
1415

15-
Inspection is enabled by default, but you can disable it at any time.
16+
Inspection is enabled by default, but you can disable it at any time.

docs/cypher/language-injections.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
TODO
44

5-
### Auto-injections
6-
7-
TODO
8-
95
<!--
106
Neo4j
117
Neo4j-ogm
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Console - Plan
22

3-
When any `EXPLAIN` or `PROFILE` queries are executed, plugin creates a closeable tab in console, which contains the plan
4-
of query, rendered as tree table.
3+
When any `EXPLAIN` or `PROFILE` queries are executed, plugin creates a closeable tab in console,
4+
which contains the plan of query, rendered as tree table.
55

66
![EXPLAIN plan](../screenshots/explain_plan.png)
77

88
The plan tab consists of label with an executed query, tree table with plan and label with metadata.
99
Note, that `PROFILE` plan table has more columns, because the query is actually executed.
1010

11-
![PROFILE plan](../screenshots/profile_plan.png)
11+
![PROFILE plan](../screenshots/profile_plan.png)

docs/cypher/syntax.md

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

docs/releases/2.3.0/index.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Release 2.3.0
2+
3+
### Overview
4+
5+
New:
6+
* Initial support for Cypher query parameters
7+
* Support for Cypher query EXPLAIN and PROFILE analysis
8+
* Cypher inspection: analyse queries using EXPLAIN
9+
10+
Improvements:
11+
* Query database for specific label, relationship type or property via context menu
12+
* Show error popup if query execution fails
13+
14+
Bugfixes:
15+
* Variable refactoring in Cypher is now performed in single query, rather than whole file
16+
* Syntax errors are now visible if query is highlighted with green border
17+
* Fixed canvas background in Graph view for Darcula theme
18+
19+
### New
20+
21+
#### Cypher query parameters
22+
23+
Support for Cypher query parameters has arrived!
24+
25+
To access this functionality open `Graph Database Console` and go to `Parameters` tab.
26+
There you can find editor where you can specify desired parameters,
27+
that will be automatically picked up on query execution and passed to a database.
28+
29+
![Query parameters support](../../gifs/2.3.0/params.gif)
30+
31+
#### Explore `EXPLAIN` and `PROFILE` result
32+
33+
If you will try to analyse query using `EXPLAIN` or `PROFILE` keywords you will
34+
see a new tab created in `Graph Database Console` with analysis result.
35+
36+
Tab contains:
37+
* Query that was executed
38+
* Query execution plan in a tree format
39+
* Information about Cypher planner, runtime and execution time
40+
41+
![Explore profile result](../../gifs/2.3.0/profile.gif)
42+
43+
#### Inspection - Analyse query using `EXPLAIN`
44+
45+
Cypher queries now will be automatically analysed using `EXPLAIN`.
46+
47+
In order to make this work you need to:
48+
* Write queries in Data Source editor
49+
* Have Neo4j running for this data source
50+
51+
![EXPLAIN analysis warning](../../gifs/2.3.0/warning.gif)

docs/releases/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Releases
2+
3+
* [Release 2.3.0](2.3.0/index.md)

platform/src/main/resources/graphdb/messages/GraphBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updater.notification=<br/>\
33
<b>New:</b><br/>\
44
- Initial support for Cypher query parameters<br/>\
55
- Support for Cypher query EXPLAIN and PROFILE analysis<br/>\
6-
- Inspection: analyse queries using EXPLAIN<br/>\
6+
- Cypher inspection: analyse queries using EXPLAIN<br/>\
77
<b>Improvements:</b><br/>\
88
- Query database for specific label, relationship type or property via context menu<br/>\
99
- Show error popup if query execution fails<br/>\

0 commit comments

Comments
 (0)