connectors_utility 8.7.0.0 → 8.10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bde5d9fcfd7af80dd1a20bc3fdffb3e509af46fc492607fa963858aacdb79bc
4
- data.tar.gz: b3f26fba69d08e1add58b476a37a74f3fa855790d9bcea05c7a4f5ed3b1fd9bf
3
+ metadata.gz: cecf3c0cb5d8ae36980ea24589f4a7f696b44d50d7c0ee6a78fbcb178abfafb0
4
+ data.tar.gz: 205f276fdaa771be59c18aba83eb453774597fa89faa4df06c1e52f554b335ac
5
5
  SHA512:
6
- metadata.gz: 1eb4c63b6ae46d11b8b8e01224e1e1943a1971b7e12054978ebab97c99939fb1d0316b3ff06912d4908e8f34df482477e4e8d1f9b53c02fcebc809e27b597d2a
7
- data.tar.gz: 2300a3a9c32ed95a1c25a54fba4737bb052caee10756887f2ac114948ec8a8ba0df066ee30420f5e3d64e0f5855df7e487f4782bc242e27ea66b592c6c60dbe6
6
+ metadata.gz: 49e16535ac0af49175f653b674beff17f587a3af76ba95e857f45689999f21b89d221195423ecfd1e1bc50d9591cd3fb8a78d7f05c26da26578a33da7ad910da
7
+ data.tar.gz: c4e643d267a2fbfed3cae91eba61ee12c2edf08417eeebcb780ebf0eab02fa033ce62cd598058f0c203cdcec4ca2444caa17dac8279d93c9d00cb36cc2bab256
@@ -103,7 +103,11 @@ module Core
103
103
  end
104
104
 
105
105
  def scheduling_settings
106
- self[:scheduling]
106
+ self[:scheduling] || {}
107
+ end
108
+
109
+ def full_sync_scheduling
110
+ scheduling_settings[:full]
107
111
  end
108
112
 
109
113
  def custom_scheduling_settings
@@ -61,9 +61,14 @@ module Core
61
61
 
62
62
  def connectors_meta
63
63
  # TODO: remove the usage of with_indifferent_access. Ideally this should return a hash or nil if not found
64
- alias_mappings = client.indices.get_mapping(:index => Utility::Constants::CONNECTORS_INDEX).with_indifferent_access
64
+ alias_mappings = client.indices.get_mapping(:index => Utility::Constants::CONNECTORS_INDEX, :ignore => 404).with_indifferent_access
65
65
  index = get_latest_index_in_alias(Utility::Constants::CONNECTORS_INDEX, alias_mappings.keys)
66
- alias_mappings.dig(index, 'mappings', '_meta') || {}
66
+ alias_mappings.dig(index, 'mappings', '_meta') || {
67
+ :extract_binary_content => true,
68
+ :name => 'ent-search-generic-ingestion',
69
+ :reduce_whitespace => true,
70
+ :run_ml_inference => false,
71
+ }
67
72
  end
68
73
 
69
74
  def search_connectors(query, page_size, offset)
@@ -80,7 +80,7 @@ module Core
80
80
  return true
81
81
  end
82
82
 
83
- schedule_triggered?(connector_settings.scheduling_settings, connector_settings.formatted)
83
+ schedule_triggered?(connector_settings.full_sync_scheduling, connector_settings.formatted)
84
84
  end
85
85
 
86
86
  def heartbeat_triggered?(connector_settings)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connectors_utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.7.0.0
4
+ version: 8.10.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-28 00:00:00.000000000 Z
11
+ date: 2023-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -132,7 +132,7 @@ homepage: https://github.com/elastic/connectors-ruby
132
132
  licenses:
133
133
  - Elastic-2.0
134
134
  metadata:
135
- revision: ae6292137eef9acac1259c5e7e71a3d0e149210b
135
+ revision: f2cac87a2b02a3ed2ab6257bc8be742150304120
136
136
  repository: https://github.com/elastic/connectors-ruby
137
137
  post_install_message:
138
138
  rdoc_options: []