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

feat: Adds option to disable drill to detail per database #27536

Merged

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Mar 15, 2024

SUMMARY

This PR adds an option to disable the drill to detail feature per database. This is useful for databases that don't support atomic-level queries or contain large amounts of data not suitable for this type of operation.

During the planning phase of 4.0, the proposal to deprecate the DRILL_TO_DETAIL feature flag was rejected for the same reasons this PR is introducing this configuration. The hope is that with this new feature, we can deprecate the feature flag in the next major release. @mattitoo

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2024-03-15.at.15.36.00.mov

TESTING INSTRUCTIONS

Check that the drill to detail feature can be disabled/enabled for a specific 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

@michael-s-molina michael-s-molina requested a review from a team March 15, 2024 19:06
@github-actions github-actions bot added api Related to the REST API doc Namespace | Anything related to documentation labels Mar 15, 2024
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 69.82%. Comparing base (f274c47) to head (d596899).
Report is 1393 commits behind head on master.

Files with missing lines Patch % Lines
...ponents/Chart/DrillDetail/DrillDetailMenuItems.tsx 84.21% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27536      +/-   ##
==========================================
+ Coverage   67.46%   69.82%   +2.35%     
==========================================
  Files        1910     1910              
  Lines       74802    74812      +10     
  Branches     8345     8346       +1     
==========================================
+ Hits        50467    52234    +1767     
+ Misses      22284    20526    -1758     
- Partials     2051     2052       +1     
Flag Coverage Δ
hive 48.99% <100.00%> (?)
javascript 57.39% <84.21%> (-0.01%) ⬇️
mysql 78.00% <100.00%> (-0.03%) ⬇️
postgres 78.14% <100.00%> (+<0.01%) ⬆️
presto 53.72% <100.00%> (?)
python 83.15% <100.00%> (+4.87%) ⬆️
sqlite 77.57% <100.00%> (+<0.01%) ⬆️
unit 56.68% <100.00%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michael-s-molina michael-s-molina force-pushed the allow-disable-drill-to-detail branch from d1d91ea to 27920d2 Compare March 18, 2024 12:56
@michael-s-molina
Copy link
Member Author

/testenv up

Copy link
Contributor

@michael-s-molina Ephemeral environment spinning up at http://52.36.126.48:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@john-bodley
Copy link
Member

Thanks @michael-s-molina for adding this option. My only question relates to:

This PR adds an option to disable the drill to detail feature per database.

and whether this should be configured at the database or dataset level. I'm not sure if it's typical that non-viable use cases are typically engine specific or dataset specific, though—as you point out—access to the underly records is likely database specific.

Note the drill-to-detail feature doesn't strictly require atomic level data, i.e., it works with Druid where the underlying data is typically rolled-up, however users are only exposed to the (partially) pre-aggregated records.

@michael-s-molina
Copy link
Member Author

Note the drill-to-detail feature doesn't strictly require atomic level data, i.e., it works with Druid where the underlying data is typically rolled-up, however users are only exposed to the (partially) pre-aggregated records.

I'm thinking more about databases that only contain aggregated data but not the atomic data that was used to compute the aggregations. In those cases, drill to detail won't make sense.

@michael-s-molina
Copy link
Member Author

and whether this should be configured at the database or dataset level. I'm not sure if it's typical that non-viable use cases are typically engine specific or dataset specific, though—as you point out—access to the underly records is likely database specific.

I think they are not mutually exclusive. We could have the same setting at the dataset level. I decided to start at the database level because I think the more common scenario is to have databases with no atomic data or large amounts of data. We may also have many virtual datasets, making the configuration harder.

@michael-s-molina michael-s-molina force-pushed the allow-disable-drill-to-detail branch from 090fa64 to 82850e3 Compare March 21, 2024 12:26
@michael-s-molina michael-s-molina force-pushed the allow-disable-drill-to-detail branch from 6604ca9 to 012b69e Compare March 21, 2024 15:13
@michael-s-molina michael-s-molina merged commit 6e52842 into apache:master Mar 21, 2024
40 checks passed
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
EandrewJones pushed a commit to UMD-ARLIS/superset that referenced this pull request Apr 5, 2024
EnxDev pushed a commit to EnxDev/superset that referenced this pull request Apr 12, 2024
betodealmeida pushed a commit that referenced this pull request Apr 25, 2024
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
eschutho pushed a commit that referenced this pull request Jun 5, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the REST API 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels doc Namespace | Anything related to documentation size/L 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants