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

[sql lab] comment injection hook #4585

Merged
merged 1 commit into from
Mar 9, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Mar 9, 2018

This will allow us at Lyft to add a comment header that adds metadata to the query to the SQL sent to databases for audit/debug purpose.

Also altering the logic of DB_CONNECTION_MUTATOR to receive the username instead of the user b object, which is out of scope on the worker when running in async mode.

@hughhhh
Copy link
Member

hughhhh commented Mar 9, 2018

🚢

@codecov-io
Copy link

Codecov Report

Merging #4585 into master will increase coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4585      +/-   ##
==========================================
+ Coverage   71.17%   71.17%   +<.01%     
==========================================
  Files         187      187              
  Lines       14809    14813       +4     
  Branches     1085     1085              
==========================================
+ Hits        10540    10543       +3     
- Misses       4266     4267       +1     
  Partials        3        3
Impacted Files Coverage Δ
superset/models/core.py 87.31% <0%> (ø) ⬆️
superset/config.py 92.18% <100%> (+0.06%) ⬆️
superset/sql_lab.py 74.21% <75%> (-0.13%) ⬇️

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 c85eea3...1a083d3. Read the comment docs.

@mistercrunch mistercrunch merged commit 34a081b into apache:master Mar 9, 2018
@mistercrunch mistercrunch deleted the conn_mutator_2 branch March 9, 2018 19:27
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Mar 9, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.0 labels Feb 27, 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 🚢 0.24.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants