-
Notifications
You must be signed in to change notification settings - Fork 152
Database Notification Improvements #1008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3d9d59a
d1cac6e
eec82a8
bac205a
9fd8e45
c2e9bcb
3899d8d
ef4320c
0d255e7
8b6dcf3
49d070b
7594988
73b86af
03d6109
24bbe3f
33887c9
2dd6816
cdfe17e
1152f59
8e7cb10
3fa1439
362b141
ada3d04
d4d7259
5106406
c89afc6
c58ceb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ function assertImpersonatedUserIsEmpty (impersonatedUser, onProtocolError = () = | |
* @param {any} observer | ||
*/ | ||
function assertNotificationFiltersIsEmpty (notificationFilters, onProtocolError = () => {}, observer) { | ||
if (notificationFilters != null) { | ||
if (notificationFilters !== undefined) { | ||
const error = newError( | ||
'Driver is connected to the database that does not support user notification filters. ' + | ||
'Please upgrade to neo4j 5.3.0 or later in order to use this functionality. ' + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not yet clear if this feature will make it into 5.3 or later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will hold this comment/pr until we have the functionality merged in the server and we know which version it will be part of. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 just make sure to not forget to update the parts of the PR that mention the version (also some doc comments). |
||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -216,7 +216,9 @@ class SessionConfig { | |||||
* // using default server configuration | ||||||
* const sessionWithSeverDefaultNotifications = driver.session({ database:'neo4j', notificationFilters: neo4j.notificationFilter.serverDefault() }) | ||||||
* // EQUIVALENT TO: const sessionWithSeverDefaultNotifications = driver.session({ database:'neo4j', notificationFilters: ["SERVER_DEFAULT"] }) | ||||||
* // OR SIMPLY: const sessionWithSeverDefaultNotifications = driver.session({ database:'neo4j' }) | ||||||
* | ||||||
* // using default configured in the connection/driver configuration | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* const sessionWithSeverDefaultNotifications = driver.session({ database:'neo4j' }) | ||||||
* | ||||||
* // Enable all notifications | ||||||
* const sessionWithAllNotifications = driver.session({ database:'neo4j', notificationFilters: [neo4j.notificationFilter.ALL.ALL] }) | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.