-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 lab command: separate concerns into different modules #16917
Merged
+660
−285
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2e8f508
chore move sql_execution_context to sqllab package
ofekisr 98e09b2
add new helper methods into base Dao
ofekisr 46277c5
refactor separate get existing query concern from command
ofekisr da7439c
refactor separate query access validation concern
ofekisr a2765b3
refactor separate get query's database concern from command
ofekisr f73f80d
refactor separate get query rendering concern from command
ofekisr 1787a0c
refactor sqllab_execution_context
ofekisr 24f1f7a
refactor separate creating payload for view
ofekisr c62b51e
chore decouple command from superset app
ofekisr 59f7d7b
fix pylint issues
ofekisr d98ccc8
fix failed tests
ofekisr d5788d5
fix pylint issues
ofekisr ac98b75
Merge branch 'master' into refactor/sqllab3
ofekisr 85d7a52
fix failed test
ofekisr ca7f1f1
Merge remote-tracking branch 'origin/refactor/sqllab3' into refactor/…
ofekisr 3fd8193
fix failed black
ofekisr 8de7bf7
fix failed black
ofekisr 98ca456
fix failed test
ofekisr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@ofekisr could we move these to the lines where the issue occurs? There was an effort in #16589 to remove top-level Pylint disable checks as it's i) unclear to the reader where these violations are occurring, and ii) potentially masks issues in future changes.
I realize that this wasn't clear and so adding it to the
CONTRIBUTING.md
in #17016.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.
Hi @john-bodley as you notice this is the only change that was done to the file.
It was done bc all of a sudden pylint required it in the CI
The recent series of pylint rules changes that was done has awaken wiered behaviour and the CI and require us to work for the pylint instead of it working for us
linting all of sudden became a disturbance we need hop over on every PR