Skip to content
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

Only list tables in DB test if API returns them (which it doesn't) #8681

Merged

Conversation

rusackas
Copy link
Member

…ever will)

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

I noticed that when you use the button to test a DB connection, the API just responds with "OK" and not a list of tables. That may be an issue worth exploring, or maybe it was changed for a good reason. In any case, there was some Javascript that was bugging out in trying to process/display a list of tables from that "OK" so I made this display logic conditional, such that it will only run if an array of tables is indeed returned. I doubt that will ever happen, but at least this PR kills the console error in any case.

REVIEWERS

@mistercrunch

@mistercrunch
Copy link
Member

mistercrunch commented Nov 27, 2019

That original feature that shows the table name is a weird artifact from super early (like during the original hackathon) debugging. We could deprecate that.

@rusackas
Copy link
Member Author

That original feature that shows the table name is a weird artifact from super early (like during the original hackathon) debugging. We could deprecate that.

Ok... given that, I just took that code out instead of wrapping it in a conditional. If we need to display tables, I'm guessing we'll go a different (e.g. React) direction with it anyway, rather than building on the jQuery stuff :)

@codecov-io
Copy link

codecov-io commented Nov 27, 2019

Codecov Report

Merging #8681 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8681   +/-   ##
=======================================
  Coverage   65.77%   65.77%           
=======================================
  Files         481      481           
  Lines       23830    23830           
  Branches     2593     2593           
=======================================
  Hits        15674    15674           
  Misses       7983     7983           
  Partials      173      173

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f355548...6c6df6e. Read the comment docs.

@mistercrunch mistercrunch merged commit e21f768 into apache:master Nov 27, 2019
@mistercrunch mistercrunch deleted the Fixing-table-list-on-DB-connection-test branch November 27, 2019 19:43
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants