Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5ecbee3
Optimize CI execution on PR and Push, to not run them twice (#858)
Sep 19, 2022
73b2fb1
Allow async options for `delete_all` method (#857)
Oct 10, 2022
4c067e2
Fix redundant crutch call with :update_fields opt (#863)
skcc321 Nov 15, 2022
e6fe792
Prepare 7.2.7 release (#865)
Nov 15, 2022
7869c3b
Fix github CI
Dec 23, 2022
0ad19ab
Fix return value for subscribed_task_stats (#856)
fabiormoura Dec 23, 2022
fed4a21
fixed a few typos in the Readme file (#867)
Ygnys Jan 13, 2023
7ee4005
Rename Rogue One to Platform SRE (#870)
AlexVPopov Jan 17, 2023
8ea2cfe
[feature] delayed_sidekiq strategy (#869)
skcc321 Mar 31, 2023
7566f1d
Configure CI to check for ruby 3.2 compatibility (#879)
Apr 3, 2023
8b886d7
Prepare 7.3.0 release (#880)
Apr 3, 2023
8e3fa9a
Fix `chewy:journal:clean` task for ruby 3.x (#874)
muk-ai Apr 5, 2023
1e9a1e0
Replace bypass description with one that better describes behaviour (…
RobNicholsGDS Apr 6, 2023
827591d
Fix memory leak for ruby 3.2 (#882)
Apr 20, 2023
7fb0b50
Prepare 7.3.1 release (#883)
Apr 20, 2023
c20d112
Fix in mock_elasticsearch_response_sources (#861)
lafeber Apr 20, 2023
8fe3d0f
Prepare 7.3.2 release (#884)
Apr 21, 2023
f77e9dc
Skip journal creation on import (#888)
Jul 5, 2023
94d8e11
Prepare 7.3.3 release (#889)
Jul 7, 2023
541b696
Add task to create all indexes (#892)
Aug 29, 2023
e10c655
Bump version to 7.3.4 (#893)
Aug 29, 2023
3eba904
Add dependabot configuation (#896)
ebeagusamuel Oct 6, 2023
22ead9a
Bump actions/checkout from 2 to 4 (#897)
dependabot[bot] Oct 12, 2023
317dd93
[Fix #903] Fix deprecation warning in LogSubscriber when updating to …
alejandroperea Dec 6, 2023
1a5594f
Bump version to 7.3.5 (#908)
Dec 6, 2023
a3f5026
Add KNN (#890)
jkostolansky Dec 12, 2023
6addcb3
Bump version and update changelog (#913)
Dec 13, 2023
f9681e4
Remove ruby 2.x (#911)
Dec 13, 2023
7ffdcbe
Make a release (#914)
Dec 13, 2023
63d6458
Update CHANGELOG.md (#915)
tomdev Dec 16, 2023
ea0ed0a
Add helper to cleanup delayed sidekiq timechunks (#894)
Drowze Dec 16, 2023
cf07086
Add before request filter (#919)
Jan 15, 2024
f383e47
Bump chewy to 7.5.0 (#920)
Jan 15, 2024
8954835
Update rubocop requirement from 1.48 to 1.60.0 (#921)
dependabot[bot] Jan 18, 2024
c833003
Update rubocop requirement from 1.60.0 to 1.60.1 (#923)
dependabot[bot] Jan 25, 2024
8604b4a
Make default index scope cleanup behavior configurable (#925)
barthez Jan 30, 2024
7460f8e
Prepare 7.5.1 release (#926)
barthez Jan 30, 2024
35a0b7b
Update rubocop requirement from 1.60.1 to 1.60.2 (#927)
dependabot[bot] Feb 9, 2024
4cebde6
Update rubocop requirement from 1.60.2 to 1.61.0 (#931)
dependabot[bot] Mar 7, 2024
4fde2ac
Update rubocop requirement from 1.61.0 to 1.62.1 (#932)
dependabot[bot] Mar 15, 2024
cdb5ee7
Update rubocop requirement from 1.62.1 to 1.63.0 (#936)
dependabot[bot] Apr 11, 2024
41e4741
Update rubocop requirement from 1.63.0 to 1.63.2 (#939)
dependabot[bot] Apr 18, 2024
3d559bb
Update rubocop requirement from 1.63.2 to 1.63.3 (#945)
dependabot[bot] Apr 25, 2024
7e65698
Relax allowed `elasticsearch` dependency version (#933)
mjankowski May 1, 2024
f45460f
Fix intermittent time-based failure in delayed sidekiq spec (#947)
mjankowski May 2, 2024
04e5984
Update rubocop requirement from 1.63.3 to 1.63.4 (#946)
dependabot[bot] May 2, 2024
c99741e
[fix] delayed_sidekiq race condition (#937)
skcc321 May 3, 2024
17cd230
Bump version to 7.6.0 (#948)
May 6, 2024
a51f162
Update rubocop requirement from 1.63.4 to 1.63.5 (#949)
dependabot[bot] May 23, 2024
86f9e3c
Update rubocop requirement from 1.63.5 to 1.64.1 (#953)
dependabot[bot] Jun 6, 2024
2d6a3f5
Rename team (#957)
dgsuarez Jul 10, 2024
7b4ae30
Update rubocop requirement from 1.64.1 to 1.65.0 (#958)
dependabot[bot] Jul 18, 2024
0c50cb8
Update rubocop requirement from 1.65.0 to 1.65.1 (#961)
dependabot[bot] Aug 7, 2024
84c0eed
ElasticSearch v. 8 upgrade (#962)
ql Aug 30, 2024
d2c38f7
Bump chewy version to 8.0.0-beta (#963)
Sep 4, 2024
5193d28
Assign dependabot PR's to sre (#966)
ebeagusamuel Sep 13, 2024
17597e6
Adding Ruby 3.3 and Rails 7.2 to CI matrix (#967)
jotolo Sep 30, 2024
21c5407
updating ruby and active record versions based on test suite (#968)
jotolo Oct 7, 2024
6a2176f
Fix id conversion issue in delayed_sidekiq strategy (#964)
sundus-y Oct 8, 2024
9790bd8
Merge remote-tracking branch 'upstream/master'
michael-accredible Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.github/workflows @toptal/rogue-one
* @toptal/sre
42 changes: 42 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2
registries:
toptal-github:
type: "git"
url: "https://github.com"
username: "x-access-token"
password: "${{secrets.DEPENDABOT_GITHUB_TOKEN}}"

updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: "weekly"
day: "wednesday"
time: "07:00"
pull-request-branch-name:
separator: "-"
labels:
- "no-jira"
- "ruby"
- "dependencies"
reviewers:
- "toptal/sre"
registries:
- toptal-github
insecure-external-code-execution: allow
open-pull-requests-limit: 3
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "wednesday"
time: "07:00"
pull-request-branch-name:
separator: "-"
labels:
- "no-jira"
- "dependencies"
- "gha"
reviewers:
- "toptal/sre"
open-pull-requests-limit: 3
71 changes: 34 additions & 37 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,63 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
types: [
synchronize, # PR was updated
opened, # PR was open
reopened # PR was reopened
]

jobs:
ruby-2:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7]
gemfile: [rails.5.2.activerecord, rails.6.0.activerecord, rails.6.1.activerecord]
name: ${{ matrix.ruby }}-${{ matrix.gemfile }}

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@9de0f78f306e4ebc0838f057e6b754364685e759
with:
stack-version: 7.10.1
port: 9250
- name: Tests
run: bundle exec rspec

ruby-3:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '3.0', 3.1 ]
gemfile: [ rails.6.1.activerecord, rails.7.0.activerecord ]
ruby: [ '3.0', '3.1', '3.2', '3.3' ]
gemfile: [rails.6.1.activerecord, rails.7.0.activerecord, rails.7.1.activerecord, rails.7.2.activerecord]
exclude:
- ruby: '3.0'
gemfile: rails.7.2.activerecord
name: ${{ matrix.ruby }}-${{ matrix.gemfile }}

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

services:
redis:
# Docker Hub image
image: redis
ports:
- '6379:6379'
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@9de0f78f306e4ebc0838f057e6b754364685e759
with:
stack-version: 7.10.1
port: 9250
- name: Start containers
run: |
docker compose up elasticsearch_test -d
sleep 15

- name: Tests
run: bundle exec rspec

rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.0
bundler-cache: true
- run: bundle exec rubocop --format simple
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_from: .rubocop_todo.yml

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 3.0

Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Expand Down Expand Up @@ -59,3 +59,6 @@ Metrics/ModuleLength:
Exclude:
- 'lib/chewy/rake_helper.rb'
- '**/*_spec.rb'

Style/ArgumentsForwarding:
Enabled: false
134 changes: 134 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,140 @@

### Bugs Fixed

* [#964](https://github.com/toptal/chewy/pull/964): Fix `delayed_sidekiq` worker to handle UUID primary keys correctly.

## 8.0.0-beta (2024-08-27)

### New Features

* [#962](https://github.com/toptal/chewy/pull/962): ElasticSearch v.8 support added

* `delete_all_enabled` setting introduced to align Chewy.massacre with wildcard indices deletion disabled in ES 8 by default

### Changes

### Bugs Fixed

## 7.6.0 (2024-05-03)

### Changes

* [#933](https://github.com/toptal/chewy/pull/933): Relax allowed `elasticsearch` dependency versions. ([@mjankowski][])

### Bugs Fixed
* [#937](https://github.com/toptal/chewy/pull/937): Fix for race condition while using the `delayed_sidekiq` strategy. Also, fix for Redis bloating in case of reindexing error ([@skcc321](https://github.com/skcc321))

* [#947](https://github.com/toptal/chewy/pull/947): Fix intermittent time-based failure in delayed sidekiq spec. ([@mjankowski][])

## 7.5.1 (2024-01-30)

### New Features

* [#925](https://github.com/toptal/chewy/pull/925): Add configuration option for default scope cleanup behavior. ([@barthez][])

### Changes

### Bugs Fixed

## 7.5.0 (2024-01-15)

### New Features

* [#894](https://github.com/toptal/chewy/pull/894): Way of cleaning redis from artifacts left by `delayed_sidekiq` strategy which could potentially cause flaky tests. ([@Drowze](https://github.com/Drowze))
* [#919](https://github.com/toptal/chewy/pull/919): Add pre-request filter ([@konalegi][https://github.com/konalegi])

## 7.4.0 (2023-12-13)

### New Features

### Changes

* [#911](https://github.com/toptal/chewy/pull/911): Remove ruby 2.x. ([@konalegi][https://github.com/konalegi])

### Bugs Fixed

## 7.3.6 (2023-12-13)

### New Features

* [#890](https://github.com/toptal/chewy/pull/890): Add the [`knn`](https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html) option to the request. ([@jkostolansky][])

### Changes

### Bugs Fixed

## 7.3.5 (2023-12-06)

### New Features

* [#907](https://github.com/toptal/chewy/pull/907): Fix deprecation warning in LogSubscriber for Rails 7.1 ([@alejandroperea](https://github.com/alejandroperea))

### Changes

### Bugs Fixed

## 7.3.4 (2023-08-29)

### New Features

* [#888](https://github.com/toptal/chewy/pull/892): Rake task to create missing indexes ([@konalegi](https://github.com/konalegi))

### Changes

### Bugs Fixed

## 7.3.3 (2023-07-07)

### New Features

* [#888](https://github.com/toptal/chewy/pull/888/files): Skip journal creation on import ([@konalegi](https://github.com/konalegi))

### Changes

### Bugs Fixed

## 7.3.2 (2023-04-20)

### New Features

### Changes

### Bugs Fixed

* [#861](https://github.com/toptal/chewy/pull/861): Fix bug in mock_elasticsearch_response_sources ([@lafeber](https://github.com/lafeber))

## 7.3.1 (2023-04-20)

### Bugs Fixed

* [#874](https://github.com/toptal/chewy/pull/874): Fix `chewy:journal:clean` task for ruby 3.x. ([@muk-ai](https://github.com/muk-ai))
* [#882](https://github.com/toptal/chewy/pull/882): Fix memory leak during `chewy:reset` for ruby 3.2 ([@konalegi](https://github.com/konalegi))

## 7.3.0 (2023-04-03)

### New Features

* [#869](https://github.com/toptal/chewy/pull/869): New strategy - `delayed_sidekiq`. Allow passing `strategy: :delayed_sidekiq` option to `SomeIndex.import([1, ...], strategy: :delayed_sidekiq)`. The strategy is compatible with `update_fields` option as well. ([@skcc321][])
* [#879](https://github.com/toptal/chewy/pull/879): Configure CI to check for ruby 3.2 compatibility. ([@konalegi][])

### Changes

### Bugs Fixed

* [#856](https://github.com/toptal/chewy/pull/856): Fix return value of subscribed_task_stats used in rake tasks. ([@fabiormoura][])

## 7.2.7 (2022-11-15)

### New Features

* [#857](https://github.com/toptal/chewy/pull/857): Allow passing `wait_for_completion`, `request_per_second` and `scroll_size` options to `chewy:journal:clean` rake task and `delete_all` query builder method. ([@konalegi][])([@barthez][])

### Changes

### Bugs Fixed

* [#863](https://github.com/toptal/chewy/pull/863): Fix `crutches` call doesn't respect `update_fields` option. ([@skcc321][])

## 7.2.6 (2022-06-13)

### New Features
Expand Down
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
source 'https://rubygems.org'

gemspec

gem 'activerecord'

gem 'activejob', require: false
Expand All @@ -18,5 +16,7 @@ gem 'guard-rspec'
gem 'redcarpet'
gem 'yard'

gem 'rexml' if RUBY_VERSION >= '3.0.0'
gem 'ruby2_keywords' if RUBY_VERSION < '2.7'
gem 'rexml'

eval_gemfile 'gemfiles/base.gemfile'
gemspec
Loading
Loading