Skip to content

Commit 781056b

Browse files
authored
Merge pull request #224 from neo4j-labs/develop
2.1.8 Release
2 parents 7f95e00 + a6a664c commit 781056b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+18027
-34108
lines changed

.github/workflows/develop-deployment.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: ${{ matrix.node-version }}
19+
- name: Creating Neo4j Container
20+
run: |
21+
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
22+
./scripts/docker-neo4j-initializer/docker-neo4j.sh
23+
sleep 30s
24+
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
25+
./scripts/docker-neo4j-initializer/start-movies-db.sh
1926
- run: rm -rf docs
2027
- run: yarn install
2128
- name: Cypress run
@@ -56,3 +63,23 @@ jobs:
5663
aws-region: us-west-1
5764
- run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
5865
- run: aws s3 rm s3://neodash-test.graphapp.io/ --recursive && aws s3 sync dist s3://neodash-test.graphapp.io/ --acl public-read
66+
deploy-gallery:
67+
runs-on: ubuntu-latest
68+
strategy:
69+
matrix:
70+
node-version: [18.x]
71+
steps:
72+
- uses: actions/checkout@v2
73+
- name: Use Node.js ${{ matrix.node-version }}
74+
uses: actions/setup-node@v1
75+
with:
76+
node-version: ${{ matrix.node-version }}
77+
- run: cd gallery && yarn install
78+
- run: cd gallery && CI=false yarn run build
79+
- name: Set AWS credentials
80+
uses: aws-actions/configure-aws-credentials@v1
81+
with:
82+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
83+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
84+
aws-region: us-west-1
85+
- run: aws s3 rm s3://neodash-gallery.graphapp.io/ --recursive && aws s3 sync gallery/build s3://neodash-gallery.graphapp.io/ --acl public-read

.github/workflows/develop-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20+
- name: Creating Neo4j Container
21+
run: |
22+
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
23+
./scripts/docker-neo4j-initializer/docker-neo4j.sh
24+
sleep 30s
25+
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
26+
./scripts/docker-neo4j-initializer/start-movies-db.sh
2027
- run: yarn install
2128
- name: Cypress run
2229
uses: cypress-io/github-action@v2

.github/workflows/master-deployment.yml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20+
- name: Creating Neo4j Container
21+
run:
22+
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
23+
./scripts/docker-neo4j-initializer/docker-neo4j.sh
24+
sleep 30s
25+
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
26+
./scripts/docker-neo4j-initializer/start-movies-db.sh
2027
- run: rm -rf docs
2128
- run: yarn install
2229
- name: Cypress run
@@ -25,29 +32,29 @@ jobs:
2532
build: yarn run build
2633
start: yarn run dev
2734
wait-on: 'http://localhost:3000'
28-
build-s3:
29-
needs: build-test
30-
runs-on: ubuntu-latest
31-
strategy:
32-
matrix:
33-
node-version: [18.x]
34-
steps:
35-
- uses: actions/checkout@v2
36-
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v1
38-
with:
39-
node-version: ${{ matrix.node-version }}
40-
- run: rm -rf docs
41-
- run: yarn install
42-
- run: yarn run build
43-
- name: Set AWS credentials
44-
uses: aws-actions/configure-aws-credentials@v1
45-
with:
46-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
47-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
48-
aws-region: us-west-1
49-
- run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
50-
- run: aws s3 rm s3://neodash.graphapp.io/ --recursive && aws s3 sync dist s3://neodash.graphapp.io/ --acl public-read
35+
# build-s3:
36+
# needs: build-test
37+
# runs-on: ubuntu-latest
38+
# strategy:
39+
# matrix:
40+
# node-version: [18.x]
41+
# steps:
42+
# - uses: actions/checkout@v2
43+
# - name: Use Node.js ${{ matrix.node-version }}
44+
# uses: actions/setup-node@v1
45+
# with:
46+
# node-version: ${{ matrix.node-version }}
47+
# - run: rm -rf docs
48+
# - run: yarn install
49+
# - run: yarn run build
50+
# - name: Set AWS credentials
51+
# uses: aws-actions/configure-aws-credentials@v1
52+
# with:
53+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
54+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
55+
# aws-region: us-west-1
56+
# - run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
57+
# - run: aws s3 rm s3://neodash.graphapp.io/ --recursive && aws s3 sync dist s3://neodash.graphapp.io/ --acl public-read
5158
build-docker:
5259
needs: build-test
5360
runs-on: ubuntu-latest
@@ -71,7 +78,7 @@ jobs:
7178
context: .
7279
file: ./Dockerfile
7380
push: true
74-
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.1.7
81+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.1.8
7582
build-npm:
7683
needs: build-test
7784
runs-on: ubuntu-latest

