-
Notifications
You must be signed in to change notification settings - Fork 15
Add aliases in connections pane #631
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
base: main
Are you sure you want to change the base?
Conversation
|
| CALL db.propertyKeys() YIELD propertyKey | ||
| RETURN COLLECT(propertyKey)[..${ITEM_LIMIT}] AS result`; | ||
|
|
||
| const resultTransformer = resultTransformers.mappedResultTransformer({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This old method was deprecated with drop-in replacement mapped
| const dbs: Database[] = Object.values(logicalDatabases); | ||
|
|
||
| return { | ||
| databases: databases.filter((x) => x?.writer === true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was my old attempt to de-duplicate dbs, which was flawed. I was under the assumption that there would always be a single writer, but though there are not multiple, sometimes there are none, see: https://neo4j.com/docs/operations-manual/current/clustering/setup/routing/#clustering-client-side-routing
This new approach is pretty much a copy-paste from @nx-import in upx. Maybe we should export it from here and import there to avoid duplication?
Adds aliases to connection pane like:

In response to https://neo4j.slack.com/archives/C02TG83V9GT/p1765463076419729
Closes LS-85