-
Notifications
You must be signed in to change notification settings - Fork 5
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
Elasticsearch upgrade #210
Conversation
I added basic auth to log in to ES, it is designed to store the username and password in |
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.
Looks good. Merging this into the other branch
@@ -226,7 +229,8 @@ def self.clear_index(options) | |||
|
|||
if confirmation | |||
data = self.build_clear_data(options) | |||
RestClient.post(url, data.to_json, { content_type: :json }) { |res, req, result| | |||
auth_header = Datura::Helpers.construct_auth_header(options) |
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.
Note for future reference on committing. This helper method isn't included in this commit also, so the code would be broken at this commit. It's added in the next commit, but in the future these kinds of things need to be committed together.
closes #175 and also related to CDRH/api#123. Will result in breaking changes if we add it to the release, it will not be possible to post to Elasticsearch 6 under the present code. We could put a setting in the config file and add some conditional logic, but that could require changes to existing repos