.github/workflows/master.test.yml renamed to .github/workflows/master-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20+
- name: Creating Neo4j Container
21+
run: |
22+
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
23+
./scripts/docker-neo4j-initializer/docker-neo4j.sh
24+
sleep 30s
25+
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
26+
./scripts/docker-neo4j-initializer/start-movies-db.sh
2027
- run: yarn install
2128
- name: Cypress run
2229
uses: cypress-io/github-action@v2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html/
3838
USER nginx
3939
EXPOSE 5005
4040
HEALTHCHECK cmd curl --fail http://localhost:5005 || exit 1
41-
LABEL version="2.1.7"
41+
LABEL version="2.1.8"

changelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## NeoDash 2.1.8
2+
New features:
3+
- Added the [Dashboard Gallery](https://neodash-gallery.graphapp.io), a live gallery of example NeoDash dashboards.
4+
- Added **Gauge Charts**, a contribution of the [BlueHound](https://github.com/zeronetworks/BlueHound) fork.
5+
- Updated testing pipeline to work as an independent procedure.
6+
- Added option to select a different Neo4j database for each report. ([#188](https://github.com/neo4j-labs/neodash/issues/118))
7+
- Added **Report Actions**, a neodash extension (available in beta) only on [https://neodash.graphapp.io](https://neodash.graphapp.io). ([#27](https://github.com/neo4j-labs/neodash/issues/27))
8+
9+
Bug fixes:
10+
- Fixed issue preventing dashboards to be shared with a non-standard database name.
11+
- Fixed table chart breaking when returning a property called 'id' with a null value.
12+
- Fixed bug not allowing users to select a different database when loading/saving a dashboard.
13+
14+
15+
116
## NeoDash 2.1.6 & 2.1.7
217
New features:
318
- Added *Radar Charts/Spider Charts*.

cypress/fixtures/cypher_queries.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cypress/integration/start_page.spec.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { tableCypherQuery, barChartCypherQuery, mapChartCypherQuery, sunburstChartCypherQuery, iFrameText, markdownText, loadDashboardURL, sankeyChartCypherQuery } from "../fixtures/cypher_queries"
1+
import { tableCypherQuery, barChartCypherQuery, mapChartCypherQuery, sunburstChartCypherQuery, iFrameText, markdownText, loadDashboardURL, sankeyChartCypherQuery, gaugeChartCypherQuery } from "../fixtures/cypher_queries"
22

33
// Ignore warnings that may appear when using the Cypress dev server
44
Cypress.on('uncaught:exception', (err, runnable) => {
@@ -12,6 +12,7 @@ describe('NeoDash E2E Tests', () => {
1212
cy.viewport(1920, 1080)
1313
// Navigate to index
1414
cy.visit('/')
15+
cy.wait(1000)
1516
cy.get('#form-dialog-title').should('contain', 'NeoDash - Neo4j Dashboard Builder')
1617
cy.wait(300)
1718

@@ -27,13 +28,13 @@ describe('NeoDash E2E Tests', () => {
2728
cy.get('#form-dialog-title').should('contain', 'Connect to Neo4j')
2829

2930
// Connect to Neo4j database
30-
cy.get('#protocol').click()
31-
cy.contains('neo4j+s').click()
32-
cy.get('#url').clear().type('demo.neo4jlabs.com')
31+
// cy.get('#protocol').click()
32+
// cy.contains('neo4j').click()
33+
cy.get('#url').clear().type('localhost')
3334
cy.wait(100)
34-
cy.get('#database').type('movies')
35-
cy.get('#dbusername').clear().type('movies')
36-
cy.get('#dbpassword').type('movies')
35+
// cy.get('#database').type('neo4j')
36+
cy.get('#dbusername').clear().type('neo4j')
37+
cy.get('#dbpassword').type('test')
3738
cy.wait(100)
3839
cy.get('button').contains('Connect').click()
3940
})
@@ -104,6 +105,11 @@ describe('NeoDash E2E Tests', () => {
104105
cy.get('main .react-grid-item:eq(2) .MuiCardContent-root > div > div:nth-child(2) > span').contains('1,999')
105106
})
106107

108+
it('creates a gauge chart report', () => {
109+
createReportOfType('Gauge Chart', gaugeChartCypherQuery)
110+
cy.get('.text-group > text').contains('69')
111+
})
112+
107113
it('creates a sunburst chart report', () => {
108114
createReportOfType('Sunburst Chart', sunburstChartCypherQuery)
109115
cy.get('main .react-grid-item:eq(2) .MuiCardActions-root .MuiInputLabel-root').contains('Path').next()

docs/modules/ROOT/images/gauge.png

297 KB
Loading

docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*** xref:user-guide/reports/map.adoc[Map]
1818
*** xref:user-guide/reports/choropleth.adoc[Choropleth]
1919
*** xref:user-guide/reports/single-value.adoc[Single Value]
20+
*** xref:user-guide/reports/gauge-chart.adoc[Gauge Chart]
2021
*** xref:user-guide/reports/raw-json.adoc[Raw JSON]
2122
*** xref:user-guide/reports/parameter-select.adoc[Parameter Select]
2223
*** xref:user-guide/reports/iframe.adoc[iFrame]

0 commit comments

Comments
 (0)