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

chore: turn SQL templating off by default #11172

Merged
merged 7 commits into from
Oct 8, 2020

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented Oct 6, 2020

SUMMARY

Use a new feature flag to make it possible to enable/disable SQL templating.

Note:
Setting is off by default

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

@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 6, 2020
@dpgaspar dpgaspar changed the title feat: possible to turn off SQL templating feat: turn SQL templating off by default Oct 6, 2020
@dpgaspar dpgaspar changed the title feat: turn SQL templating off by default chore: turn SQL templating off by default Oct 6, 2020
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

Non blocking nit, LGTM.

UPDATING.md Outdated Show resolved Hide resolved
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
UPDATING.md Outdated
@@ -23,6 +23,8 @@ assists people when migrating to a new version.

## Next

* [10887](https://github.com/apache/incubator-superset/pull/11172): Breaking change: SQL templating is turned off be default. To turn it on set `ENABLE_TEMPLATE_PROCESSING` to True on `DEFAULT_FEATURE_FLAGS`
Copy link
Member

Choose a reason for hiding this comment

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

while you're in here, could you move the existing Next stuff to 0.37.2? Looks like that wasn't done yet.

Also, make sure you update the PR number

Copy link
Member Author

Choose a reason for hiding this comment

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

Just checked, and the UPDATING is absolutely correct, there are no warning or breaking changes on 0.37.2

Copy link
Member

Choose a reason for hiding this comment

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

ah, gotcha. i forgot that 0.37.2 was only cherrypicked PRs

@codecov-io
Copy link

codecov-io commented Oct 7, 2020

Codecov Report

Merging #11172 into master will decrease coverage by 4.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11172      +/-   ##
==========================================
- Coverage   65.57%   61.49%   -4.09%     
==========================================
  Files         828      828              
  Lines       39162    39164       +2     
  Branches     3694     3589     -105     
==========================================
- Hits        25681    24084    -1597     
- Misses      13371    14900    +1529     
- Partials      110      180      +70     
Flag Coverage Δ
#cypress ?
#javascript 62.30% <ø> (ø)
#python 61.01% <100.00%> (+0.07%) ⬆️

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

Impacted Files Coverage Δ
superset/config.py 90.07% <ø> (ø)
superset/jinja_context.py 81.81% <100.00%> (+0.86%) ⬆️
...ator-superset/superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
...tor-superset/superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
...r-superset/superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
...r-superset/superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
...superset/superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
...uperset/superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
...set/superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
...set/superset-frontend/src/setup/setupFormatters.js 0.00% <0.00%> (-100.00%) ⬇️
... and 175 more

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 2a447ff...2005044. Read the comment docs.

@dpgaspar dpgaspar requested a review from etr2460 October 7, 2020 10:14
@willbarrett
Copy link
Member

@dpgaspar I think it's OK to merge this once conflicts are resolved

@dpgaspar dpgaspar merged commit 7c60939 into apache:master Oct 8, 2020
@dpgaspar dpgaspar deleted the fix/disable-sql-templates branch October 8, 2020 10:55
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
* feat: possible to turn off SQL templating

* turn SQL templating off by default

* Update UPDATING.md

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* fix missing PR number

* fix missing PR number

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this pull request Jul 14, 2022
In the 1.0 release of superset template processing was changed from
default enabled to default disabled[1]. Turn this back on as
templating is useful in a variety of situations to build more dynamic
and more efficient dashboards.

[1] apache/superset#11172)

Bug: T312134
Change-Id: I984d4ee70154e3cb83255fec043360d5dd28fa7e
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.0 labels Mar 12, 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 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants