foobara-resque-scheduler-connector 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b4b654f0c0edfc32910e7ae2d7bcc1688811be044cebbc4ebd1613501efb988
4
- data.tar.gz: a6db4cd78a059d1373dd96d4033466721a82ddf4881dd6dba8eb124eead2263a
3
+ metadata.gz: d2b4e8c40e05514d6de9f98df912a5f03901d76a13de49dc96f4eedbe02cc9f3
4
+ data.tar.gz: 0d4de4a799684cca7afa6bcb9d5866b52ac02955c96bcdfddde6bf745e8f5e0b
5
5
  SHA512:
6
- metadata.gz: b18116c37cad5f3feecaa82793086892cd7973c9139c32e0ce44dc6d4bb8de7007e14a855e0213cb4da42f32c109700fe20d3fa534f5f0c579bbc534a7e1b763
7
- data.tar.gz: f5b908183c3067b04f946d524403427061d768e1568de4bf5e457a00a6b3f750e2d6872e1250c4ab721b4938e76d291bbb418abffc6b319027af92d6cc4a9132
6
+ metadata.gz: a565aab37fdf87e4a6765323e04c6cf177846043741cce8c793f2da93070b662dc688a6cae8d0c43a5e9929669be6abba113ccaf953df24dc516762cf1a4e314
7
+ data.tar.gz: e4fce152df00784d8f945adad68a488f202a34df6293a43d6ed0c3055065314643a0d79b186dfd0938776ac4e23ecc8786c427d13073b18710a8f3f31c2bcfd6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.2] - 2024-12-12
2
+
3
+ - Store records as primary keys when stashing away inputs in Redis
4
+
1
5
  ## [0.0.1] - 2024-12-12
2
6
 
3
7
  - Release as a gem
@@ -82,7 +82,13 @@ module Foobara
82
82
  h[:description] = description if description
83
83
 
84
84
  if inputs
85
- h[:args][:inputs] = command_class.inputs_type.process_value!(inputs)
85
+ # TODO: it would be nice to use a constructed type where all entities are converted to their primary key
86
+ # types so that we could validate inputs before stuffing them into Redis. But for now we will just
87
+ # stick stuff in there raw because otherwise if we used inputs_type then primary key values would be
88
+ # cast to thunks and that would explode without a transaction.
89
+ serializer_class = CommandConnectors::Serializers::EntitiesToPrimaryKeysSerializer
90
+ serializer = serializer_class.new(detached_to_primary_key: true)
91
+ h[:args][:inputs] = serializer.serialize(inputs)
86
92
  end
87
93
 
88
94
  connector_name = resque_connector.name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-resque-scheduler-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi