-
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
Fix: make ClickHouse password and username truly optional #3362
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ def _send_query(self, data, stream=False): | |
timeout=self.configuration.get('timeout', 30), | ||
params={ | ||
'user': self.configuration['user'], | ||
'password': self.configuration['password'], | ||
'password': self.configuration.get('password', ""), | ||
'database': self.configuration['dbname'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we will use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, at the moment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't want to post the same comment on 2 lines. :) I think that dbname param should be not required if we agree that user and password fields could be not required too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 got it. I'm going to merge this as is. But I don't mind making |
||
} | ||
) | ||
|
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.
I just realized that we have the same problem with
user
andurl
. We should call.get
with the value we mention as default in the configuration properties.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.
I faced an error while building PR with CircleCI https://circleci.com/gh/getredash/redash/11656
I guess the problems is not in my PR? Could you please rerun workflow at some point in future?
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.
It's definitely unrelated. I triggered another execution.