Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: add ssh tunneling to dynamic form for Database Connection UI #22689
feat: add ssh tunneling to dynamic form for Database Connection UI #22689
Changes from 155 commits
830a283
2c1e736
f78df83
d482df4
9edb581
da27d8f
773a6c8
2f2dda2
fd0d7f2
158da8d
face73f
95d079e
d5926e3
f7a6a41
30e380a
87c0d79
11b240b
1bfdbda
4146d5a
f8b877d
54fc147
fdc6ca3
66c0801
1f9ec5e
c698cf4
41bd19b
8811a99
82d7532
1f829ac
d53d116
752161d
8c4b081
1a19a97
58b9cce
0ac6fb1
31f3c1d
a0b30e6
e089a8d
81b2f88
45686b7
7ce5836
d9c8d0d
ec27b80
65e3e29
9fa9db5
1a11ff4
3f0dae1
2777807
8ed02cd
6a68147
6bd32e8
8a3ee35
bc89194
adb9451
16d960b
d2ab4a6
fb2acd0
4d807c9
dc0c848
21fcdf0
68cb75f
44ca56b
7e1461e
92e41f1
6c59663
466703a
554de53
4448739
bb78055
f507385
45aa022
3d3b71b
86436b6
54a8d7f
3f6afec
7625566
0578a8e
ec20429
1f57d4a
ed19a3e
852c8bb
be5c005
948f748
c636ce7
908896f
e3ef835
a4b1c28
828d45c
862288a
5ca158e
ade44d3
bae36a0
e3f99d2
6641f97
c7dc836
89c20eb
f4b34a2
ce842a6
3ae8c86
3faf78c
66fb789
cc243bf
8e910f1
a5cf0e4
c5c50ed
06e115b
13ed50d
54d51e2
53eaa63
8f8faff
607c682
367efe6
dffc266
65d3fc9
e1815da
e16c52b
9da6987
110e0ba
b328427
1ea0e8b
d5b4ad2
5fc7e09
7cc7bc8
227029d
422a86e
28342a4
7c539d2
643d25e
846815e
394afc1
052eee1
9b09fc7
af66b34
2bb1140
1170a34
857e041
27587ec
1cb7384
86db39d
6a03887
ff5ec7f
213f57a
1e0161d
e394e7a
a096122
8df08f9
ffd9a56
ec9788d
3e8ae1c
fa0e932
1f5f8c0
8adb25f
80628d0
f4b0b3a
032c938
c007b25
7da78fa
02facfb
cb6f761
276802f
830b787
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
nit: would be more clear to use name like:
sshTunnelingEnabled
orisSshTunnelingEnabled
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.
Not new to this PR so maybe not in scope, but is there any validation on
db
to ensure it is aDatabaseObject
? Forcing a coercion here and on line 1304 basically removes any useful type checking. We may want to add a type guard or other validation that db does have the structure SSHTunnelForm expects.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.
Might be wrong but, isn't this:
forcing
db
to bePartial<DatabaseObject> | null
? thus would match the type inSSHTunnelForm
?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.
@eric-briscoe i say we cut a ticket for this under tech debt so we can revisit doing a proper refactor of this component