-
Notifications
You must be signed in to change notification settings - Fork 337
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
Support new alias feature from neo4j 4.4 #1605
Conversation
7edc9b3
to
730e1e2
Compare
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.
Good job!
I have two minor comments in the diff. As we paired together last Thursday, I can understand why you made those changes much quicker.
In addition, it would be great to include unit test and E2E test on this scenario if you've confirmed the UI behaviour with PM?
Thanks for the comments, made a few improvements now. Also pushed the last part of the feature, only have testing left to do. I'll re-request your review when ready 🙏 |
@@ -505,7 +505,6 @@ export const startupConnectEpic = (action$: any, store: any) => { | |||
) | |||
|
|||
if ( | |||
//TODO Considder the SSO implications of this | |||
!(discovered && discovered.hasForceURL) && // If we have force url, don't try old connection data |
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.
Old comment left in by mistake
@@ -105,8 +105,6 @@ describe('getAndMergeDiscoveryData', () => { | |||
expect(discoveryData).toBeTruthy() | |||
expect(discoveryData?.host).toEqual(boltHost) | |||
|
|||
// expect(discoveryData?.source).toEqual(DISCOVERY_ENDPOINT) | |||
// Todo test source via logs |
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.
another old comment left in by mistake
@@ -17,6 +17,7 @@ | |||
"noFallthroughCasesInSwitch": true, | |||
"jsx": "react", | |||
"outDir": "./build", | |||
"noEmit": 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.
Set tsc to not emit any javascript when it runs, since we don't use tsc for compiling but we get weird errors when running the tests if we have accidentally have generated some js code
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.
LGTM! 💯 Are we going to add E2E tests in TeamCity against 4.4.x soon?
As soon as it's released! |
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.
Great work! Nice to see a lot of ts fixes and general cleanup of code. ⭐ See my comments that are mostly stuff that you can do if you agree and some question marks.
Merging as soon as the tests come back green |
Adds support for the 4.4 concept of aliases.
To create an alias run
create alias myAlias for database neo4j
.You should not be able to run
:use myAlias
and see your aliases when running:dbs
. The "real" name should still be displaced in editor.Preview @http://support_aliases.surge.sh