From acc080c21136d6011f3dc4bc829fdcdb37fad30d Mon Sep 17 00:00:00 2001 From: Jiajia Wang Date: Thu, 20 May 2021 20:41:42 +1000 Subject: [PATCH] [Fix #795] Mark change as breaking --- CHANGELOG.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ef00c753..be4f4421c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ ### Changes + * [#795](https://github.com/toptal/chewy/issues/795): **(Breaking)** Change the Chewy::Search::Parameters::Order implementation to use Array ([@jiajiawang][]): + * To allow multiple sorting options that may have the same key name. For example script based sorting whose key will always be `_script`. + * Behaviour change of chained `order` calls. + * e.g. `.order(_script: {a: 1}).order(_script: {b: 2})` + * Before `{:sort=>[{"_script"=>{:b=>2}}]}` + * After `{:sort=>[{"_script"=>{:a=>1}},{"_script"=>{:b=>2}}]}` + * [#654](https://github.com/toptal/chewy/issues/654): Add helpers and matchers for testing ([@Vitalina-Vakulchyk][]): * `mock_elasticsearch_response` helpers both Rspec and Minitest - to mock elasticsearch response * `mock_elasticsearch_response_sources` helpers both Rspec and Minitest - to mock elasticsearch response sources @@ -14,9 +21,6 @@ ### Bugs Fixed - * [#795](https://github.com/toptal/chewy/issues/795): Change the Chewy::Search::Parameters::Order implementation to use Array ([@jiajiawang][]): - * To allow multiple sorting options that may have the same key name. For example script based sorting whose key will always be `_script`. - ## 7.2.1 (2021-05-11) ### New Features