Skip to content

Commit

Permalink
feat: backward compatibility for lazy_update_document_attributes and …
Browse files Browse the repository at this point in the history
…eager_include_document_attributes
  • Loading branch information
marcosgz committed Aug 16, 2024
1 parent 6803804 commit 50a613d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/esse/index/documents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ def import(*repo_types, context: {}, eager_load_lazy_attributes: false, update_l
repo_types = repo_hash.keys if repo_types.empty?
count = 0

# Backward compatibility while I change plugins using it
update_lazy_attributes = options.delete(:lazy_update_document_attributes) if options.key?(:lazy_update_document_attributes)
eager_load_lazy_attributes = options.delete(:eager_include_document_attributes) if options.key?(:eager_include_document_attributes)

repo_hash.slice(*repo_types).each do |repo_name, repo|
# Elasticsearch 6.x and older have multiple types per index.
# This gem supports multiple types per index for backward compatibility, but we recommend to update
Expand Down

0 comments on commit 50a613d

Please sign in to comment.