-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Conversation
8b24a64
to
4e24c59
Compare
4e24c59
to
5a35c52
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
|
||
def mutator(*args): | ||
return '--COMMENT\n' + args[0] | ||
app.config['SQL_QUERY_MUTATOR'] = mutator |
There was a problem hiding this comment.
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?
* Apply SQL_QUERY_MUTATOR kn explore & dashboard * Add unit test (cherry picked from commit 94cb20c)
* Apply SQL_QUERY_MUTATOR kn explore & dashboard * Add unit test (cherry picked from commit 94cb20c)
* Apply SQL_QUERY_MUTATOR kn explore & dashboard * Add unit test
* Apply SQL_QUERY_MUTATOR kn explore & dashboard * Add unit test (cherry picked from commit 94cb20c)
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.