chewy v7.2.2 Release Notes
Release Date: 2021-05-24 // almost 3 years ago-
🔄 Changes
#800: Revert #787 progressbar feature to avoid performance degradation in parallel import ([@rabotyaga][])
#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}}]}
- e.g.
- To allow multiple sorting options that may have the same key name. For example script based sorting whose key will always be
#654: Add helpers and matchers for testing ([@Vitalina-Vakulchyk][]):
mock_elasticsearch_response
helpers both Rspec and Minitest - to mock elasticsearch responsemock_elasticsearch_response_sources
helpers both Rspec and Minitest - to mock elasticsearch response sourcesassert_elasticsearch_query
helper for Minitest - to compare request and expected query (returnstrue
/false
)build_query
matcher for Rspec - to compare request and expected query (returnstrue
/false
)