From 49f9820967efe7312d396b21f44c99bc443105ce Mon Sep 17 00:00:00 2001 From: Ivan Rabotyaga Date: Mon, 19 Apr 2021 17:55:31 +0300 Subject: [PATCH] Prepare 7.2.0 release (#788) --- CHANGELOG.md | 10 ++++++++-- README.md | 1 + lib/chewy/version.rb | 2 +- migration_guide.md | 14 ++++++++++++++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03a9bb8b2..d6ef5911e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## master (unreleased) +### New Features + +### Changes + +### Bugs Fixed + +## 7.2.0 (2021-04-19) + ### New Features * [#778](https://github.com/toptal/chewy/pull/778): Add `ignore_blank` option to `field` method ([@Vitalina-Vakulchyk][]): @@ -52,8 +60,6 @@ * `rake chewy:apply_changes_from` is removed, use `rake chewy:journal:apply` instead * `rake chewy:clean_journal` is removed, use `rake chewy:journal:clean` instead -### Bugs Fixed - ## 7.1.0 (2021-03-03) ### Changes diff --git a/README.md b/README.md index de8337969..af74ff971 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ Chewy is compatible with MRI 2.6-3.0ยน. | Chewy version | Elasticsearch version | | ------------- | ---------------------------------- | +| 7.2.x | 7.x | | 7.1.x | 7.x | | 7.0.0 | 6.8, 7.x | | 6.0.0 | 5.x, 6.x | diff --git a/lib/chewy/version.rb b/lib/chewy/version.rb index 1fd9c9304..cae11b3be 100644 --- a/lib/chewy/version.rb +++ b/lib/chewy/version.rb @@ -1,3 +1,3 @@ module Chewy - VERSION = '7.1.0'.freeze + VERSION = '7.2.0'.freeze end diff --git a/migration_guide.md b/migration_guide.md index 0ffb535a5..838329ce6 100644 --- a/migration_guide.md +++ b/migration_guide.md @@ -17,6 +17,20 @@ In order to upgrade Chewy 6/Elasticsearch 6 to Chewy 7/Elasticsearch 7 in the mo * Run your test suite on Chewy 7.1 / Elasticsearch 7 * Run manual tests on Chewy 7.1 / Elasticsearch 7 * Upgrade to Chewy 7.1 +* Upgrade to Chewy 7.2: + * Remove all the the `Chewy::Type` class usages, e.g. remove `CitiesIndex::City` / `CitiesIndex.city` + * `CitiesIndex::City.import! ...` becomes `CitiesIndex.import! ...` + * Update indexes with simplified DSL: + * `define_type` block -> `index_scope` clause + * it can be omitted completely, if you don't need to specify the scope or options, e.g. `name` + * Remove type names from string representations: + * in `update_index` ActiveRecord helper and RSpec matcher, e.g. + * `update_index('cities#city')` -> `update_index('cities')` + * `update_index(UsersIndex::User)` -> `update_index(UsersIndex)` + * in rake tasks (e.g. `rake chewy:update[cities#city]` -> `rake chewy:update[cities]`) + * rake tasks output is also changed (e.g. `Imported CitiesIndex::City in 1s, stats: index 3` -> `Imported CitiesIndex in 1s, stats: index 3`) + * Use index name instead of type name in loader additional scope + * e.g. `CitiesIndex.filter(...).load(city: {scope: City.where(...)})` -> `CitiesIndex.filter(...).load(cities: {scope: City.where(...)})` ## Chewy 5/Elasticsearch 5 to Chewy 6/Elasticsearch 6