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

Apply SQL_QUERY_MUTATOR to explore & dashboard #5493

Merged
merged 2 commits into from
Jul 26, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jul 26, 2018

SQL_QUERY_MUTATOR is a config parameter that allows for adding context as comments to SQL strings. This configuration callable was only called from SQL Lab, not from the explore view or dashboard view. Not it's applied in all cases.

@mistercrunch mistercrunch changed the title Apply SQL_QUERY_MUTATOR kn explore & dashboard Apply SQL_QUERY_MUTATOR to explore & dashboard Jul 26, 2018
@codecov-io
Copy link

codecov-io commented Jul 26, 2018

Codecov Report

Merging #5493 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5493      +/-   ##
==========================================
+ Coverage   63.33%   63.36%   +0.02%     
==========================================
  Files         349      349              
  Lines       22099    22113      +14     
  Branches     2455     2455              
==========================================
+ Hits        13996    14011      +15     
+ Misses       8089     8088       -1     
  Partials       14       14
Impacted Files Coverage Δ
superset/utils.py 89.11% <100%> (+0.1%) ⬆️
superset/connectors/sqla/models.py 78.51% <100%> (+0.58%) ⬆️

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 3df82d9...5a35c52. Read the comment docs.


def mutator(*args):
return '--COMMENT\n' + args[0]
app.config['SQL_QUERY_MUTATOR'] = mutator
Copy link
Member

Choose a reason for hiding this comment

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

I assume we're not running unit tests in parallel?

@mistercrunch mistercrunch merged commit 94cb20c into apache:master Jul 26, 2018
@mistercrunch mistercrunch deleted the SQL_QUERY_MUTATOR branch July 26, 2018 22:20
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Jul 26, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Jul 26, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Jul 27, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Jul 31, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 3, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 3, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 4, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 4, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
(cherry picked from commit f19bdca)
mistercrunch added a commit that referenced this pull request Aug 12, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test
@mistercrunch mistercrunch added 🍒 0.27.0 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test

(cherry picked from commit 94cb20c)
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 🍒 0.27.0 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants