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 setting query limit concern #16653

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 ninth PR in the sequence of future PRs (previous PR) try to solve it by refactoring the code.
The PR focus of separate the setting query limit code into an ad hod method so the code will be cleaner
there are no logic changes so it implies on the current tests.

@ofekisr ofekisr force-pushed the refactor/sql_json_view9 branch from 1ab2098 to fb1217f Compare September 9, 2021 15:28
@pull-request-size pull-request-size bot added size/M and removed size/L labels Sep 9, 2021
@codecov
Copy link

codecov bot commented Sep 9, 2021

Codecov Report

Merging #16653 (3a8da9f) into master (267b327) will increase coverage by 0.00%.
The diff coverage is 100.00%.

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

@@           Coverage Diff           @@
##           master   #16653   +/-   ##
=======================================
  Coverage   76.66%   76.66%           
=======================================
  Files        1004     1004           
  Lines       53994    54000    +6     
  Branches     7335     7335           
=======================================
+ Hits        41395    41401    +6     
  Misses      12360    12360           
  Partials      239      239           
Flag Coverage Δ
mysql 81.60% <100.00%> (+0.04%) ⬆️
postgres 81.63% <100.00%> (+<0.01%) ⬆️
python 81.72% <100.00%> (+<0.01%) ⬆️
sqlite 81.28% <100.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 76.00% <100.00%> (+0.10%) ⬆️

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 267b327...fb1217f. 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.

Classic

@amitmiran137 amitmiran137 merged commit dad55a7 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.

3 participants