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

Elasticsearch upgrade #210

Merged
merged 7 commits into from
Mar 23, 2023
Merged

Elasticsearch upgrade #210

merged 7 commits into from
Mar 23, 2023

Conversation

wkdewey
Copy link
Contributor

@wkdewey wkdewey commented Oct 24, 2022

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

@wkdewey
Copy link
Contributor Author

wkdewey commented Oct 26, 2022

I added basic auth to log in to ES, it is designed to store the username and password in config/private.yml

@wkdewey wkdewey linked an issue Jan 26, 2023 that may be closed by this pull request
Copy link
Member

@techgique techgique left a 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)
Copy link
Member

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.

@techgique techgique merged commit 8a99138 into release/v1.0.0 Mar 23, 2023
@techgique techgique deleted the elasticsearch_upgrade branch March 23, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

es_clear_index not working with ES 8
2 participants