Skip to content

Commit

Permalink
Release 7.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Apr 7, 2020
1 parent 021d041 commit 3362dae
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 9 deletions.
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
## 7.6.0

### Client

- Support for Elasticsearch version `7.6`.
- Last release supporting Ruby 2.4. Ruby 2.4 has reached it's end of life and no more security updates will be provided, users are suggested to update to a newer version of Ruby.

#### API Key Support
The client now supports API Key Authentication, check "Authentication" on the [transport README](https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#authentication) for information on how to use it.

#### X-Opaque-Id Support

The client now supports identifying running tasks with X-Opaque-Id. Check [transport README](https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#identifying-running-tasks-with-x-opaque-id) for information on how to use X-Opaque-Id.

#### Faraday migrated to 1.0

We're now using version 1.0 of Faraday:
- The client initializer was modified but this should not disrupt final users at all, check [this commit](https://github.com/elastic/elasticsearch-ruby/commit/0fdc6533f4621a549a4cb99e778bbd827461a2d0) for more information.
- Migrated error checking to remove the deprecated `Faraday::Error` namespace.
- **This change is not compatible with [Typhoeus](https://github.com/typhoeus/typhoeus)**. The latest release is 1.3.1, but it's [still using the deprecated `Faraday::Error` namespace](https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100). This has been fixed on master, but the last release was November 6, 2018. Version 1.4.0 should be ok once it's released.
- Note: Faraday 1.0 drops official support for JRuby. It installs fine on the tests we run with JRuby in this repo, but it's something we should pay attention to.

Reference: [Upgrading - Faraday 1.0](https://github.com/lostisland/faraday/blob/master/UPGRADING.md)

[Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/808)

### API

#### API Changes:
- `cat.indices`: argument `bytes` options were: `b,k,m,g` and are now `b,k,kb,m,mb,g,gb,t,tb,p,pb`.
- `delete_by_query`: New parameter `analyzer` - The analyzer to use for the query string.
- `indices.put_template`: Removed parameters: `timeout`, `flat_settings`.
- `msearch_template`: New Parameter `ccs_minimize_roundtrips` - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
- `rank_eval`: New parameter `search_type` - Search operation type (options: `query_then_fetch,dfs_query_then_fetch`).
- `search_template`: New parameter `ccs_minimize_roundtrips` - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.

#### New API endpoints:
- `get_script_context`
- `get_script_languages`

#### Warnings:
Synced flush is deprecated and will be removed in 8.0.

### X-Pack

#### New API endpoints:
- `ml/delete_trained_model`
- `ml/explain_data_frame_analytics`
- `ml/get_trained_models`
- `ml/get_trained_models_stats`
- `ml/put_trained_model`

#### API changes:
- `license/get`: Added parameter `accept_enterprise`.
- `ml/delete_data_frame_analytics` Added parameter `force`.
- `monitoring/bulk` - Removed parameter `system_version`.

## 7.5.0

- Support for Elasticsearch 7.5.
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch-api/lib/elasticsearch/api/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

module Elasticsearch
module API
VERSION = "7.5.0"
VERSION = "7.6.0"
end
end
6 changes: 3 additions & 3 deletions elasticsearch-transport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Currently these libraries will be automatically detected and used:
- [HTTPClient](https://rubygems.org/gems/httpclient)
- [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent)

**Note on [Typhoeus](https://github.com/typhoeus/typhoeus)**: Typhoeus is compatible and will be automatically detected too. However, the latest release (v1.3.1 at the moment of writing this) is not compatible with Faraday 1.0. [It still uses the deprecated `Faraday::Error` namespace](https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100). If you want to use it with this gem, we suggest getting `master` from GitHub, since this has been fixed for v1.4.0. We'll update this if/when v1.4.0 is released.a
**Note on [Typhoeus](https://github.com/typhoeus/typhoeus)**: Typhoeus is compatible and will be automatically detected too. However, the latest release (v1.3.1 at the moment of writing this) is not compatible with Faraday 1.0. [It still uses the deprecated `Faraday::Error` namespace](https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100). If you want to use it with this gem, we suggest getting `master` from GitHub, since this has been fixed for v1.4.0. We'll update this if/when v1.4.0 is released.

For detailed information, see example configurations [below](#transport-implementations).

Expand Down Expand Up @@ -336,8 +336,8 @@ Then, create a new client, and the _Patron_ gem will be used as the "driver":

client = Elasticsearch::Client.new

client.transport.connections.first.connection.builder.handlers
# => [Faraday::Adapter::Patron]
client.transport.connections.first.connection.builder.adapter
# => Faraday::Adapter::Patron

10.times do
client.nodes.stats(metric: 'http')['nodes'].values.each do |n|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

module Elasticsearch
module Transport
VERSION = "7.5.0"
VERSION = "7.6.0"
end
end
2 changes: 1 addition & 1 deletion elasticsearch-xpack/lib/elasticsearch/xpack/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

module Elasticsearch
module XPack
VERSION = "7.5.0"
VERSION = "7.6.0"
end
end
4 changes: 2 additions & 2 deletions elasticsearch/elasticsearch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.4'

s.add_dependency 'elasticsearch-transport', '7.5.0'
s.add_dependency 'elasticsearch-api', '7.5.0'
s.add_dependency 'elasticsearch-transport', '7.6.0'
s.add_dependency 'elasticsearch-api', '7.6.0'

s.add_development_dependency 'bundler'

Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/lib/elasticsearch/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# See the LICENSE file in the project root for more information

module Elasticsearch
VERSION = "7.5.0"
VERSION = "7.6.0"
end

0 comments on commit 3362dae

Please sign in to comment.