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

fix(allow-db-explore): make to check the allow virtual table explore option by default #19883

Merged
merged 2 commits into from
Apr 28, 2022

Conversation

prosdev0107
Copy link
Contributor

@prosdev0107 prosdev0107 commented Apr 28, 2022

SUMMARY

The "Allow this database to be explored" setting should be checked by default in the Database Connection UI.

Description
When creating a new database connection, users are able to control which actions should be allowed on this database:
By default, Allow this database to be explored is un-checked, however this functionality is enabled on the application.

The functionality of Exploring from SQL Lab should match the Database connection UI checkbox. Since the functionality is enabled, the checkbox should be checked by default when creating a new connection.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE:

allow-explore.mov

AFTER:

allow-table-explore.mov

TESTING INSTRUCTIONS

How to reproduce the bug

  1. Create a new Database connection. (Google sheets is a quick one to create)
  2. Expand the SQL Lab section under the ADVANCED tab, and make sure that Allow this database to be explored is disabled.
  3. Save the connection.
  4. However, the functionality is working as if the box was checked:
  5. Navigate to SQL Lab > SQL Editor on the top navigation bar.
  6. Execute a query on this newly connected database.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #19883 (48bc47a) into master (1d50665) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #19883   +/-   ##
=======================================
  Coverage   66.52%   66.52%           
=======================================
  Files        1714     1714           
  Lines       65031    65031           
  Branches     6714     6714           
=======================================
  Hits        43259    43259           
  Misses      20065    20065           
  Partials     1707     1707           
Flag Coverage Δ
javascript 51.24% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...c/views/CRUD/data/database/DatabaseModal/index.tsx 32.51% <100.00%> (ø)

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 1d50665...48bc47a. Read the comment docs.

Copy link
Contributor

@codemaster08240328 codemaster08240328 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@yousoph
Copy link
Member

yousoph commented Apr 28, 2022

/testenv up

@github-actions
Copy link
Contributor

@yousoph Ephemeral environment spinning up at http://34.220.182.132:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@pkdotson pkdotson merged commit ea6753d into apache:master Apr 28, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Apr 29, 2022
…option by default (apache#19883)

* fix(db & explore): make to check the allow-db-explore option by default

* fix(db-explore): make to remove console.log

(cherry picked from commit ea6753d)
@sadpandajoe
Copy link
Member

🏷️ preset:2022.17

hughhhh pushed a commit to hve-labs/superset that referenced this pull request May 11, 2022
…option by default (apache#19883)

* fix(db & explore): make to check the allow-db-explore option by default

* fix(db-explore): make to remove console.log
philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
…option by default (apache#19883)

* fix(db & explore): make to check the allow-db-explore option by default

* fix(db-explore): make to remove console.log
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 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 preset:2022.17 Preset-Patch size/XS 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants