foobara 0.0.70 → 0.0.72
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f37230e03dfeded35416a8552cb0877017b3258cf994be9b223da77a833fc5a
|
4
|
+
data.tar.gz: 8eeb368cb063d05208513067d39e353e43074abe54d40767867b593cbd9157b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6732b1d9abb5f2b9a8e738adf2db35cfaba3f8e0decd30de843ae09efb007a5ead774075390e8648030c3f52c17b2c124b1647614b56a6a22c2634eef8c5bdf
|
7
|
+
data.tar.gz: 176d48303bb79763ef67b0485cd90ff657fa406f1727969ae5c674d3f3b874ca7e466d4190c48910d1b968666665cfe23cfbf36302d38d88ac3ec48b0a575721
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# [0.0.72] - 2025-03-07
|
2
|
+
|
3
|
+
- Fix bug in find_many_by when there are required attributes not present in the filter
|
4
|
+
|
5
|
+
# [0.0.71] - 2025-03-06
|
6
|
+
|
7
|
+
- Make require_primary_key: the default in AttributesHelpers
|
8
|
+
|
1
9
|
# [0.0.70] - 2025-03-06
|
2
10
|
|
3
11
|
- Make sure Foobara::Command.depends_on is inherited
|
@@ -136,7 +136,7 @@ module Foobara
|
|
136
136
|
if element_type
|
137
137
|
construct_associations(element_type, path.append(:"#"), result)
|
138
138
|
end
|
139
|
-
elsif type.extends?(BuiltinTypes[:attributes])
|
139
|
+
elsif type.extends?(BuiltinTypes[:attributes]) # TODO: matches attributes itself instead of only subtypes
|
140
140
|
type.element_types.each_pair do |attribute_name, element_type|
|
141
141
|
construct_associations(element_type, path.append(attribute_name), result)
|
142
142
|
end
|
@@ -25,7 +25,7 @@ module Foobara
|
|
25
25
|
respond_to?(:foobara_primary_key_attribute)
|
26
26
|
end
|
27
27
|
|
28
|
-
def foobara_attributes_for_update(require_primary_key:
|
28
|
+
def foobara_attributes_for_update(require_primary_key: true)
|
29
29
|
foobara_attributes_for_aggregate_update(require_primary_key:)
|
30
30
|
end
|
31
31
|
|
@@ -40,7 +40,7 @@ module Foobara
|
|
40
40
|
Foobara::TypeDeclarations::Attributes.reject(declaration, foobara_primary_key_attribute)
|
41
41
|
end
|
42
42
|
|
43
|
-
def foobara_attributes_for_aggregate_update(require_primary_key:
|
43
|
+
def foobara_attributes_for_aggregate_update(require_primary_key: true, initial: true)
|
44
44
|
declaration = foobara_attributes_type.declaration_data
|
45
45
|
declaration = Util.deep_dup(declaration)
|
46
46
|
|
@@ -51,7 +51,7 @@ module Foobara
|
|
51
51
|
if require_primary_key
|
52
52
|
declaration[:required] = [foobara_primary_key_attribute]
|
53
53
|
else
|
54
|
-
TypeDeclarations::Attributes.reject(declaration, foobara_primary_key_attribute)
|
54
|
+
declaration = TypeDeclarations::Attributes.reject(declaration, foobara_primary_key_attribute)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -68,7 +68,7 @@ module Foobara
|
|
68
68
|
declaration
|
69
69
|
end
|
70
70
|
|
71
|
-
def foobara_attributes_for_atom_update(require_primary_key:
|
71
|
+
def foobara_attributes_for_atom_update(require_primary_key: true)
|
72
72
|
declaration = foobara_attributes_type.declaration_data
|
73
73
|
declaration = Util.deep_dup(declaration)
|
74
74
|
|
@@ -282,7 +282,8 @@ module Foobara
|
|
282
282
|
end
|
283
283
|
|
284
284
|
def find_many_by(attributes_filter)
|
285
|
-
|
285
|
+
find_by_type = entity_class.domain.foobara_type_from_declaration(entity_class.attributes_for_find_by)
|
286
|
+
attributes_filter = find_by_type.process_value!(attributes_filter)
|
286
287
|
|
287
288
|
yielded_ids = Set.new
|
288
289
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.72
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-08 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bigdecimal
|