forked from toptal/chewy
-
Notifications
You must be signed in to change notification settings - Fork 1
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
amol21p
wants to merge
190
commits into
master
Choose a base branch
from
amol/v7.6.0_fork
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Amol/v7.6.0 fork #14
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Setup CI on CircleCI
Allow configuration of Active Job queue name
Added Ruby 2.7 to CircleCI config
Fixed deprecation warnings in Ruby 2.7
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.
Thanks to @rabotyaga for the solution
Update Rails version in CI matrix
…ry_warning Patch ElasticSearch deprecation warning
Add support for Ruby 3
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>
This reverts commit 420d4cd.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR uses the toptal/chewy's 7.6.0 tag release and applies apollo specific changes required on it.