-
Notifications
You must be signed in to change notification settings - Fork 4.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
Support multi column results with using mongo query runner #6290
Conversation
@del-zhenwu Thanks for getting this rebased and resubmitted. It's currently failing the lint/formatting check. That should (in theory) be fairly easy to fix with the https://github.com/getredash/redash/wiki/Local-development-setup#configuring-pre-commit Hopefully that's useful? 😄 |
Codecov Report
@@ Coverage Diff @@
## master #6290 +/- ##
==========================================
- Coverage 60.74% 60.73% -0.01%
==========================================
Files 153 153
Lines 12513 12515 +2
Branches 1695 1694 -1
==========================================
Hits 7601 7601
- Misses 4686 4687 +1
- Partials 226 227 +1
|
@del-zhenwu Cool, looks like it's passing most of the CI tests now, apart from the Code coverage check. Are you ok to add some tests to this PR, to increase the coverage? We don't have to, but if it's something that's easy to do then we probably should. 😄 |
It seems no need to add ut, cause it just fixed the bug with no extra feature. |
@guidopetri @wlach This PR looks like it's ready to merge, but doesn't seem to have been reviewed yet (nor in it's previous PR). Would either of you be ok to review and merge this as appropriate? 😄 |
@del-zhenwu Is there no way we can add tests for this? It seems like we're missing an opportunity to improve our code if we don't. 😉 |
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 @del-zhenwu, as @justinclift suggested, could you please add a small test case to the tests which demonstrates your fix? It should not take long, there is prior art for you to work off of:
redash/tests/query_runner/test_mongodb.py
Line 122 in 650ec90
class TestMongoResults(TestCase): |
I updated the unit test case, to show it works in that case |
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.
This looks good to me! Thanks @del-zhenwu . I'm going to re-run the make format
command so that it passes the lint test + merge master
in.
I seem to have done something wrong with git, and now I can't edit your |
Oh. It sounds like the behaviour of git being trigger happy to close PRs has some really bad consequences when the PR branch is in an external repo. :( Or GitHub needs to fix their code, so PRs closed by their automated stuff allow for restoring a branch so they can still be worked on. |
rebase from the latest master: https://github.com/getredash/redash/pull/4836/files