chewy v7.2.2 Release Notes

Release Date: 2021-05-24 // 5 months 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}}]}
    • #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
      • assert_elasticsearch_query helper for Minitest - to compare request and expected query (returns true/false)
      • build_query matcher for Rspec - to compare request and expected query (returns true/false)

Previous changes from v7.2.1

  • 🆕 New Features

    • #469: Add ability to output the progressbar with ENV['PROGRESS'] during reset rake tasks ([@Vitalina-Vakulchyk][]):
      • for rake chewy:reset and rake chewy:parallel:reset
      • progressbar is hidden by default, set ENV['PROGRESS'] to true to display it

    🐛 Bugs Fixed

    • #796: Fix clear scroll: pass scroll_id in body, as passing in path parameters is deprecated and can overflow http.max_initial_line_length ([@rabotyaga][])