esse-async_indexing 0.1.0.rc1 → 0.1.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/esse/async_indexing/actions/bulk_update_lazy_attribute.rb +7 -2
- data/lib/esse/async_indexing/actions/delete_document.rb +2 -0
- data/lib/esse/async_indexing/cli/async_update_lazy_attributes.rb +1 -1
- data/lib/esse/async_indexing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f54f5e1cef1f47b69ce2c732fd011c0ef35a17cfd1e6caa6767f00dfd8e9409
|
4
|
+
data.tar.gz: 8b8fe14da90b51311999b7806785f88b87fa976b4608ed0f631ff70ee5755c88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3059199d52d8ade40c64938a2db4847dc84d86b8de0c8231485b636e78a69132474ae26471b680115606e19377f1a4b43cf2326e97c473a14734e590046837bf
|
7
|
+
data.tar.gz: 57b84cfd6102b70e34385785d818b1497ae12830db649b4cbe3e2fed00a1bdc5daa27ed4e5516908ed723c9795a12b22a2bbfa9e446a00c21c409365156bd5f9
|
data/Gemfile.lock
CHANGED
@@ -6,8 +6,13 @@ module Esse::AsyncIndexing::Actions
|
|
6
6
|
_index_class, repo_class = CoerceIndexRepository.call(index_class_name, repo_name)
|
7
7
|
kwargs = Esse::HashUtils.deep_transform_keys(options, &:to_sym)
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
real_attr_name = repo_class.lazy_document_attribute_names(attr_name).first
|
10
|
+
if real_attr_name.nil? # let the job fail? or log and return?
|
11
|
+
Esse.logger.warn("Lazy attribute #{attr_name.inspect} not found in `#{repo_name}` repository of `#{index_class_name}` index.")
|
12
|
+
return
|
13
|
+
end
|
14
|
+
|
15
|
+
repo_class.update_documents_attribute(real_attr_name, ids, **kwargs)
|
11
16
|
ids
|
12
17
|
end
|
13
18
|
end
|
@@ -71,7 +71,7 @@ class Esse::AsyncIndexing::CLI::AsyncUpdateLazyAttributes < Esse::CLI::Index::Ba
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def repo_attributes(repo)
|
74
|
-
return repo.
|
74
|
+
return repo.lazy_document_attribute_names(true) if attributes.empty?
|
75
75
|
|
76
76
|
repo.lazy_document_attribute_names(attributes)
|
77
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esse-async_indexing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos G. Zimmermann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: esse
|