legion-data 1.4.14 → 1.4.15
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 +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/legion/data/archival/policy.rb +2 -1
- data/lib/legion/data/archival.rb +2 -1
- data/lib/legion/data/connection.rb +2 -1
- data/lib/legion/data/event_store.rb +2 -1
- data/lib/legion/data/models/audit_log.rb +2 -1
- data/lib/legion/data/models/function.rb +2 -1
- data/lib/legion/data/models/node.rb +4 -2
- data/lib/legion/data/partition_manager.rb +2 -1
- data/lib/legion/data/storage_tiers.rb +2 -1
- data/lib/legion/data/vector.rb +2 -1
- data/lib/legion/data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3540f36a62fa90f16f23d81a183182864298c98e3d17a467a28a4e9a6055cb46
|
|
4
|
+
data.tar.gz: 50d842872a790b53dd05a5bdeff94d7aa5bca211a5b53ad79c2b4e2789983fc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea5fb9d6fe7c67fffc599112cf38a56d03bed8bcf5cd7cdf1211b15fc07ee018e95aa3baca4e7cdf69a3448779729cc00901a1f77575382e17e6d004a501132a
|
|
7
|
+
data.tar.gz: f24f77b30277f93dc6f61834e9e6d29b7ecb6a6e9c8dd795891999069629ddaaa0058e3cc57c87e38146900fd4e856192990cfaca1205b14e7736ff282f709ed
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Legion::Data Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.15] - 2026-03-22
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Added `Legion::Logging` calls (guarded with `defined?`) to all previously silent rescue blocks
|
|
7
|
+
- `archival/policy.rb`: warn log on `Policy.from_settings` failure
|
|
8
|
+
- `archival.rb`: debug log on `db_ready?` failure
|
|
9
|
+
- `connection.rb`: debug log on `data_tls_settings` failure
|
|
10
|
+
- `event_store.rb`: debug log on `db_ready?` failure
|
|
11
|
+
- `models/audit_log.rb`: warn log on `parsed_detail` JSON parse failure
|
|
12
|
+
- `models/function.rb`: debug log on `embedding_vector` JSON parse failure
|
|
13
|
+
- `models/node.rb`: debug log on `parsed_metrics` and `parsed_hosted_worker_ids` JSON parse failures
|
|
14
|
+
- `partition_manager.rb`: warn log (via `log_warn`) on `partition_names_for` failure
|
|
15
|
+
- `storage_tiers.rb`: debug log on `count_tier` failure
|
|
16
|
+
- `vector.rb`: debug log on `available?` check failure
|
|
17
|
+
|
|
3
18
|
## [1.4.14] - 2026-03-22
|
|
4
19
|
|
|
5
20
|
### Changed
|
|
@@ -37,7 +37,8 @@ module Legion
|
|
|
37
37
|
return new unless archival.is_a?(Hash)
|
|
38
38
|
|
|
39
39
|
new(**archival.slice(:warm_after_days, :cold_after_days, :batch_size, :tables))
|
|
40
|
-
rescue StandardError
|
|
40
|
+
rescue StandardError => e
|
|
41
|
+
Legion::Logging.warn("Policy.from_settings failed: #{e.message}") if defined?(Legion::Logging)
|
|
41
42
|
new
|
|
42
43
|
end
|
|
43
44
|
end
|
data/lib/legion/data/archival.rb
CHANGED
|
@@ -85,7 +85,8 @@ module Legion
|
|
|
85
85
|
|
|
86
86
|
def db_ready?(table)
|
|
87
87
|
defined?(Legion::Data) && Legion::Data.connection&.table_exists?(table)
|
|
88
|
-
rescue StandardError
|
|
88
|
+
rescue StandardError => e
|
|
89
|
+
Legion::Logging.debug("Archival#db_ready? check failed for #{table}: #{e.message}") if defined?(Legion::Logging)
|
|
89
90
|
false
|
|
90
91
|
end
|
|
91
92
|
end
|
|
@@ -134,7 +134,8 @@ module Legion
|
|
|
134
134
|
return {} unless defined?(Legion::Settings)
|
|
135
135
|
|
|
136
136
|
Legion::Settings[:data][:tls] || {}
|
|
137
|
-
rescue StandardError
|
|
137
|
+
rescue StandardError => e
|
|
138
|
+
Legion::Logging.debug("Connection#data_tls_settings failed: #{e.message}") if defined?(Legion::Logging)
|
|
138
139
|
{}
|
|
139
140
|
end
|
|
140
141
|
|
|
@@ -110,7 +110,8 @@ module Legion
|
|
|
110
110
|
|
|
111
111
|
def db_ready?
|
|
112
112
|
defined?(Legion::Data) && Legion::Data.connection&.table_exists?(:governance_events)
|
|
113
|
-
rescue StandardError
|
|
113
|
+
rescue StandardError => e
|
|
114
|
+
Legion::Logging.debug("EventStore#db_ready? check failed: #{e.message}") if defined?(Legion::Logging)
|
|
114
115
|
false
|
|
115
116
|
end
|
|
116
117
|
end
|
|
@@ -12,7 +12,8 @@ module Legion
|
|
|
12
12
|
return nil unless embedding
|
|
13
13
|
|
|
14
14
|
::JSON.parse(embedding)
|
|
15
|
-
rescue ::JSON::ParserError
|
|
15
|
+
rescue ::JSON::ParserError => e
|
|
16
|
+
Legion::Logging.debug("Function#embedding_vector JSON parse failed: #{e.message}") if defined?(Legion::Logging)
|
|
16
17
|
nil
|
|
17
18
|
end
|
|
18
19
|
|
|
@@ -10,7 +10,8 @@ module Legion
|
|
|
10
10
|
return nil unless metrics
|
|
11
11
|
|
|
12
12
|
Legion::JSON.load(metrics)
|
|
13
|
-
rescue StandardError
|
|
13
|
+
rescue StandardError => e
|
|
14
|
+
Legion::Logging.debug("Node#parsed_metrics JSON parse failed: #{e.message}") if defined?(Legion::Logging)
|
|
14
15
|
nil
|
|
15
16
|
end
|
|
16
17
|
|
|
@@ -18,7 +19,8 @@ module Legion
|
|
|
18
19
|
return [] unless hosted_worker_ids
|
|
19
20
|
|
|
20
21
|
Legion::JSON.load(hosted_worker_ids)
|
|
21
|
-
rescue StandardError
|
|
22
|
+
rescue StandardError => e
|
|
23
|
+
Legion::Logging.debug("Node#parsed_hosted_worker_ids JSON parse failed: #{e.message}") if defined?(Legion::Logging)
|
|
22
24
|
[]
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -58,7 +58,8 @@ module Legion
|
|
|
58
58
|
|
|
59
59
|
def count_tier(tier)
|
|
60
60
|
Legion::Data.connection[:data_archive].where(tier: TIERS[tier]).count
|
|
61
|
-
rescue StandardError
|
|
61
|
+
rescue StandardError => e
|
|
62
|
+
Legion::Logging.debug("StorageTiers#count_tier failed for #{tier}: #{e.message}") if defined?(Legion::Logging)
|
|
62
63
|
0
|
|
63
64
|
end
|
|
64
65
|
end
|
data/lib/legion/data/vector.rb
CHANGED
|
@@ -9,7 +9,8 @@ module Legion
|
|
|
9
9
|
return false unless Legion::Data.connection.adapter_scheme == :postgres
|
|
10
10
|
|
|
11
11
|
Legion::Data.connection.fetch("SELECT 1 FROM pg_extension WHERE extname = 'vector'").any?
|
|
12
|
-
rescue StandardError
|
|
12
|
+
rescue StandardError => e
|
|
13
|
+
Legion::Logging.debug("Vector#available? check failed: #{e.message}") if defined?(Legion::Logging)
|
|
13
14
|
false
|
|
14
15
|
end
|
|
15
16
|
|
data/lib/legion/data/version.rb
CHANGED