Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amol/v7.6.0 fork #14

Open
wants to merge 190 commits into
base: master
Choose a base branch
from
Open

Amol/v7.6.0 fork #14

wants to merge 190 commits into from

Conversation

amol21p
Copy link

@amol21p amol21p commented Oct 16, 2024

This PR uses the toptal/chewy's 7.6.0 tag release and applies apollo specific changes required on it.

  1. Added support for multiple hosts
  2. Added searchable proc support - This is used to pass context of valid documents for index while reindexing
  3. Mongoid support was dropped in Chewy 7. We have added the adapter again along with feature parity from our current forked version
  4. Custom merge strategy for avoiding unnecessary nesting
  5. Added _index_type specific changes
  6. Some changes related to x_opaque_id
  7. Support for replace_post_filter

AlexVPopov and others added 30 commits April 21, 2020 17:22
Fix deprecation warning for contructing new BigDecimal
This commit sets up CircleCI for combinations of ruby 2.6/2.5,
mongoid, ActiveRecord 6.0/5.2.

It also marks some specs as pending, as they are not allowed in
elasticsearch now. They will be addressed in a separate PR.
Allow configuration of Active Job queue name
Added Ruby 2.7 to CircleCI config
Fixes deprecation warnings
```
warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
```

1. Fixed warning when calling `response.records`, warning backtrace:
```
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/search/loader.rb:55:in `block in load'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/search/loader.rb:50:in `each'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/search/loader.rb:50:in `each_with_object'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/search/loader.rb:50:in `load'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/search/response.rb:85:in `objects'
```

2. Fixed warning when calling `SomeIndex.reset!((Time.now.to_f * 1000).round)`, warning backtrace:
```
  # gems/chewy-74470f2525b2/lib/chewy/type/adapter/active_record.rb:25:in `import_scope'
  # gems/chewy-74470f2525b2/lib/chewy/type/adapter/orm.rb:79:in `import'
  # gems/chewy-74470f2525b2/lib/chewy/type/import.rb:142:in `block in import_linear'
  # /home/aglushkov/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
  # /home/aglushkov/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
  # /home/aglushkov/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
  # gems/chewy-74470f2525b2/lib/chewy/type/import.rb:141:in `import_linear'
  # gems/chewy-74470f2525b2/lib/chewy/type/import.rb:136:in `import_routine'
  # gems/chewy-74470f2525b2/lib/chewy/type/import.rb:76:in `import'
  # gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:149:in `block in import'
  # gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:147:in `map'
  # gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:147:in `import'
  # gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:182:in `reset!'
```

3. Same  `SomeIndex.reset!((Time.now.to_f * 1000).round)`, warning backtrace:
```
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/type/import.rb:130:in `new'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/type/import.rb:130:in `import_routine'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/type/import.rb:76:in `import'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:149:in `block in import'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:147:in `map'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:147:in `import'
  # gems/2.7.0/bundler/gems/chewy-74470f2525b2/lib/chewy/index/actions.rb:182:in `reset!'
```
Fix instructions for AWS ElasticSearch configuration in README as it is outdated.
Seems we're blocked by rspec/rspec-mocks#1394

This reverts commit da4ff3e.
Update Rails version in CI matrix
…ry_warning

Patch ElasticSearch deprecation warning
dependabot bot and others added 30 commits April 25, 2024 09:56
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.63.2...v1.63.3)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Relax allowed `elasticsearch` dependency version

* Update tracer/logger access style

* Add changelog notes
* Fix intermittent time-based failure in delayed sidekiq spec

This example was previously failing when it was run at exactly an "even"
10 second increment time. For example, it would fail at "12:00:10", but
pass at "12:00:09" and "12:00:11". This leads to intermittent failures
on CI (presumably around ~10% of runs).

Updated to use a helper method in the spec which more closely mirrors
the scheduler code.

* Add changelog notes
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.63.3...v1.63.4)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.