-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
fix: duplicate DB names #15614
fix: duplicate DB names #15614
Conversation
f4878dc
to
fba4c03
Compare
fba4c03
to
5c7bbcb
Compare
@@ -25,6 +25,7 @@ export type DatabaseObject = { | |||
// Connection + general | |||
id?: number; | |||
database_name: string; | |||
name: string; // synonym to database_name |
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.
We're setting name
instead of database_name
somewhere, so I had to add the property here. This is just a quick fix, ideally we should fix the code that sets name
and make it set database_name
instead.
Codecov Report
@@ Coverage Diff @@
## master #15614 +/- ##
==========================================
- Coverage 76.95% 76.87% -0.09%
==========================================
Files 976 976
Lines 51324 51324
Branches 6910 6910
==========================================
- Hits 39497 39455 -42
- Misses 11608 11650 +42
Partials 219 219
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@betodealmeida Ephemeral environment spinning up at http://52.11.167.57:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
🏷 2021.27 |
(cherry picked from commit 5d86ffe)
SUMMARY
Fix the DB name selector by using
name
as the key, since it's unique. The key we're using,engine
, is not unique, since multiple DBs can use the same engine — Apache Spark SQL and Apache Hive both usehive
as their engine, eg.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION