Skip to content

Commit af51209

Browse files
Merge pull request #890 from neo4j-labs/develop
2.4.8 Release
2 parents c504094 + 7fa9ad3 commit af51209

File tree

9 files changed

+30
-18
lines changed

9 files changed

+30
-18
lines changed

.github/workflows/master-deployment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
context: .
8080
file: ./Dockerfile
8181
push: true
82-
tags: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:2.4.7
82+
tags: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:2.4.8
8383
build-docker-legacy:
8484
needs: build-test
8585
runs-on: neodash-runners
@@ -103,7 +103,7 @@ jobs:
103103
context: .
104104
file: ./Dockerfile
105105
push: true
106-
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.4.7
106+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.4.8
107107
deploy-gallery:
108108
runs-on: neodash-runners
109109
strategy:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ USER nginx
4444
EXPOSE $NGINX_PORT
4545

4646
HEALTHCHECK cmd curl --fail "http://localhost:$NGINX_PORT" || exit 1
47-
LABEL version="2.4.7"
47+
LABEL version="2.4.8"

changelog.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## NeoDash 2.4.8
2+
This is a minor release containing an important fix and other minor fixes:
3+
4+
- Fixed a bug where loading a dashboard would reset parameters to null ([887](https://github.com/neo4j-labs/neodash/pull/887)).
5+
- Fix relationship width parameter for Graph report ([889](https://github.com/neo4j-labs/neodash/pull/889)).
6+
7+
Thanks to all the contributors for this release:
8+
- [alfredorubin96](https://github.com/alfredorubin96),
9+
- [nielsdejong](https://github.com/nielsdejong).
10+
111
## NeoDash 2.4.7
212
This is a minor release containing a few critical fixes and general code quality improvements:
313

docs/modules/ROOT/pages/developer-guide/deploy-a-build.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Depending on the webserver type and version, this could be different directory.
3737
As an example - to copy the files to an nginx webserver using `scp`:
3838

3939
```bash
40-
scp neodash-2.4.7 username@host:/usr/share/nginx/html
40+
scp neodash-2.4.8 username@host:/usr/share/nginx/html
4141
```
4242

4343
NeoDash should now be visible by visiting your (sub)domain in the browser.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neodash",
3-
"version": "2.4.7",
3+
"version": "2.4.8",
44
"description": "NeoDash - Neo4j Dashboard Builder",
55
"neo4jDesktop": {
66
"apiVersion": "^1.2.0"

release-notes.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
## NeoDash 2.4.7
2-
This is a minor release containing a few critical fixes and general code quality improvements:
1+
## NeoDash 2.4.8
2+
This is a minor release containing an important fix and other minor fixes:
33

4-
- Fix multiple parameter select ([881](https://github.com/neo4j-labs/neodash/pull/881)).
5-
- Fix parameter casting error when loading dashboards([874](https://github.com/neo4j-labs/neodash/pull/874)).
6-
- Fix the fraud demo in the [Example Gallery](https://neodash-gallery.graphapp.io/).
4+
- Fixed a bug where loading a dashboard would reset parameters to null ([887](https://github.com/neo4j-labs/neodash/pull/887)).
5+
- Fix relationship width parameter for Graph report ([889](https://github.com/neo4j-labs/neodash/pull/889)).
76

87
Thanks to all the contributors for this release:
98
- [alfredorubin96](https://github.com/alfredorubin96),
10-
- [MariusC](https://github.com/mariusconjeaud),
11-
- [elizarp](https://github.com/elizarp).
9+
- [nielsdejong](https://github.com/nielsdejong).

src/chart/graph/util/RecordUtils.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ function extractGraphEntitiesFromField(
6969
source: value.start.low,
7070
target: value.end.low,
7171
type: value.type,
72-
width: !Number.isNaN(value.properties[relWidthProperty])
73-
? toNumber(value.properties[relWidthProperty])
74-
: defaultRelWidth,
72+
width:
73+
value.properties[relWidthProperty] !== undefined && !Number.isNaN(value.properties[relWidthProperty])
74+
? toNumber(value.properties[relWidthProperty])
75+
: defaultRelWidth,
7576
color: value.properties[relColorProperty] ? value.properties[relColorProperty] : defaultRelColor,
7677
properties: value.properties,
7778
});

src/modal/AboutModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button, Dialog, TextLink } from '@neo4j-ndl/react';
33
import { BookOpenIconOutline, BeakerIconOutline } from '@neo4j-ndl/react/icons';
44
import { Section, SectionTitle, SectionContent } from './ModalUtils';
55

6-
export const version = '2.4.7';
6+
export const version = '2.4.8';
77

88
export const NeoAboutModal = ({ open, handleClose, getDebugState }) => {
99
const downloadDebugFile = () => {

src/settings/SettingsThunks.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export const updateGlobalParametersThunk = (newParameters) => (dispatch: any, ge
6161
try {
6262
const { settings } = getState().dashboard;
6363
const parameters = settings.parameters ? settings.parameters : {};
64-
6564
// if new parameters are set...
6665
if (newParameters) {
6766
// iterate over the key value pairs in parameters
@@ -92,7 +91,11 @@ export const updateParametersToNeo4jTypeThunk = () => (dispatch: any, getState:
9291
Object.keys(parameters).forEach((key) => {
9392
if (isCastableToNeo4jDate(parameters[key])) {
9493
parameters[key] = castToNeo4jDate(parameters[key]);
95-
} else if (parameters[key] && typeof toNumber(parameters[key]) === 'number') {
94+
} else if (
95+
parameters[key] &&
96+
!isNaN(toNumber(parameters[key])) &&
97+
typeof toNumber(parameters[key]) === 'number'
98+
) {
9699
parameters[key] = toNumber(parameters[key]);
97100
} else if (parameters[key] == undefined) {
98101
delete parameters[key];

0 commit comments

Comments
 (0)