-
Notifications
You must be signed in to change notification settings - Fork 369
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
Add support for direct_import parameter to skip objects reloading #753
Conversation
53c647e
to
6af1cba
Compare
6af1cba
to
1ac3699
Compare
1ac3699
to
2c3a8a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add the option to the Chewy::Type::IMPORT_OPTIONS_KEYS
? I think otherwise it would be impossible to use it in default_import_options
.
@rabotyaga I was checking values at < consistency
> direct_import
< pipeline
< raw_import
< refresh
< replication
> parallel
> suffix
> update_failover
> update_fields Do you think that the same applies for |
@dalthon chewy/lib/chewy/type/import/routine.rb Lines 25 to 30 in 7efd2e3
raw_import is passed to orm adapter.Let's leave missing import keys like update_failover & update_fields since nobody complains.
And let's add CHANGELOG entry. |
@rabotyaga changelog added |
9bc77d1
to
235d8fc
Compare
…pe on import * Skimpier direct_import * Fix linter error in orm.rb * Add spec and fixed an issue related to ids * Update lib/chewy/type/import.rb * Allow direct_import as default import options * Update CHANGELOG.md * Add a note about default `direct_import` value * Improve error messages in db_queries helpers Co-authored-by: Ivan Rabotyaga <ivan.rabotyaga@toptal.com> Co-authored-by: Dalton Pinto <dalton.pinto@toptal.com>
ca44e94
to
869ae88
Compare
…pe on import (toptal#753) * Skimpier direct_import * Fix linter error in orm.rb * Add spec and fixed an issue related to ids * Update lib/chewy/type/import.rb * Allow direct_import as default import options * Update CHANGELOG.md * Add a note about default `direct_import` value * Improve error messages in db_queries helpers Co-authored-by: Tikhon Botchkarev <tikhon.b@sereth.com> Co-authored-by: Ivan Rabotyaga <ivan.rabotyaga@toptal.com>
Just a rebase of #637 with added spec and a small fix regarding id types