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

refactor: sql_json view endpoint: separate query rendering concern #16649

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

ofekisr
Copy link
Contributor

@ofekisr ofekisr commented Sep 9, 2021

SUMMARY
The sql_json view code in superset core view without any "clean code" standard and it does not adopt any software development principle.
This is the eighth PR in the sequence of future PRs (previous PR) try to solve it by refactoring the code.
The PR focus of separate the query rendering code into an ad hod method so the code will be cleaner
there are no logic changes so it implies on the current tests.

@codecov
Copy link

codecov bot commented Sep 9, 2021

Codecov Report

Merging #16649 (b1d6f2a) into master (62637f2) will increase coverage by 0.00%.
The diff coverage is 85.00%.

❗ Current head b1d6f2a differs from pull request most recent head 6aca2e3. Consider uploading reports for the commit 6aca2e3 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16649   +/-   ##
=======================================
  Coverage   76.66%   76.66%           
=======================================
  Files        1004     1004           
  Lines       53989    53994    +5     
  Branches     7335     7335           
=======================================
+ Hits        41389    41395    +6     
+ Misses      12361    12360    -1     
  Partials      239      239           
Flag Coverage Δ
mysql 81.60% <85.00%> (+<0.01%) ⬆️
postgres 81.63% <85.00%> (+<0.01%) ⬆️
python 81.71% <85.00%> (+<0.01%) ⬆️
sqlite 81.27% <85.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/views/core.py 75.89% <85.00%> (+0.15%) ⬆️

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 62637f2...6aca2e3. Read the comment docs.

Copy link
Member

@amitmiran137 amitmiran137 left a comment

Choose a reason for hiding this comment

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

yet another method extraction

@amitmiran137 amitmiran137 merged commit 267b327 into apache:master Sep 9, 2021
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 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.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants