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

[druid] Making scaning/refreshing Druid datasource view items optional #8995

Merged

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented Jan 22, 2020

CATEGORY

Choose one

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

SUMMARY

Some deployments with charts backed by the legacy Druid NoSQL connector can't simply go cold turkey on fully disabling Druid however we would like to wean ourselves off of Druid starting by removing the option to scan for new or refresh the metadata of the Druid datasources. Note the later menu item is somewhat of a misnomer as it refreshes all Druid datasource from the source and not just those currently registered in Superset.

This PR adds a config option to simply remove the view items for scanning/refreshing Druid datasources.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE

When DRUID_IS_ACTIVE = True (non-default) and DRUID_METADATA_LINKS_ENABLED = True (default)

Screen Shot 2020-01-22 at 1 27 45 PM

AFTER

When DRUID_IS_ACTIVE = True (non-default) and DRUID_METADATA_LINKS_ENABLED = False (non-default)

Screen Shot 2020-01-22 at 1 27 25 PM

TEST PLAN

CI and tested locally.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

to: @michellethomas @mistercrunch @willbarrett

@willbarrett
Copy link
Member

YASSSS...LGTM

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

2 nits, otherwise lgtm

DRUID_IS_ACTIVE = True

# If Druid is active whether to include the links to scan/refresh Druid datasources.
# This should be disable if you are trying to wean yourself off of the Druid NoSQL
Copy link
Member

Choose a reason for hiding this comment

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

sp nit: This should be disabled

# If Druid is active whether to include the links to scan/refresh Druid datasources.
# This should be disable if you are trying to wean yourself off of the Druid NoSQL
# connector.
DRUID_METADATA_VIEW_LINKS = True
Copy link
Member

Choose a reason for hiding this comment

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

maybe DRUID_METADATA_LINKS_ENABLED?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. The VIEW term related to FAB views but the way it reads it's misleading.

@john-bodley john-bodley force-pushed the john-bodley--druid-optional-refresh branch from 4991c3a to b3c863d Compare January 22, 2020 23:23
@john-bodley john-bodley force-pushed the john-bodley--druid-optional-refresh branch from b3c863d to f6366bb Compare January 22, 2020 23:23
@codecov-io
Copy link

Codecov Report

Merging #8995 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8995      +/-   ##
==========================================
- Coverage   59.16%   59.16%   -0.01%     
==========================================
  Files         367      367              
  Lines       11679    11680       +1     
  Branches     2862     2863       +1     
==========================================
  Hits         6910     6910              
- Misses       4590     4591       +1     
  Partials      179      179
Impacted Files Coverage Δ
...uperset/assets/src/SqlLab/components/ResultSet.jsx 77.55% <0%> (-0.8%) ⬇️

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 e46ff23...f6366bb. Read the comment docs.

@john-bodley john-bodley merged commit d56abc3 into apache:master Jan 22, 2020
@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/M 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants