sandthorn_sequel_projection 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/.autotest +3 -0
  3. data/.gitignore +23 -0
  4. data/.rspec +2 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +9 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +130 -0
  11. data/Rakefile +16 -0
  12. data/lib/sandthorn_sequel_projection.rb +57 -0
  13. data/lib/sandthorn_sequel_projection/cursor.rb +39 -0
  14. data/lib/sandthorn_sequel_projection/errors.rb +14 -0
  15. data/lib/sandthorn_sequel_projection/event_handler.rb +49 -0
  16. data/lib/sandthorn_sequel_projection/event_handler_collection.rb +27 -0
  17. data/lib/sandthorn_sequel_projection/lock.rb +83 -0
  18. data/lib/sandthorn_sequel_projection/manifest.rb +10 -0
  19. data/lib/sandthorn_sequel_projection/processed_events_tracker.rb +94 -0
  20. data/lib/sandthorn_sequel_projection/projection.rb +65 -0
  21. data/lib/sandthorn_sequel_projection/runner.rb +62 -0
  22. data/lib/sandthorn_sequel_projection/tasks.rb +14 -0
  23. data/lib/sandthorn_sequel_projection/utilities.rb +5 -0
  24. data/lib/sandthorn_sequel_projection/utilities/core_extensions/array_wrap.rb +13 -0
  25. data/lib/sandthorn_sequel_projection/utilities/null_proc.rb +9 -0
  26. data/lib/sandthorn_sequel_projection/version.rb +3 -0
  27. data/sandthorn_sequel_projection.gemspec +37 -0
  28. data/spec/cursor_spec.rb +44 -0
  29. data/spec/event_handler_collection_spec.rb +39 -0
  30. data/spec/event_handler_spec.rb +82 -0
  31. data/spec/integration/projection_spec.rb +126 -0
  32. data/spec/lock_spec.rb +141 -0
  33. data/spec/processed_events_tracker_spec.rb +79 -0
  34. data/spec/projection_spec.rb +91 -0
  35. data/spec/runner_spec.rb +32 -0
  36. data/spec/spec_helper.rb +23 -0
  37. data/spec/support/mock_event_store.rb +39 -0
  38. data/spec/test_data/event_data.json +1876 -0
  39. data/spec/utilities/null_proc_spec.rb +14 -0
  40. metadata +262 -0
@@ -0,0 +1,23 @@
1
+ if ENV['CODECLIMATE_REPO_TOKEN']
2
+ require "codeclimate-test-reporter"
3
+ CodeClimate::TestReporter.start
4
+ else
5
+ require 'simplecov'
6
+ SimpleCov.start
7
+ end
8
+
9
+ require 'sandthorn_sequel_projection'
10
+ require 'sandthorn_event_filter/rspec/custom_matchers'
11
+ require 'support/mock_event_store'
12
+
13
+ RSpec.configure do |config|
14
+ config.before(:each) do
15
+ SandthornSequelProjection.configure do |config|
16
+ config.db_connection = Sequel.sqlite
17
+ end
18
+ end
19
+ end
20
+
21
+ Sandthorn.configure do |sand|
22
+ sand.event_stores = { default: SandthornSequelProjection::MockEventStore.new }
23
+ end
@@ -0,0 +1,39 @@
1
+ require 'json'
2
+
3
+ module SandthornSequelProjection
4
+ class MockEventStore
5
+
6
+ def initialize(events = nil)
7
+ @events = Array.wrap(events)
8
+ end
9
+
10
+ def reset(events = [])
11
+ @events = events
12
+ end
13
+
14
+ def add_event(event)
15
+ @events << event
16
+ end
17
+
18
+ alias_method :add, :add_event
19
+
20
+ def get_events(after_sequence_number: 0, take: 1)
21
+ unless numeric?(after_sequence_number, take)
22
+ raise ArgumentError, "arguments have to be numbers, received: #{after_sequence_number.inspect} and #{take.inspect}"
23
+ end
24
+ start = after_sequence_number
25
+ stop = after_sequence_number + take - 1
26
+ Array.wrap(@events[start..stop])
27
+ end
28
+
29
+ def numeric?(*args)
30
+ args.all? { |arg| arg.is_a?(Numeric) }
31
+ end
32
+
33
+ def self.with_data
34
+ self.new(JSON.parse(File.read("./spec/test_data/event_data.json"), symbolize_names: true))
35
+ end
36
+
37
+ end
38
+
39
+ end
@@ -0,0 +1,1876 @@
1
+ [{"aggregate_type":"SandthornProduct",
2
+ "aggregate_version":1,
3
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
4
+ "sequence_number":1,
5
+ "event_name":"new",
6
+ "timestamp":"2014-04-08 12:22:09 UTC",
7
+ "event_args":{"method_name":"new",
8
+ "method_args":[{"name":"Morgan",
9
+ "price":"666",
10
+ "stock_status":"instock"}],
11
+ "attribute_deltas":[{"attribute_name":"name",
12
+ "old_value":null,
13
+ "new_value":"Morgan"},
14
+ {"attribute_name":"price",
15
+ "old_value":null,
16
+ "new_value":"666"},
17
+ {"attribute_name":"stock_status",
18
+ "old_value":null,
19
+ "new_value":"instock"},
20
+ {"attribute_name":"active",
21
+ "old_value":null,
22
+ "new_value":true},
23
+ {"attribute_name":"aggregate_id",
24
+ "old_value":null,
25
+ "new_value":"da932773-dd06-43dc-8c0c-61837f009226"}]}},
26
+ {"aggregate_type":"SandthornProduct",
27
+ "aggregate_version":2,
28
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
29
+ "sequence_number":2,
30
+ "event_name":"name_updated",
31
+ "timestamp":"2014-04-08 12:22:17 UTC",
32
+ "event_args":{"method_name":"name_updated",
33
+ "method_args":[],
34
+ "attribute_deltas":[{"attribute_name":"name",
35
+ "old_value":"Morgan",
36
+ "new_value":"Morgan Hallgren"}]}},
37
+ {"aggregate_type":"SandthornProduct",
38
+ "aggregate_version":3,
39
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
40
+ "sequence_number":3,
41
+ "event_name":"price_updated",
42
+ "timestamp":"2014-04-08 12:22:19 UTC",
43
+ "event_args":{"method_name":"price_updated",
44
+ "method_args":[],
45
+ "attribute_deltas":[{"attribute_name":"price",
46
+ "old_value":"666",
47
+ "new_value":"999"}]}},
48
+ {"aggregate_type":"SandthornProduct",
49
+ "aggregate_version":4,
50
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
51
+ "sequence_number":4,
52
+ "event_name":"product_discontinued",
53
+ "timestamp":"2014-04-08 12:22:20 UTC",
54
+ "event_args":{"method_name":"product_discontinued",
55
+ "method_args":[],
56
+ "attribute_deltas":[{"attribute_name":"stock_status",
57
+ "old_value":"instock",
58
+ "new_value":"discontinued"}]}},
59
+ {"aggregate_type":"SandthornProduct",
60
+ "aggregate_version":5,
61
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
62
+ "sequence_number":5,
63
+ "event_name":"price_updated",
64
+ "timestamp":"2014-04-08 13:35:29 UTC",
65
+ "event_args":{"method_name":"price_updated",
66
+ "method_args":[],
67
+ "attribute_deltas":[{"attribute_name":"price",
68
+ "old_value":"999",
69
+ "new_value":"1000"}]}},
70
+ {"aggregate_type":"SandthornProduct",
71
+ "aggregate_version":6,
72
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
73
+ "sequence_number":6,
74
+ "event_name":"price_updated",
75
+ "timestamp":"2014-04-08 13:40:28 UTC",
76
+ "event_args":{"method_name":"price_updated",
77
+ "method_args":[],
78
+ "attribute_deltas":[{"attribute_name":"price",
79
+ "old_value":"1000",
80
+ "new_value":"1001"}]}},
81
+ {"aggregate_type":"SandthornProduct",
82
+ "aggregate_version":7,
83
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
84
+ "sequence_number":7,
85
+ "event_name":"product_on_sale",
86
+ "timestamp":"2014-04-09 09:14:45 UTC",
87
+ "event_args":{"method_name":"product_on_sale",
88
+ "method_args":[],
89
+ "attribute_deltas":[{"attribute_name":"name",
90
+ "old_value":"Morgan Hallgren",
91
+ "new_value":"ON SALE!!!! Morgan Hallgren"},
92
+ {"attribute_name":"price",
93
+ "old_value":"1001",
94
+ "new_value":0},
95
+ {"attribute_name":"on_sale",
96
+ "old_value":false,
97
+ "new_value":true}]}},
98
+ {"aggregate_type":"SandthornProduct",
99
+ "aggregate_version":8,
100
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
101
+ "sequence_number":8,
102
+ "event_name":"removed_from_sale",
103
+ "timestamp":"2014-04-09 09:15:03 UTC",
104
+ "event_args":{"method_name":"removed_from_sale",
105
+ "method_args":[],
106
+ "attribute_deltas":[{"attribute_name":"name",
107
+ "old_value":"ON SALE!!!! Morgan Hallgren",
108
+ "new_value":"Morgan Hallgren"},
109
+ {"attribute_name":"on_sale",
110
+ "old_value":true,
111
+ "new_value":false}]}},
112
+ {"aggregate_type":"SandthornProduct",
113
+ "aggregate_version":9,
114
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
115
+ "sequence_number":9,
116
+ "event_name":"price_updated",
117
+ "timestamp":"2014-04-09 09:15:06 UTC",
118
+ "event_args":{"method_name":"price_updated",
119
+ "method_args":[],
120
+ "attribute_deltas":[{"attribute_name":"price",
121
+ "old_value":0,
122
+ "new_value":100}]}},
123
+ {"aggregate_type":"SandthornProduct",
124
+ "aggregate_version":10,
125
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
126
+ "sequence_number":10,
127
+ "event_name":"product_on_sale",
128
+ "timestamp":"2014-04-09 09:15:11 UTC",
129
+ "event_args":{"method_name":"product_on_sale",
130
+ "method_args":[],
131
+ "attribute_deltas":[{"attribute_name":"name",
132
+ "old_value":"Morgan Hallgren",
133
+ "new_value":"ON SALE!!!! Morgan Hallgren"},
134
+ {"attribute_name":"price",
135
+ "old_value":100,
136
+ "new_value":80},
137
+ {"attribute_name":"on_sale",
138
+ "old_value":false,
139
+ "new_value":true}]}},
140
+ {"aggregate_type":"SandthornProduct",
141
+ "aggregate_version":11,
142
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
143
+ "sequence_number":11,
144
+ "event_name":"product_out_of_stock",
145
+ "timestamp":"2014-04-09 19:45:38 UTC",
146
+ "event_args":{"method_name":"product_out_of_stock",
147
+ "method_args":[],
148
+ "attribute_deltas":[{"attribute_name":"stock_status",
149
+ "old_value":"discontinued",
150
+ "new_value":"outofstock"}]}},
151
+ {"aggregate_type":"SandthornProduct",
152
+ "aggregate_version":12,
153
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
154
+ "sequence_number":12,
155
+ "event_name":"removed_from_sale",
156
+ "timestamp":"2014-04-09 19:45:53 UTC",
157
+ "event_args":{"method_name":"removed_from_sale",
158
+ "method_args":[],
159
+ "attribute_deltas":[{"attribute_name":"name",
160
+ "old_value":"ON SALE!!!! Morgan Hallgren",
161
+ "new_value":"Morgan Hallgren"},
162
+ {"attribute_name":"price",
163
+ "old_value":80,
164
+ "new_value":100},
165
+ {"attribute_name":"on_sale",
166
+ "old_value":true,
167
+ "new_value":false}]}},
168
+ {"aggregate_type":"SandthornProduct",
169
+ "aggregate_version":13,
170
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
171
+ "sequence_number":13,
172
+ "event_name":"price_updated",
173
+ "timestamp":"2014-04-10 14:03:28 UTC",
174
+ "event_args":{"method_name":"price_updated",
175
+ "method_args":[],
176
+ "attribute_deltas":[{"attribute_name":"price",
177
+ "old_value":100,
178
+ "new_value":111}]}},
179
+ {"aggregate_type":"SandthornProduct",
180
+ "aggregate_version":14,
181
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
182
+ "sequence_number":14,
183
+ "event_name":"stock_status_updated",
184
+ "timestamp":"2014-04-10 14:03:28 UTC",
185
+ "event_args":{"method_name":"stock_status_updated",
186
+ "method_args":[],
187
+ "attribute_deltas":[{"attribute_name":"stock_status",
188
+ "old_value":"outofstock",
189
+ "new_value":null}]}},
190
+ {"aggregate_type":"SandthornProduct",
191
+ "aggregate_version":15,
192
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
193
+ "sequence_number":15,
194
+ "event_name":"stock_status_updated",
195
+ "timestamp":"2014-04-10 21:32:30 UTC",
196
+ "event_args":{"method_name":"stock_status_updated",
197
+ "method_args":[],
198
+ "attribute_deltas":[{"attribute_name":"stock_status",
199
+ "old_value":null,
200
+ "new_value":"discontinued"}]}},
201
+ {"aggregate_type":"SandthornProduct",
202
+ "aggregate_version":16,
203
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
204
+ "sequence_number":16,
205
+ "event_name":"product_on_sale",
206
+ "timestamp":"2014-04-10 21:32:55 UTC",
207
+ "event_args":{"method_name":"product_on_sale",
208
+ "method_args":[],
209
+ "attribute_deltas":[{"attribute_name":"name",
210
+ "old_value":"Morgan Hallgren",
211
+ "new_value":"ON SALE!!!! Morgan Hallgren"},
212
+ {"attribute_name":"price",
213
+ "old_value":111,
214
+ "new_value":88},
215
+ {"attribute_name":"on_sale",
216
+ "old_value":false,
217
+ "new_value":true}]}},
218
+ {"aggregate_type":"SandthornProduct",
219
+ "aggregate_version":17,
220
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
221
+ "sequence_number":17,
222
+ "event_name":"removed_from_sale",
223
+ "timestamp":"2014-04-10 21:32:56 UTC",
224
+ "event_args":{"method_name":"removed_from_sale",
225
+ "method_args":[],
226
+ "attribute_deltas":[{"attribute_name":"name",
227
+ "old_value":"ON SALE!!!! Morgan Hallgren",
228
+ "new_value":"Morgan Hallgren"},
229
+ {"attribute_name":"price",
230
+ "old_value":88,
231
+ "new_value":110},
232
+ {"attribute_name":"on_sale",
233
+ "old_value":true,
234
+ "new_value":false}]}},
235
+ {"aggregate_type":"SandthornProduct",
236
+ "aggregate_version":18,
237
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
238
+ "sequence_number":18,
239
+ "event_name":"product_on_sale",
240
+ "timestamp":"2014-04-10 21:32:57 UTC",
241
+ "event_args":{"method_name":"product_on_sale",
242
+ "method_args":[],
243
+ "attribute_deltas":[{"attribute_name":"name",
244
+ "old_value":"Morgan Hallgren",
245
+ "new_value":"ON SALE!!!! Morgan Hallgren"},
246
+ {"attribute_name":"price",
247
+ "old_value":110,
248
+ "new_value":88},
249
+ {"attribute_name":"on_sale",
250
+ "old_value":false,
251
+ "new_value":true}]}},
252
+ {"aggregate_type":"SandthornProduct",
253
+ "aggregate_version":19,
254
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
255
+ "sequence_number":19,
256
+ "event_name":"removed_from_sale",
257
+ "timestamp":"2014-04-10 21:32:58 UTC",
258
+ "event_args":{"method_name":"removed_from_sale",
259
+ "method_args":[],
260
+ "attribute_deltas":[{"attribute_name":"name",
261
+ "old_value":"ON SALE!!!! Morgan Hallgren",
262
+ "new_value":"Morgan Hallgren"},
263
+ {"attribute_name":"price",
264
+ "old_value":88,
265
+ "new_value":110},
266
+ {"attribute_name":"on_sale",
267
+ "old_value":true,
268
+ "new_value":false}]}},
269
+ {"aggregate_type":"SandthornProduct",
270
+ "aggregate_version":20,
271
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
272
+ "sequence_number":20,
273
+ "event_name":"product_on_sale",
274
+ "timestamp":"2014-04-10 21:32:59 UTC",
275
+ "event_args":{"method_name":"product_on_sale",
276
+ "method_args":[],
277
+ "attribute_deltas":[{"attribute_name":"name",
278
+ "old_value":"Morgan Hallgren",
279
+ "new_value":"ON SALE!!!! Morgan Hallgren"},
280
+ {"attribute_name":"price",
281
+ "old_value":110,
282
+ "new_value":88},
283
+ {"attribute_name":"on_sale",
284
+ "old_value":false,
285
+ "new_value":true}]}},
286
+ {"aggregate_type":"SandthornProduct",
287
+ "aggregate_version":1,
288
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
289
+ "sequence_number":21,
290
+ "event_name":"new",
291
+ "timestamp":"2014-08-11 02:55:23 UTC",
292
+ "event_args":{"method_name":"new",
293
+ "method_args":[{"name":"banana",
294
+ "price":"900",
295
+ "stock_status":"instock"}],
296
+ "attribute_deltas":[{"attribute_name":"name",
297
+ "old_value":null,
298
+ "new_value":"banana"},
299
+ {"attribute_name":"price",
300
+ "old_value":null,
301
+ "new_value":900},
302
+ {"attribute_name":"stock_status",
303
+ "old_value":null,
304
+ "new_value":"instock"},
305
+ {"attribute_name":"active",
306
+ "old_value":null,
307
+ "new_value":true},
308
+ {"attribute_name":"on_sale",
309
+ "old_value":null,
310
+ "new_value":false},
311
+ {"attribute_name":"aggregate_id",
312
+ "old_value":null,
313
+ "new_value":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a"}]}},
314
+ {"aggregate_type":"SandthornProduct",
315
+ "aggregate_version":21,
316
+ "aggregate_id":"da932773-dd06-43dc-8c0c-61837f009226",
317
+ "sequence_number":22,
318
+ "event_name":"destroyed",
319
+ "timestamp":"2014-08-12 18:56:33 UTC",
320
+ "event_args":{"method_name":"destroyed",
321
+ "method_args":[],
322
+ "attribute_deltas":[{"attribute_name":"active",
323
+ "old_value":true,
324
+ "new_value":false}]}},
325
+ {"aggregate_type":"SandthornProduct",
326
+ "aggregate_version":2,
327
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
328
+ "sequence_number":23,
329
+ "event_name":"product_out_of_stock",
330
+ "timestamp":"2014-08-12 18:57:20 UTC",
331
+ "event_args":{"method_name":"product_out_of_stock",
332
+ "method_args":[],
333
+ "attribute_deltas":[{"attribute_name":"stock_status",
334
+ "old_value":"instock",
335
+ "new_value":"outofstock"}]}},
336
+ {"aggregate_type":"SandthornProduct",
337
+ "aggregate_version":3,
338
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
339
+ "sequence_number":24,
340
+ "event_name":"product_discontinued",
341
+ "timestamp":"2014-08-12 18:57:30 UTC",
342
+ "event_args":{"method_name":"product_discontinued",
343
+ "method_args":[],
344
+ "attribute_deltas":[{"attribute_name":"stock_status",
345
+ "old_value":"outofstock",
346
+ "new_value":"discontinued"}]}},
347
+ {"aggregate_type":"SandthornProduct",
348
+ "aggregate_version":4,
349
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
350
+ "sequence_number":25,
351
+ "event_name":"stock_status_updated",
352
+ "timestamp":"2014-08-12 19:07:33 UTC",
353
+ "event_args":{"method_name":"stock_status_updated",
354
+ "method_args":[],
355
+ "attribute_deltas":[{"attribute_name":"stock_status",
356
+ "old_value":"discontinued",
357
+ "new_value":"instock"}]}},
358
+ {"aggregate_type":"SandthornProduct",
359
+ "aggregate_version":1,
360
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
361
+ "sequence_number":26,
362
+ "event_name":"new",
363
+ "timestamp":"2014-08-12 19:08:48 UTC",
364
+ "event_args":{"method_name":"new",
365
+ "method_args":[{"name":"food",
366
+ "price":"10",
367
+ "stock_status":"instock"}],
368
+ "attribute_deltas":[{"attribute_name":"name",
369
+ "old_value":null,
370
+ "new_value":"food"},
371
+ {"attribute_name":"price",
372
+ "old_value":null,
373
+ "new_value":10},
374
+ {"attribute_name":"stock_status",
375
+ "old_value":null,
376
+ "new_value":"instock"},
377
+ {"attribute_name":"active",
378
+ "old_value":null,
379
+ "new_value":true},
380
+ {"attribute_name":"on_sale",
381
+ "old_value":null,
382
+ "new_value":false},
383
+ {"attribute_name":"aggregate_id",
384
+ "old_value":null,
385
+ "new_value":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d"}]}},
386
+ {"aggregate_type":"SandthornProduct",
387
+ "aggregate_version":5,
388
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
389
+ "sequence_number":27,
390
+ "event_name":"stock_status_updated",
391
+ "timestamp":"2014-08-12 19:44:38 UTC",
392
+ "event_args":{"method_name":"stock_status_updated",
393
+ "method_args":[],
394
+ "attribute_deltas":[{"attribute_name":"stock_status",
395
+ "old_value":"instock",
396
+ "new_value":"discontinued"}]}},
397
+ {"aggregate_type":"SandthornProduct",
398
+ "aggregate_version":2,
399
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
400
+ "sequence_number":28,
401
+ "event_name":"product_on_sale",
402
+ "timestamp":"2014-08-12 21:05:17 UTC",
403
+ "event_args":{"method_name":"product_on_sale",
404
+ "method_args":[],
405
+ "attribute_deltas":[{"attribute_name":"name",
406
+ "old_value":"food",
407
+ "new_value":"ON SALE!!!! food"},
408
+ {"attribute_name":"price",
409
+ "old_value":10,
410
+ "new_value":8},
411
+ {"attribute_name":"on_sale",
412
+ "old_value":false,
413
+ "new_value":true}]}},
414
+ {"aggregate_type":"SandthornProduct",
415
+ "aggregate_version":6,
416
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
417
+ "sequence_number":29,
418
+ "event_name":"name_updated",
419
+ "timestamp":"2014-08-13 00:33:31 UTC",
420
+ "event_args":{"method_name":"name_updated",
421
+ "method_args":[],
422
+ "attribute_deltas":[{"attribute_name":"name",
423
+ "old_value":"banana",
424
+ "new_value":"banana0"}]}},
425
+ {"aggregate_type":"SandthornProduct",
426
+ "aggregate_version":7,
427
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
428
+ "sequence_number":30,
429
+ "event_name":"stock_status_updated",
430
+ "timestamp":"2014-08-13 03:21:13 UTC",
431
+ "event_args":{"method_name":"stock_status_updated",
432
+ "method_args":[],
433
+ "attribute_deltas":[{"attribute_name":"stock_status",
434
+ "old_value":"discontinued",
435
+ "new_value":"instock"}]}},
436
+ {"aggregate_type":"SandthornProduct",
437
+ "aggregate_version":8,
438
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
439
+ "sequence_number":31,
440
+ "event_name":"product_on_sale",
441
+ "timestamp":"2014-08-13 03:21:13 UTC",
442
+ "event_args":{"method_name":"product_on_sale",
443
+ "method_args":[],
444
+ "attribute_deltas":[{"attribute_name":"name",
445
+ "old_value":"banana0",
446
+ "new_value":"ON SALE!!!! banana0"},
447
+ {"attribute_name":"price",
448
+ "old_value":900,
449
+ "new_value":720},
450
+ {"attribute_name":"on_sale",
451
+ "old_value":false,
452
+ "new_value":true}]}},
453
+ {"aggregate_type":"SandthornProduct",
454
+ "aggregate_version":9,
455
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
456
+ "sequence_number":32,
457
+ "event_name":"product_discontinued",
458
+ "timestamp":"2014-08-13 03:23:08 UTC",
459
+ "event_args":{"method_name":"product_discontinued",
460
+ "method_args":[],
461
+ "attribute_deltas":[{"attribute_name":"stock_status",
462
+ "old_value":"instock",
463
+ "new_value":"discontinued"}]}},
464
+ {"aggregate_type":"SandthornProduct",
465
+ "aggregate_version":10,
466
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
467
+ "sequence_number":33,
468
+ "event_name":"product_out_of_stock",
469
+ "timestamp":"2014-08-13 03:23:09 UTC",
470
+ "event_args":{"method_name":"product_out_of_stock",
471
+ "method_args":[],
472
+ "attribute_deltas":[{"attribute_name":"stock_status",
473
+ "old_value":"discontinued",
474
+ "new_value":"outofstock"}]}},
475
+ {"aggregate_type":"SandthornProduct",
476
+ "aggregate_version":11,
477
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
478
+ "sequence_number":34,
479
+ "event_name":"product_in_stock",
480
+ "timestamp":"2014-08-13 03:23:09 UTC",
481
+ "event_args":{"method_name":"product_in_stock",
482
+ "method_args":[],
483
+ "attribute_deltas":[{"attribute_name":"stock_status",
484
+ "old_value":"outofstock",
485
+ "new_value":"instock"}]}},
486
+ {"aggregate_type":"SandthornProduct",
487
+ "aggregate_version":12,
488
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
489
+ "sequence_number":35,
490
+ "event_name":"product_out_of_stock",
491
+ "timestamp":"2014-08-13 03:23:09 UTC",
492
+ "event_args":{"method_name":"product_out_of_stock",
493
+ "method_args":[],
494
+ "attribute_deltas":[{"attribute_name":"stock_status",
495
+ "old_value":"instock",
496
+ "new_value":"outofstock"}]}},
497
+ {"aggregate_type":"SandthornProduct",
498
+ "aggregate_version":13,
499
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
500
+ "sequence_number":36,
501
+ "event_name":"product_in_stock",
502
+ "timestamp":"2014-08-13 03:23:10 UTC",
503
+ "event_args":{"method_name":"product_in_stock",
504
+ "method_args":[],
505
+ "attribute_deltas":[{"attribute_name":"stock_status",
506
+ "old_value":"outofstock",
507
+ "new_value":"instock"}]}},
508
+ {"aggregate_type":"SandthornProduct",
509
+ "aggregate_version":14,
510
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
511
+ "sequence_number":37,
512
+ "event_name":"product_out_of_stock",
513
+ "timestamp":"2014-08-13 03:23:10 UTC",
514
+ "event_args":{"method_name":"product_out_of_stock",
515
+ "method_args":[],
516
+ "attribute_deltas":[{"attribute_name":"stock_status",
517
+ "old_value":"instock",
518
+ "new_value":"outofstock"}]}},
519
+ {"aggregate_type":"SandthornProduct",
520
+ "aggregate_version":15,
521
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
522
+ "sequence_number":38,
523
+ "event_name":"product_in_stock",
524
+ "timestamp":"2014-08-13 03:23:11 UTC",
525
+ "event_args":{"method_name":"product_in_stock",
526
+ "method_args":[],
527
+ "attribute_deltas":[{"attribute_name":"stock_status",
528
+ "old_value":"outofstock",
529
+ "new_value":"instock"}]}},
530
+ {"aggregate_type":"SandthornProduct",
531
+ "aggregate_version":16,
532
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
533
+ "sequence_number":39,
534
+ "event_name":"product_out_of_stock",
535
+ "timestamp":"2014-08-13 03:23:11 UTC",
536
+ "event_args":{"method_name":"product_out_of_stock",
537
+ "method_args":[],
538
+ "attribute_deltas":[{"attribute_name":"stock_status",
539
+ "old_value":"instock",
540
+ "new_value":"outofstock"}]}},
541
+ {"aggregate_type":"SandthornProduct",
542
+ "aggregate_version":17,
543
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
544
+ "sequence_number":40,
545
+ "event_name":"product_in_stock",
546
+ "timestamp":"2014-08-13 03:23:11 UTC",
547
+ "event_args":{"method_name":"product_in_stock",
548
+ "method_args":[],
549
+ "attribute_deltas":[{"attribute_name":"stock_status",
550
+ "old_value":"outofstock",
551
+ "new_value":"instock"}]}},
552
+ {"aggregate_type":"SandthornProduct",
553
+ "aggregate_version":18,
554
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
555
+ "sequence_number":41,
556
+ "event_name":"product_out_of_stock",
557
+ "timestamp":"2014-08-13 03:23:12 UTC",
558
+ "event_args":{"method_name":"product_out_of_stock",
559
+ "method_args":[],
560
+ "attribute_deltas":[{"attribute_name":"stock_status",
561
+ "old_value":"instock",
562
+ "new_value":"outofstock"}]}},
563
+ {"aggregate_type":"SandthornProduct",
564
+ "aggregate_version":19,
565
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
566
+ "sequence_number":42,
567
+ "event_name":"product_in_stock",
568
+ "timestamp":"2014-08-13 03:23:12 UTC",
569
+ "event_args":{"method_name":"product_in_stock",
570
+ "method_args":[],
571
+ "attribute_deltas":[{"attribute_name":"stock_status",
572
+ "old_value":"outofstock",
573
+ "new_value":"instock"}]}},
574
+ {"aggregate_type":"SandthornProduct",
575
+ "aggregate_version":20,
576
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
577
+ "sequence_number":43,
578
+ "event_name":"product_out_of_stock",
579
+ "timestamp":"2014-08-13 03:23:13 UTC",
580
+ "event_args":{"method_name":"product_out_of_stock",
581
+ "method_args":[],
582
+ "attribute_deltas":[{"attribute_name":"stock_status",
583
+ "old_value":"instock",
584
+ "new_value":"outofstock"}]}},
585
+ {"aggregate_type":"SandthornProduct",
586
+ "aggregate_version":21,
587
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
588
+ "sequence_number":44,
589
+ "event_name":"product_in_stock",
590
+ "timestamp":"2014-08-13 03:23:13 UTC",
591
+ "event_args":{"method_name":"product_in_stock",
592
+ "method_args":[],
593
+ "attribute_deltas":[{"attribute_name":"stock_status",
594
+ "old_value":"outofstock",
595
+ "new_value":"instock"}]}},
596
+ {"aggregate_type":"SandthornProduct",
597
+ "aggregate_version":22,
598
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
599
+ "sequence_number":45,
600
+ "event_name":"product_out_of_stock",
601
+ "timestamp":"2014-08-13 03:23:13 UTC",
602
+ "event_args":{"method_name":"product_out_of_stock",
603
+ "method_args":[],
604
+ "attribute_deltas":[{"attribute_name":"stock_status",
605
+ "old_value":"instock",
606
+ "new_value":"outofstock"}]}},
607
+ {"aggregate_type":"SandthornProduct",
608
+ "aggregate_version":23,
609
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
610
+ "sequence_number":46,
611
+ "event_name":"removed_from_sale",
612
+ "timestamp":"2014-08-13 03:23:14 UTC",
613
+ "event_args":{"method_name":"removed_from_sale",
614
+ "method_args":[],
615
+ "attribute_deltas":[{"attribute_name":"name",
616
+ "old_value":"ON SALE!!!! banana0",
617
+ "new_value":"banana0"},
618
+ {"attribute_name":"price",
619
+ "old_value":720,
620
+ "new_value":900},
621
+ {"attribute_name":"on_sale",
622
+ "old_value":true,
623
+ "new_value":false}]}},
624
+ {"aggregate_type":"SandthornProduct",
625
+ "aggregate_version":24,
626
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
627
+ "sequence_number":47,
628
+ "event_name":"product_on_sale",
629
+ "timestamp":"2014-08-13 03:23:14 UTC",
630
+ "event_args":{"method_name":"product_on_sale",
631
+ "method_args":[],
632
+ "attribute_deltas":[{"attribute_name":"name",
633
+ "old_value":"banana0",
634
+ "new_value":"ON SALE!!!! banana0"},
635
+ {"attribute_name":"price",
636
+ "old_value":900,
637
+ "new_value":720},
638
+ {"attribute_name":"on_sale",
639
+ "old_value":false,
640
+ "new_value":true}]}},
641
+ {"aggregate_type":"SandthornProduct",
642
+ "aggregate_version":25,
643
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
644
+ "sequence_number":48,
645
+ "event_name":"product_in_stock",
646
+ "timestamp":"2014-08-13 03:23:15 UTC",
647
+ "event_args":{"method_name":"product_in_stock",
648
+ "method_args":[],
649
+ "attribute_deltas":[{"attribute_name":"stock_status",
650
+ "old_value":"outofstock",
651
+ "new_value":"instock"}]}},
652
+ {"aggregate_type":"SandthornProduct",
653
+ "aggregate_version":26,
654
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
655
+ "sequence_number":49,
656
+ "event_name":"removed_from_sale",
657
+ "timestamp":"2014-08-13 03:23:16 UTC",
658
+ "event_args":{"method_name":"removed_from_sale",
659
+ "method_args":[],
660
+ "attribute_deltas":[{"attribute_name":"name",
661
+ "old_value":"ON SALE!!!! banana0",
662
+ "new_value":"banana0"},
663
+ {"attribute_name":"price",
664
+ "old_value":720,
665
+ "new_value":900},
666
+ {"attribute_name":"on_sale",
667
+ "old_value":true,
668
+ "new_value":false}]}},
669
+ {"aggregate_type":"SandthornProduct",
670
+ "aggregate_version":27,
671
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
672
+ "sequence_number":50,
673
+ "event_name":"product_out_of_stock",
674
+ "timestamp":"2014-08-13 03:23:16 UTC",
675
+ "event_args":{"method_name":"product_out_of_stock",
676
+ "method_args":[],
677
+ "attribute_deltas":[{"attribute_name":"stock_status",
678
+ "old_value":"instock",
679
+ "new_value":"outofstock"}]}},
680
+ {"aggregate_type":"SandthornProduct",
681
+ "aggregate_version":28,
682
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
683
+ "sequence_number":51,
684
+ "event_name":"product_in_stock",
685
+ "timestamp":"2014-08-13 03:23:17 UTC",
686
+ "event_args":{"method_name":"product_in_stock",
687
+ "method_args":[],
688
+ "attribute_deltas":[{"attribute_name":"stock_status",
689
+ "old_value":"outofstock",
690
+ "new_value":"instock"}]}},
691
+ {"aggregate_type":"SandthornProduct",
692
+ "aggregate_version":29,
693
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
694
+ "sequence_number":52,
695
+ "event_name":"product_on_sale",
696
+ "timestamp":"2014-08-13 03:23:17 UTC",
697
+ "event_args":{"method_name":"product_on_sale",
698
+ "method_args":[],
699
+ "attribute_deltas":[{"attribute_name":"name",
700
+ "old_value":"banana0",
701
+ "new_value":"ON SALE!!!! banana0"},
702
+ {"attribute_name":"price",
703
+ "old_value":900,
704
+ "new_value":720},
705
+ {"attribute_name":"on_sale",
706
+ "old_value":false,
707
+ "new_value":true}]}},
708
+ {"aggregate_type":"SandthornProduct",
709
+ "aggregate_version":30,
710
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
711
+ "sequence_number":53,
712
+ "event_name":"removed_from_sale",
713
+ "timestamp":"2014-08-13 03:23:17 UTC",
714
+ "event_args":{"method_name":"removed_from_sale",
715
+ "method_args":[],
716
+ "attribute_deltas":[{"attribute_name":"name",
717
+ "old_value":"ON SALE!!!! banana0",
718
+ "new_value":"banana0"},
719
+ {"attribute_name":"price",
720
+ "old_value":720,
721
+ "new_value":900},
722
+ {"attribute_name":"on_sale",
723
+ "old_value":true,
724
+ "new_value":false}]}},
725
+ {"aggregate_type":"SandthornProduct",
726
+ "aggregate_version":31,
727
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
728
+ "sequence_number":54,
729
+ "event_name":"product_out_of_stock",
730
+ "timestamp":"2014-08-13 03:23:18 UTC",
731
+ "event_args":{"method_name":"product_out_of_stock",
732
+ "method_args":[],
733
+ "attribute_deltas":[{"attribute_name":"stock_status",
734
+ "old_value":"instock",
735
+ "new_value":"outofstock"}]}},
736
+ {"aggregate_type":"SandthornProduct",
737
+ "aggregate_version":32,
738
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
739
+ "sequence_number":55,
740
+ "event_name":"product_in_stock",
741
+ "timestamp":"2014-08-13 03:23:18 UTC",
742
+ "event_args":{"method_name":"product_in_stock",
743
+ "method_args":[],
744
+ "attribute_deltas":[{"attribute_name":"stock_status",
745
+ "old_value":"outofstock",
746
+ "new_value":"instock"}]}},
747
+ {"aggregate_type":"SandthornProduct",
748
+ "aggregate_version":33,
749
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
750
+ "sequence_number":56,
751
+ "event_name":"product_on_sale",
752
+ "timestamp":"2014-08-13 03:23:19 UTC",
753
+ "event_args":{"method_name":"product_on_sale",
754
+ "method_args":[],
755
+ "attribute_deltas":[{"attribute_name":"name",
756
+ "old_value":"banana0",
757
+ "new_value":"ON SALE!!!! banana0"},
758
+ {"attribute_name":"price",
759
+ "old_value":900,
760
+ "new_value":720},
761
+ {"attribute_name":"on_sale",
762
+ "old_value":false,
763
+ "new_value":true}]}},
764
+ {"aggregate_type":"SandthornProduct",
765
+ "aggregate_version":34,
766
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
767
+ "sequence_number":57,
768
+ "event_name":"removed_from_sale",
769
+ "timestamp":"2014-08-13 03:23:19 UTC",
770
+ "event_args":{"method_name":"removed_from_sale",
771
+ "method_args":[],
772
+ "attribute_deltas":[{"attribute_name":"name",
773
+ "old_value":"ON SALE!!!! banana0",
774
+ "new_value":"banana0"},
775
+ {"attribute_name":"price",
776
+ "old_value":720,
777
+ "new_value":900},
778
+ {"attribute_name":"on_sale",
779
+ "old_value":true,
780
+ "new_value":false}]}},
781
+ {"aggregate_type":"SandthornProduct",
782
+ "aggregate_version":35,
783
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
784
+ "sequence_number":58,
785
+ "event_name":"product_out_of_stock",
786
+ "timestamp":"2014-08-13 03:23:19 UTC",
787
+ "event_args":{"method_name":"product_out_of_stock",
788
+ "method_args":[],
789
+ "attribute_deltas":[{"attribute_name":"stock_status",
790
+ "old_value":"instock",
791
+ "new_value":"outofstock"}]}},
792
+ {"aggregate_type":"SandthornProduct",
793
+ "aggregate_version":36,
794
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
795
+ "sequence_number":59,
796
+ "event_name":"product_in_stock",
797
+ "timestamp":"2014-08-13 03:23:20 UTC",
798
+ "event_args":{"method_name":"product_in_stock",
799
+ "method_args":[],
800
+ "attribute_deltas":[{"attribute_name":"stock_status",
801
+ "old_value":"outofstock",
802
+ "new_value":"instock"}]}},
803
+ {"aggregate_type":"SandthornProduct",
804
+ "aggregate_version":37,
805
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
806
+ "sequence_number":60,
807
+ "event_name":"product_discontinued",
808
+ "timestamp":"2014-08-13 03:23:20 UTC",
809
+ "event_args":{"method_name":"product_discontinued",
810
+ "method_args":[],
811
+ "attribute_deltas":[{"attribute_name":"stock_status",
812
+ "old_value":"instock",
813
+ "new_value":"discontinued"}]}},
814
+ {"aggregate_type":"SandthornProduct",
815
+ "aggregate_version":38,
816
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
817
+ "sequence_number":61,
818
+ "event_name":"product_out_of_stock",
819
+ "timestamp":"2014-08-13 03:23:21 UTC",
820
+ "event_args":{"method_name":"product_out_of_stock",
821
+ "method_args":[],
822
+ "attribute_deltas":[{"attribute_name":"stock_status",
823
+ "old_value":"discontinued",
824
+ "new_value":"outofstock"}]}},
825
+ {"aggregate_type":"SandthornProduct",
826
+ "aggregate_version":39,
827
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
828
+ "sequence_number":62,
829
+ "event_name":"product_in_stock",
830
+ "timestamp":"2014-08-13 03:23:21 UTC",
831
+ "event_args":{"method_name":"product_in_stock",
832
+ "method_args":[],
833
+ "attribute_deltas":[{"attribute_name":"stock_status",
834
+ "old_value":"outofstock",
835
+ "new_value":"instock"}]}},
836
+ {"aggregate_type":"SandthornProduct",
837
+ "aggregate_version":40,
838
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
839
+ "sequence_number":63,
840
+ "event_name":"price_updated",
841
+ "timestamp":"2014-08-13 03:23:23 UTC",
842
+ "event_args":{"method_name":"price_updated",
843
+ "method_args":[],
844
+ "attribute_deltas":[{"attribute_name":"price",
845
+ "old_value":900,
846
+ "new_value":90088}]}},
847
+ {"aggregate_type":"SandthornProduct",
848
+ "aggregate_version":41,
849
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
850
+ "sequence_number":64,
851
+ "event_name":"product_out_of_stock",
852
+ "timestamp":"2014-08-13 03:23:23 UTC",
853
+ "event_args":{"method_name":"product_out_of_stock",
854
+ "method_args":[],
855
+ "attribute_deltas":[{"attribute_name":"stock_status",
856
+ "old_value":"instock",
857
+ "new_value":"outofstock"}]}},
858
+ {"aggregate_type":"SandthornProduct",
859
+ "aggregate_version":42,
860
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
861
+ "sequence_number":65,
862
+ "event_name":"product_in_stock",
863
+ "timestamp":"2014-08-13 03:23:23 UTC",
864
+ "event_args":{"method_name":"product_in_stock",
865
+ "method_args":[],
866
+ "attribute_deltas":[{"attribute_name":"stock_status",
867
+ "old_value":"outofstock",
868
+ "new_value":"instock"}]}},
869
+ {"aggregate_type":"SandthornProduct",
870
+ "aggregate_version":43,
871
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
872
+ "sequence_number":66,
873
+ "event_name":"product_on_sale",
874
+ "timestamp":"2014-08-13 03:23:24 UTC",
875
+ "event_args":{"method_name":"product_on_sale",
876
+ "method_args":[],
877
+ "attribute_deltas":[{"attribute_name":"name",
878
+ "old_value":"banana0",
879
+ "new_value":"ON SALE!!!! banana0"},
880
+ {"attribute_name":"price",
881
+ "old_value":90088,
882
+ "new_value":72070},
883
+ {"attribute_name":"on_sale",
884
+ "old_value":false,
885
+ "new_value":true}]}},
886
+ {"aggregate_type":"SandthornProduct",
887
+ "aggregate_version":44,
888
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
889
+ "sequence_number":67,
890
+ "event_name":"removed_from_sale",
891
+ "timestamp":"2014-08-13 03:23:25 UTC",
892
+ "event_args":{"method_name":"removed_from_sale",
893
+ "method_args":[],
894
+ "attribute_deltas":[{"attribute_name":"name",
895
+ "old_value":"ON SALE!!!! banana0",
896
+ "new_value":"banana0"},
897
+ {"attribute_name":"price",
898
+ "old_value":72070,
899
+ "new_value":90087},
900
+ {"attribute_name":"on_sale",
901
+ "old_value":true,
902
+ "new_value":false}]}},
903
+ {"aggregate_type":"SandthornProduct",
904
+ "aggregate_version":45,
905
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
906
+ "sequence_number":68,
907
+ "event_name":"name_updated",
908
+ "timestamp":"2014-08-13 03:23:30 UTC",
909
+ "event_args":{"method_name":"name_updated",
910
+ "method_args":[],
911
+ "attribute_deltas":[{"attribute_name":"name",
912
+ "old_value":"banana0",
913
+ "new_value":"banana0x"}]}},
914
+ {"aggregate_type":"SandthornProduct",
915
+ "aggregate_version":46,
916
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
917
+ "sequence_number":69,
918
+ "event_name":"product_on_sale",
919
+ "timestamp":"2014-08-13 03:23:31 UTC",
920
+ "event_args":{"method_name":"product_on_sale",
921
+ "method_args":[],
922
+ "attribute_deltas":[{"attribute_name":"name",
923
+ "old_value":"banana0x",
924
+ "new_value":"ON SALE!!!! banana0x"},
925
+ {"attribute_name":"price",
926
+ "old_value":90087,
927
+ "new_value":72069},
928
+ {"attribute_name":"on_sale",
929
+ "old_value":false,
930
+ "new_value":true}]}},
931
+ {"aggregate_type":"SandthornProduct",
932
+ "aggregate_version":47,
933
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
934
+ "sequence_number":70,
935
+ "event_name":"removed_from_sale",
936
+ "timestamp":"2014-08-13 03:23:32 UTC",
937
+ "event_args":{"method_name":"removed_from_sale",
938
+ "method_args":[],
939
+ "attribute_deltas":[{"attribute_name":"name",
940
+ "old_value":"ON SALE!!!! banana0x",
941
+ "new_value":"banana0x"},
942
+ {"attribute_name":"price",
943
+ "old_value":72069,
944
+ "new_value":90086},
945
+ {"attribute_name":"on_sale",
946
+ "old_value":true,
947
+ "new_value":false}]}},
948
+ {"aggregate_type":"SandthornProduct",
949
+ "aggregate_version":48,
950
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
951
+ "sequence_number":71,
952
+ "event_name":"product_on_sale",
953
+ "timestamp":"2014-08-13 03:23:32 UTC",
954
+ "event_args":{"method_name":"product_on_sale",
955
+ "method_args":[],
956
+ "attribute_deltas":[{"attribute_name":"name",
957
+ "old_value":"banana0x",
958
+ "new_value":"ON SALE!!!! banana0x"},
959
+ {"attribute_name":"price",
960
+ "old_value":90086,
961
+ "new_value":72068},
962
+ {"attribute_name":"on_sale",
963
+ "old_value":false,
964
+ "new_value":true}]}},
965
+ {"aggregate_type":"SandthornProduct",
966
+ "aggregate_version":49,
967
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
968
+ "sequence_number":72,
969
+ "event_name":"removed_from_sale",
970
+ "timestamp":"2014-08-13 03:23:32 UTC",
971
+ "event_args":{"method_name":"removed_from_sale",
972
+ "method_args":[],
973
+ "attribute_deltas":[{"attribute_name":"name",
974
+ "old_value":"ON SALE!!!! banana0x",
975
+ "new_value":"banana0x"},
976
+ {"attribute_name":"price",
977
+ "old_value":72068,
978
+ "new_value":90085},
979
+ {"attribute_name":"on_sale",
980
+ "old_value":true,
981
+ "new_value":false}]}},
982
+ {"aggregate_type":"SandthornProduct",
983
+ "aggregate_version":50,
984
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
985
+ "sequence_number":73,
986
+ "event_name":"product_on_sale",
987
+ "timestamp":"2014-08-13 03:23:33 UTC",
988
+ "event_args":{"method_name":"product_on_sale",
989
+ "method_args":[],
990
+ "attribute_deltas":[{"attribute_name":"name",
991
+ "old_value":"banana0x",
992
+ "new_value":"ON SALE!!!! banana0x"},
993
+ {"attribute_name":"price",
994
+ "old_value":90085,
995
+ "new_value":72068},
996
+ {"attribute_name":"on_sale",
997
+ "old_value":false,
998
+ "new_value":true}]}},
999
+ {"aggregate_type":"SandthornProduct",
1000
+ "aggregate_version":51,
1001
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1002
+ "sequence_number":74,
1003
+ "event_name":"removed_from_sale",
1004
+ "timestamp":"2014-08-13 03:23:33 UTC",
1005
+ "event_args":{"method_name":"removed_from_sale",
1006
+ "method_args":[],
1007
+ "attribute_deltas":[{"attribute_name":"name",
1008
+ "old_value":"ON SALE!!!! banana0x",
1009
+ "new_value":"banana0x"},
1010
+ {"attribute_name":"price",
1011
+ "old_value":72068,
1012
+ "new_value":90085},
1013
+ {"attribute_name":"on_sale",
1014
+ "old_value":true,
1015
+ "new_value":false}]}},
1016
+ {"aggregate_type":"SandthornProduct",
1017
+ "aggregate_version":52,
1018
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1019
+ "sequence_number":75,
1020
+ "event_name":"product_on_sale",
1021
+ "timestamp":"2014-08-13 03:23:34 UTC",
1022
+ "event_args":{"method_name":"product_on_sale",
1023
+ "method_args":[],
1024
+ "attribute_deltas":[{"attribute_name":"name",
1025
+ "old_value":"banana0x",
1026
+ "new_value":"ON SALE!!!! banana0x"},
1027
+ {"attribute_name":"price",
1028
+ "old_value":90085,
1029
+ "new_value":72068},
1030
+ {"attribute_name":"on_sale",
1031
+ "old_value":false,
1032
+ "new_value":true}]}},
1033
+ {"aggregate_type":"SandthornProduct",
1034
+ "aggregate_version":53,
1035
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1036
+ "sequence_number":76,
1037
+ "event_name":"removed_from_sale",
1038
+ "timestamp":"2014-08-13 03:23:34 UTC",
1039
+ "event_args":{"method_name":"removed_from_sale",
1040
+ "method_args":[],
1041
+ "attribute_deltas":[{"attribute_name":"name",
1042
+ "old_value":"ON SALE!!!! banana0x",
1043
+ "new_value":"banana0x"},
1044
+ {"attribute_name":"price",
1045
+ "old_value":72068,
1046
+ "new_value":90085},
1047
+ {"attribute_name":"on_sale",
1048
+ "old_value":true,
1049
+ "new_value":false}]}},
1050
+ {"aggregate_type":"SandthornProduct",
1051
+ "aggregate_version":54,
1052
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1053
+ "sequence_number":77,
1054
+ "event_name":"product_on_sale",
1055
+ "timestamp":"2014-08-13 03:23:34 UTC",
1056
+ "event_args":{"method_name":"product_on_sale",
1057
+ "method_args":[],
1058
+ "attribute_deltas":[{"attribute_name":"name",
1059
+ "old_value":"banana0x",
1060
+ "new_value":"ON SALE!!!! banana0x"},
1061
+ {"attribute_name":"price",
1062
+ "old_value":90085,
1063
+ "new_value":72068},
1064
+ {"attribute_name":"on_sale",
1065
+ "old_value":false,
1066
+ "new_value":true}]}},
1067
+ {"aggregate_type":"SandthornProduct",
1068
+ "aggregate_version":55,
1069
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1070
+ "sequence_number":78,
1071
+ "event_name":"removed_from_sale",
1072
+ "timestamp":"2014-08-13 03:23:35 UTC",
1073
+ "event_args":{"method_name":"removed_from_sale",
1074
+ "method_args":[],
1075
+ "attribute_deltas":[{"attribute_name":"name",
1076
+ "old_value":"ON SALE!!!! banana0x",
1077
+ "new_value":"banana0x"},
1078
+ {"attribute_name":"price",
1079
+ "old_value":72068,
1080
+ "new_value":90085},
1081
+ {"attribute_name":"on_sale",
1082
+ "old_value":true,
1083
+ "new_value":false}]}},
1084
+ {"aggregate_type":"SandthornProduct",
1085
+ "aggregate_version":56,
1086
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1087
+ "sequence_number":79,
1088
+ "event_name":"product_on_sale",
1089
+ "timestamp":"2014-08-13 03:23:35 UTC",
1090
+ "event_args":{"method_name":"product_on_sale",
1091
+ "method_args":[],
1092
+ "attribute_deltas":[{"attribute_name":"name",
1093
+ "old_value":"banana0x",
1094
+ "new_value":"ON SALE!!!! banana0x"},
1095
+ {"attribute_name":"price",
1096
+ "old_value":90085,
1097
+ "new_value":72068},
1098
+ {"attribute_name":"on_sale",
1099
+ "old_value":false,
1100
+ "new_value":true}]}},
1101
+ {"aggregate_type":"SandthornProduct",
1102
+ "aggregate_version":57,
1103
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1104
+ "sequence_number":80,
1105
+ "event_name":"removed_from_sale",
1106
+ "timestamp":"2014-08-13 03:23:36 UTC",
1107
+ "event_args":{"method_name":"removed_from_sale",
1108
+ "method_args":[],
1109
+ "attribute_deltas":[{"attribute_name":"name",
1110
+ "old_value":"ON SALE!!!! banana0x",
1111
+ "new_value":"banana0x"},
1112
+ {"attribute_name":"price",
1113
+ "old_value":72068,
1114
+ "new_value":90085},
1115
+ {"attribute_name":"on_sale",
1116
+ "old_value":true,
1117
+ "new_value":false}]}},
1118
+ {"aggregate_type":"SandthornProduct",
1119
+ "aggregate_version":58,
1120
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1121
+ "sequence_number":81,
1122
+ "event_name":"product_on_sale",
1123
+ "timestamp":"2014-08-13 03:23:36 UTC",
1124
+ "event_args":{"method_name":"product_on_sale",
1125
+ "method_args":[],
1126
+ "attribute_deltas":[{"attribute_name":"name",
1127
+ "old_value":"banana0x",
1128
+ "new_value":"ON SALE!!!! banana0x"},
1129
+ {"attribute_name":"price",
1130
+ "old_value":90085,
1131
+ "new_value":72068},
1132
+ {"attribute_name":"on_sale",
1133
+ "old_value":false,
1134
+ "new_value":true}]}},
1135
+ {"aggregate_type":"SandthornProduct",
1136
+ "aggregate_version":59,
1137
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1138
+ "sequence_number":82,
1139
+ "event_name":"removed_from_sale",
1140
+ "timestamp":"2014-08-13 03:23:36 UTC",
1141
+ "event_args":{"method_name":"removed_from_sale",
1142
+ "method_args":[],
1143
+ "attribute_deltas":[{"attribute_name":"name",
1144
+ "old_value":"ON SALE!!!! banana0x",
1145
+ "new_value":"banana0x"},
1146
+ {"attribute_name":"price",
1147
+ "old_value":72068,
1148
+ "new_value":90085},
1149
+ {"attribute_name":"on_sale",
1150
+ "old_value":true,
1151
+ "new_value":false}]}},
1152
+ {"aggregate_type":"SandthornProduct",
1153
+ "aggregate_version":60,
1154
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1155
+ "sequence_number":83,
1156
+ "event_name":"product_on_sale",
1157
+ "timestamp":"2014-08-13 03:23:36 UTC",
1158
+ "event_args":{"method_name":"product_on_sale",
1159
+ "method_args":[],
1160
+ "attribute_deltas":[{"attribute_name":"name",
1161
+ "old_value":"banana0x",
1162
+ "new_value":"ON SALE!!!! banana0x"},
1163
+ {"attribute_name":"price",
1164
+ "old_value":90085,
1165
+ "new_value":72068},
1166
+ {"attribute_name":"on_sale",
1167
+ "old_value":false,
1168
+ "new_value":true}]}},
1169
+ {"aggregate_type":"SandthornProduct",
1170
+ "aggregate_version":61,
1171
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1172
+ "sequence_number":84,
1173
+ "event_name":"product_discontinued",
1174
+ "timestamp":"2014-08-13 05:51:27 UTC",
1175
+ "event_args":{"method_name":"product_discontinued",
1176
+ "method_args":[],
1177
+ "attribute_deltas":[{"attribute_name":"stock_status",
1178
+ "old_value":"instock",
1179
+ "new_value":"discontinued"}]}},
1180
+ {"aggregate_type":"SandthornProduct",
1181
+ "aggregate_version":62,
1182
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1183
+ "sequence_number":85,
1184
+ "event_name":"product_out_of_stock",
1185
+ "timestamp":"2014-08-13 05:51:29 UTC",
1186
+ "event_args":{"method_name":"product_out_of_stock",
1187
+ "method_args":[],
1188
+ "attribute_deltas":[{"attribute_name":"stock_status",
1189
+ "old_value":"discontinued",
1190
+ "new_value":"outofstock"}]}},
1191
+ {"aggregate_type":"SandthornProduct",
1192
+ "aggregate_version":63,
1193
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1194
+ "sequence_number":86,
1195
+ "event_name":"removed_from_sale",
1196
+ "timestamp":"2014-08-13 05:51:30 UTC",
1197
+ "event_args":{"method_name":"removed_from_sale",
1198
+ "method_args":[],
1199
+ "attribute_deltas":[{"attribute_name":"name",
1200
+ "old_value":"ON SALE!!!! banana0x",
1201
+ "new_value":"banana0x"},
1202
+ {"attribute_name":"price",
1203
+ "old_value":72068,
1204
+ "new_value":90085},
1205
+ {"attribute_name":"on_sale",
1206
+ "old_value":true,
1207
+ "new_value":false}]}},
1208
+ {"aggregate_type":"SandthornProduct",
1209
+ "aggregate_version":64,
1210
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1211
+ "sequence_number":87,
1212
+ "event_name":"product_in_stock",
1213
+ "timestamp":"2014-08-13 05:51:34 UTC",
1214
+ "event_args":{"method_name":"product_in_stock",
1215
+ "method_args":[],
1216
+ "attribute_deltas":[{"attribute_name":"stock_status",
1217
+ "old_value":"outofstock",
1218
+ "new_value":"instock"}]}},
1219
+ {"aggregate_type":"SandthornProduct",
1220
+ "aggregate_version":65,
1221
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1222
+ "sequence_number":88,
1223
+ "event_name":"name_updated",
1224
+ "timestamp":"2014-08-13 05:51:42 UTC",
1225
+ "event_args":{"method_name":"name_updated",
1226
+ "method_args":[],
1227
+ "attribute_deltas":[{"attribute_name":"name",
1228
+ "old_value":"banana0x",
1229
+ "new_value":"banana"}]}},
1230
+ {"aggregate_type":"SandthornProduct",
1231
+ "aggregate_version":1,
1232
+ "aggregate_id":"6363d8a8-9a40-4c31-aaed-27aee8143d10",
1233
+ "sequence_number":89,
1234
+ "event_name":"new",
1235
+ "timestamp":"2014-08-13 14:22:20 UTC",
1236
+ "event_args":{"method_name":"new",
1237
+ "method_args":[{"name":"bla",
1238
+ "price":"10",
1239
+ "stock_status":"instock"}],
1240
+ "attribute_deltas":[{"attribute_name":"name",
1241
+ "old_value":null,
1242
+ "new_value":"bla"},
1243
+ {"attribute_name":"price",
1244
+ "old_value":null,
1245
+ "new_value":10},
1246
+ {"attribute_name":"stock_status",
1247
+ "old_value":null,
1248
+ "new_value":"instock"},
1249
+ {"attribute_name":"active",
1250
+ "old_value":null,
1251
+ "new_value":true},
1252
+ {"attribute_name":"on_sale",
1253
+ "old_value":null,
1254
+ "new_value":false},
1255
+ {"attribute_name":"aggregate_id",
1256
+ "old_value":null,
1257
+ "new_value":"6363d8a8-9a40-4c31-aaed-27aee8143d10"}]}},
1258
+ {"aggregate_type":"SandthornProduct",
1259
+ "aggregate_version":2,
1260
+ "aggregate_id":"6363d8a8-9a40-4c31-aaed-27aee8143d10",
1261
+ "sequence_number":90,
1262
+ "event_name":"product_on_sale",
1263
+ "timestamp":"2014-08-13 14:22:52 UTC",
1264
+ "event_args":{"method_name":"product_on_sale",
1265
+ "method_args":[],
1266
+ "attribute_deltas":[{"attribute_name":"name",
1267
+ "old_value":"bla",
1268
+ "new_value":"ON SALE!!!! bla"},
1269
+ {"attribute_name":"price",
1270
+ "old_value":10,
1271
+ "new_value":8},
1272
+ {"attribute_name":"on_sale",
1273
+ "old_value":false,
1274
+ "new_value":true}]}},
1275
+ {"aggregate_type":"SandthornProduct",
1276
+ "aggregate_version":1,
1277
+ "aggregate_id":"ac1be457-b6b9-4dad-900b-acb400f810df",
1278
+ "sequence_number":91,
1279
+ "event_name":"new",
1280
+ "timestamp":"2014-08-13 14:28:30 UTC",
1281
+ "event_args":{"method_name":"new",
1282
+ "method_args":[{"name":"test",
1283
+ "price":"50",
1284
+ "stock_status":"instock"}],
1285
+ "attribute_deltas":[{"attribute_name":"name",
1286
+ "old_value":null,
1287
+ "new_value":"test"},
1288
+ {"attribute_name":"price",
1289
+ "old_value":null,
1290
+ "new_value":50},
1291
+ {"attribute_name":"stock_status",
1292
+ "old_value":null,
1293
+ "new_value":"instock"},
1294
+ {"attribute_name":"active",
1295
+ "old_value":null,
1296
+ "new_value":true},
1297
+ {"attribute_name":"on_sale",
1298
+ "old_value":null,
1299
+ "new_value":false},
1300
+ {"attribute_name":"aggregate_id",
1301
+ "old_value":null,
1302
+ "new_value":"ac1be457-b6b9-4dad-900b-acb400f810df"}]}},
1303
+ {"aggregate_type":"SandthornProduct",
1304
+ "aggregate_version":3,
1305
+ "aggregate_id":"6363d8a8-9a40-4c31-aaed-27aee8143d10",
1306
+ "sequence_number":92,
1307
+ "event_name":"name_updated",
1308
+ "timestamp":"2014-08-13 21:21:34 UTC",
1309
+ "event_args":{"method_name":"name_updated",
1310
+ "method_args":[],
1311
+ "attribute_deltas":[{"attribute_name":"name",
1312
+ "old_value":"ON SALE!!!! bla",
1313
+ "new_value":"zwykle bla"}]}},
1314
+ {"aggregate_type":"SandthornProduct",
1315
+ "aggregate_version":66,
1316
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1317
+ "sequence_number":93,
1318
+ "event_name":"price_updated",
1319
+ "timestamp":"2014-08-14 05:24:39 UTC",
1320
+ "event_args":{"method_name":"price_updated",
1321
+ "method_args":[],
1322
+ "attribute_deltas":[{"attribute_name":"price",
1323
+ "old_value":90085,
1324
+ "new_value":90}]}},
1325
+ {"aggregate_type":"SandthornProduct",
1326
+ "aggregate_version":67,
1327
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1328
+ "sequence_number":94,
1329
+ "event_name":"product_on_sale",
1330
+ "timestamp":"2014-08-14 05:24:52 UTC",
1331
+ "event_args":{"method_name":"product_on_sale",
1332
+ "method_args":[],
1333
+ "attribute_deltas":[{"attribute_name":"name",
1334
+ "old_value":"banana",
1335
+ "new_value":"ON SALE!!!! banana"},
1336
+ {"attribute_name":"price",
1337
+ "old_value":90,
1338
+ "new_value":72},
1339
+ {"attribute_name":"on_sale",
1340
+ "old_value":false,
1341
+ "new_value":true}]}},
1342
+ {"aggregate_type":"SandthornProduct",
1343
+ "aggregate_version":2,
1344
+ "aggregate_id":"ac1be457-b6b9-4dad-900b-acb400f810df",
1345
+ "sequence_number":95,
1346
+ "event_name":"price_updated",
1347
+ "timestamp":"2014-08-14 06:29:15 UTC",
1348
+ "event_args":{"method_name":"price_updated",
1349
+ "method_args":[],
1350
+ "attribute_deltas":[{"attribute_name":"price",
1351
+ "old_value":50,
1352
+ "new_value":501}]}},
1353
+ {"aggregate_type":"SandthornProduct",
1354
+ "aggregate_version":3,
1355
+ "aggregate_id":"ac1be457-b6b9-4dad-900b-acb400f810df",
1356
+ "sequence_number":96,
1357
+ "event_name":"product_on_sale",
1358
+ "timestamp":"2014-08-14 06:29:15 UTC",
1359
+ "event_args":{"method_name":"product_on_sale",
1360
+ "method_args":[],
1361
+ "attribute_deltas":[{"attribute_name":"name",
1362
+ "old_value":"test",
1363
+ "new_value":"ON SALE!!!! test"},
1364
+ {"attribute_name":"price",
1365
+ "old_value":501,
1366
+ "new_value":400},
1367
+ {"attribute_name":"on_sale",
1368
+ "old_value":false,
1369
+ "new_value":true}]}},
1370
+ {"aggregate_type":"SandthornProduct",
1371
+ "aggregate_version":4,
1372
+ "aggregate_id":"6363d8a8-9a40-4c31-aaed-27aee8143d10",
1373
+ "sequence_number":97,
1374
+ "event_name":"destroyed",
1375
+ "timestamp":"2014-08-14 08:16:53 UTC",
1376
+ "event_args":{"method_name":"destroyed",
1377
+ "method_args":[],
1378
+ "attribute_deltas":[{"attribute_name":"active",
1379
+ "old_value":true,
1380
+ "new_value":false}]}},
1381
+ {"aggregate_type":"SandthornProduct",
1382
+ "aggregate_version":68,
1383
+ "aggregate_id":"6bbacd26-9c0e-4f90-a6a7-cc425bd39a9a",
1384
+ "sequence_number":98,
1385
+ "event_name":"destroyed",
1386
+ "timestamp":"2014-08-14 22:54:17 UTC",
1387
+ "event_args":{"method_name":"destroyed",
1388
+ "method_args":[],
1389
+ "attribute_deltas":[{"attribute_name":"active",
1390
+ "old_value":true,
1391
+ "new_value":false}]}},
1392
+ {"aggregate_type":"SandthornProduct",
1393
+ "aggregate_version":1,
1394
+ "aggregate_id":"44ff3689-bbfe-4883-90ce-31dbc702064e",
1395
+ "sequence_number":99,
1396
+ "event_name":"new",
1397
+ "timestamp":"2014-08-14 22:54:42 UTC",
1398
+ "event_args":{"method_name":"new",
1399
+ "method_args":[{"name":"test",
1400
+ "price":"25",
1401
+ "stock_status":"instock"}],
1402
+ "attribute_deltas":[{"attribute_name":"name",
1403
+ "old_value":null,
1404
+ "new_value":"test"},
1405
+ {"attribute_name":"price",
1406
+ "old_value":null,
1407
+ "new_value":25},
1408
+ {"attribute_name":"stock_status",
1409
+ "old_value":null,
1410
+ "new_value":"instock"},
1411
+ {"attribute_name":"active",
1412
+ "old_value":null,
1413
+ "new_value":true},
1414
+ {"attribute_name":"on_sale",
1415
+ "old_value":null,
1416
+ "new_value":false},
1417
+ {"attribute_name":"aggregate_id",
1418
+ "old_value":null,
1419
+ "new_value":"44ff3689-bbfe-4883-90ce-31dbc702064e"}]}},
1420
+ {"aggregate_type":"SandthornProduct",
1421
+ "aggregate_version":4,
1422
+ "aggregate_id":"ac1be457-b6b9-4dad-900b-acb400f810df",
1423
+ "sequence_number":100,
1424
+ "event_name":"name_updated",
1425
+ "timestamp":"2014-08-14 22:55:04 UTC",
1426
+ "event_args":{"method_name":"name_updated",
1427
+ "method_args":[],
1428
+ "attribute_deltas":[{"attribute_name":"name",
1429
+ "old_value":"ON SALE!!!! test",
1430
+ "new_value":"ON SALE!!!! test2"}]}},
1431
+ {"aggregate_type":"SandthornProduct",
1432
+ "aggregate_version":1,
1433
+ "aggregate_id":"0e2a3798-a01c-4714-a7e4-1b4a36fc5e85",
1434
+ "sequence_number":101,
1435
+ "event_name":"new",
1436
+ "timestamp":"2014-08-15 08:02:18 UTC",
1437
+ "event_args":{"method_name":"new",
1438
+ "method_args":[{"name":"asdfsadf",
1439
+ "price":"123"}],
1440
+ "attribute_deltas":[{"attribute_name":"name",
1441
+ "old_value":null,
1442
+ "new_value":"asdfsadf"},
1443
+ {"attribute_name":"price",
1444
+ "old_value":null,
1445
+ "new_value":123},
1446
+ {"attribute_name":"stock_status",
1447
+ "old_value":null,
1448
+ "new_value":"instock"},
1449
+ {"attribute_name":"active",
1450
+ "old_value":null,
1451
+ "new_value":true},
1452
+ {"attribute_name":"on_sale",
1453
+ "old_value":null,
1454
+ "new_value":false},
1455
+ {"attribute_name":"aggregate_id",
1456
+ "old_value":null,
1457
+ "new_value":"0e2a3798-a01c-4714-a7e4-1b4a36fc5e85"}]}},
1458
+ {"aggregate_type":"SandthornProduct",
1459
+ "aggregate_version":2,
1460
+ "aggregate_id":"0e2a3798-a01c-4714-a7e4-1b4a36fc5e85",
1461
+ "sequence_number":102,
1462
+ "event_name":"destroyed",
1463
+ "timestamp":"2014-08-15 08:02:38 UTC",
1464
+ "event_args":{"method_name":"destroyed",
1465
+ "method_args":[],
1466
+ "attribute_deltas":[{"attribute_name":"active",
1467
+ "old_value":true,
1468
+ "new_value":false}]}},
1469
+ {"aggregate_type":"SandthornProduct",
1470
+ "aggregate_version":3,
1471
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1472
+ "sequence_number":103,
1473
+ "event_name":"name_updated",
1474
+ "timestamp":"2014-08-15 08:03:54 UTC",
1475
+ "event_args":{"method_name":"name_updated",
1476
+ "method_args":[],
1477
+ "attribute_deltas":[{"attribute_name":"name",
1478
+ "old_value":"ON SALE!!!! food",
1479
+ "new_value":"ON SALE!!!! !!!!!"}]}},
1480
+ {"aggregate_type":"SandthornProduct",
1481
+ "aggregate_version":1,
1482
+ "aggregate_id":"6f3bd02c-918e-4be4-8458-65e16191abff",
1483
+ "sequence_number":104,
1484
+ "event_name":"new",
1485
+ "timestamp":"2014-08-15 08:10:31 UTC",
1486
+ "event_args":{"method_name":"new",
1487
+ "method_args":[{"name":"New product",
1488
+ "price":"1000",
1489
+ "stock_status":"outofstock"}],
1490
+ "attribute_deltas":[{"attribute_name":"name",
1491
+ "old_value":null,
1492
+ "new_value":"New product"},
1493
+ {"attribute_name":"price",
1494
+ "old_value":null,
1495
+ "new_value":1000},
1496
+ {"attribute_name":"stock_status",
1497
+ "old_value":null,
1498
+ "new_value":"outofstock"},
1499
+ {"attribute_name":"active",
1500
+ "old_value":null,
1501
+ "new_value":true},
1502
+ {"attribute_name":"on_sale",
1503
+ "old_value":null,
1504
+ "new_value":false},
1505
+ {"attribute_name":"aggregate_id",
1506
+ "old_value":null,
1507
+ "new_value":"6f3bd02c-918e-4be4-8458-65e16191abff"}]}},
1508
+ {"aggregate_type":"SandthornProduct",
1509
+ "aggregate_version":4,
1510
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1511
+ "sequence_number":105,
1512
+ "event_name":"name_updated",
1513
+ "timestamp":"2014-08-15 10:54:27 UTC",
1514
+ "event_args":{"method_name":"name_updated",
1515
+ "method_args":[],
1516
+ "attribute_deltas":[{"attribute_name":"name",
1517
+ "old_value":"ON SALE!!!! !!!!!",
1518
+ "new_value":"NO SALE"}]}},
1519
+ {"aggregate_type":"SandthornProduct",
1520
+ "aggregate_version":5,
1521
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1522
+ "sequence_number":106,
1523
+ "event_name":"price_updated",
1524
+ "timestamp":"2014-08-15 10:54:27 UTC",
1525
+ "event_args":{"method_name":"price_updated",
1526
+ "method_args":[],
1527
+ "attribute_deltas":[{"attribute_name":"price",
1528
+ "old_value":8,
1529
+ "new_value":88}]}},
1530
+ {"aggregate_type":"SandthornProduct",
1531
+ "aggregate_version":6,
1532
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1533
+ "sequence_number":107,
1534
+ "event_name":"removed_from_sale",
1535
+ "timestamp":"2014-08-15 10:54:27 UTC",
1536
+ "event_args":{"method_name":"removed_from_sale",
1537
+ "method_args":[],
1538
+ "attribute_deltas":[{"attribute_name":"price",
1539
+ "old_value":88,
1540
+ "new_value":110},
1541
+ {"attribute_name":"on_sale",
1542
+ "old_value":true,
1543
+ "new_value":false}]}},
1544
+ {"aggregate_type":"SandthornProduct",
1545
+ "aggregate_version":7,
1546
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1547
+ "sequence_number":108,
1548
+ "event_name":"price_updated",
1549
+ "timestamp":"2014-08-15 10:55:53 UTC",
1550
+ "event_args":{"method_name":"price_updated",
1551
+ "method_args":[],
1552
+ "attribute_deltas":[{"attribute_name":"price",
1553
+ "old_value":110,
1554
+ "new_value":889}]}},
1555
+ {"aggregate_type":"SandthornProduct",
1556
+ "aggregate_version":8,
1557
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1558
+ "sequence_number":109,
1559
+ "event_name":"price_updated",
1560
+ "timestamp":"2014-08-15 10:56:42 UTC",
1561
+ "event_args":{"method_name":"price_updated",
1562
+ "method_args":[],
1563
+ "attribute_deltas":[{"attribute_name":"price",
1564
+ "old_value":889,
1565
+ "new_value":88}]}},
1566
+ {"aggregate_type":"SandthornProduct",
1567
+ "aggregate_version":9,
1568
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1569
+ "sequence_number":110,
1570
+ "event_name":"price_updated",
1571
+ "timestamp":"2014-08-15 10:57:22 UTC",
1572
+ "event_args":{"method_name":"price_updated",
1573
+ "method_args":[],
1574
+ "attribute_deltas":[{"attribute_name":"price",
1575
+ "old_value":88,
1576
+ "new_value":87}]}},
1577
+ {"aggregate_type":"SandthornProduct",
1578
+ "aggregate_version":2,
1579
+ "aggregate_id":"44ff3689-bbfe-4883-90ce-31dbc702064e",
1580
+ "sequence_number":111,
1581
+ "event_name":"product_discontinued",
1582
+ "timestamp":"2014-08-15 11:29:50 UTC",
1583
+ "event_args":{"method_name":"product_discontinued",
1584
+ "method_args":[],
1585
+ "attribute_deltas":[{"attribute_name":"stock_status",
1586
+ "old_value":"instock",
1587
+ "new_value":"discontinued"}]}},
1588
+ {"aggregate_type":"SandthornProduct",
1589
+ "aggregate_version":5,
1590
+ "aggregate_id":"ac1be457-b6b9-4dad-900b-acb400f810df",
1591
+ "sequence_number":112,
1592
+ "event_name":"price_updated",
1593
+ "timestamp":"2014-08-15 18:08:11 UTC",
1594
+ "event_args":{"method_name":"price_updated",
1595
+ "method_args":[],
1596
+ "attribute_deltas":[{"attribute_name":"price",
1597
+ "old_value":400,
1598
+ "new_value":4001}]}},
1599
+ {"aggregate_type":"SandthornProduct",
1600
+ "aggregate_version":6,
1601
+ "aggregate_id":"ac1be457-b6b9-4dad-900b-acb400f810df",
1602
+ "sequence_number":113,
1603
+ "event_name":"stock_status_updated",
1604
+ "timestamp":"2014-08-15 20:22:33 UTC",
1605
+ "event_args":{"method_name":"stock_status_updated",
1606
+ "method_args":[],
1607
+ "attribute_deltas":[{"attribute_name":"stock_status",
1608
+ "old_value":"instock",
1609
+ "new_value":"discontinued"}]}},
1610
+ {"aggregate_type":"SandthornProduct",
1611
+ "aggregate_version":1,
1612
+ "aggregate_id":"62d88e96-c551-4157-a837-1674e3f2698d",
1613
+ "sequence_number":114,
1614
+ "event_name":"new",
1615
+ "timestamp":"2014-08-16 20:02:05 UTC",
1616
+ "event_args":{"method_name":"new",
1617
+ "method_args":[{"name":"Hahah",
1618
+ "price":"50",
1619
+ "stock_status":"outofstock"}],
1620
+ "attribute_deltas":[{"attribute_name":"name",
1621
+ "old_value":null,
1622
+ "new_value":"Hahah"},
1623
+ {"attribute_name":"price",
1624
+ "old_value":null,
1625
+ "new_value":50},
1626
+ {"attribute_name":"stock_status",
1627
+ "old_value":null,
1628
+ "new_value":"outofstock"},
1629
+ {"attribute_name":"active",
1630
+ "old_value":null,
1631
+ "new_value":true},
1632
+ {"attribute_name":"on_sale",
1633
+ "old_value":null,
1634
+ "new_value":false},
1635
+ {"attribute_name":"aggregate_id",
1636
+ "old_value":null,
1637
+ "new_value":"62d88e96-c551-4157-a837-1674e3f2698d"}]}},
1638
+ {"aggregate_type":"SandthornProduct",
1639
+ "aggregate_version":1,
1640
+ "aggregate_id":"b52f4bb4-5185-4d15-b4df-55d66cb62529",
1641
+ "sequence_number":115,
1642
+ "event_name":"new",
1643
+ "timestamp":"2014-08-17 06:28:29 UTC",
1644
+ "event_args":{"method_name":"new",
1645
+ "method_args":[{"name":"evnpr",
1646
+ "price":"10",
1647
+ "stock_status":"instock"}],
1648
+ "attribute_deltas":[{"attribute_name":"name",
1649
+ "old_value":null,
1650
+ "new_value":"evnpr"},
1651
+ {"attribute_name":"price",
1652
+ "old_value":null,
1653
+ "new_value":10},
1654
+ {"attribute_name":"stock_status",
1655
+ "old_value":null,
1656
+ "new_value":"instock"},
1657
+ {"attribute_name":"active",
1658
+ "old_value":null,
1659
+ "new_value":true},
1660
+ {"attribute_name":"on_sale",
1661
+ "old_value":null,
1662
+ "new_value":false},
1663
+ {"attribute_name":"aggregate_id",
1664
+ "old_value":null,
1665
+ "new_value":"b52f4bb4-5185-4d15-b4df-55d66cb62529"}]}},
1666
+ {"aggregate_type":"SandthornProduct",
1667
+ "aggregate_version":2,
1668
+ "aggregate_id":"6f3bd02c-918e-4be4-8458-65e16191abff",
1669
+ "sequence_number":116,
1670
+ "event_name":"name_updated",
1671
+ "timestamp":"2014-08-20 04:56:56 UTC",
1672
+ "event_args":{"method_name":"name_updated",
1673
+ "method_args":[],
1674
+ "attribute_deltas":[{"attribute_name":"name",
1675
+ "old_value":"New product",
1676
+ "new_value":"New product2"}]}},
1677
+ {"aggregate_type":"SandthornProduct",
1678
+ "aggregate_version":3,
1679
+ "aggregate_id":"6f3bd02c-918e-4be4-8458-65e16191abff",
1680
+ "sequence_number":117,
1681
+ "event_name":"stock_status_updated",
1682
+ "timestamp":"2014-08-20 04:56:56 UTC",
1683
+ "event_args":{"method_name":"stock_status_updated",
1684
+ "method_args":[],
1685
+ "attribute_deltas":[{"attribute_name":"stock_status",
1686
+ "old_value":"outofstock",
1687
+ "new_value":null}]}},
1688
+ {"aggregate_type":"SandthornProduct",
1689
+ "aggregate_version":2,
1690
+ "aggregate_id":"b52f4bb4-5185-4d15-b4df-55d66cb62529",
1691
+ "sequence_number":118,
1692
+ "event_name":"price_updated",
1693
+ "timestamp":"2014-08-21 09:58:42 UTC",
1694
+ "event_args":{"method_name":"price_updated",
1695
+ "method_args":[],
1696
+ "attribute_deltas":[{"attribute_name":"price",
1697
+ "old_value":10,
1698
+ "new_value":11}]}},
1699
+ {"aggregate_type":"SandthornProduct",
1700
+ "aggregate_version":1,
1701
+ "aggregate_id":"7268dbb6-7d2b-4ae5-b4ec-33265c5fa291",
1702
+ "sequence_number":119,
1703
+ "event_name":"new",
1704
+ "timestamp":"2014-08-21 14:38:17 UTC",
1705
+ "event_args":{"method_name":"new",
1706
+ "method_args":[{"name":"test",
1707
+ "price":"66",
1708
+ "stock_status":"instock"}],
1709
+ "attribute_deltas":[{"attribute_name":"name",
1710
+ "old_value":null,
1711
+ "new_value":"test"},
1712
+ {"attribute_name":"price",
1713
+ "old_value":null,
1714
+ "new_value":66},
1715
+ {"attribute_name":"stock_status",
1716
+ "old_value":null,
1717
+ "new_value":"instock"},
1718
+ {"attribute_name":"active",
1719
+ "old_value":null,
1720
+ "new_value":true},
1721
+ {"attribute_name":"on_sale",
1722
+ "old_value":null,
1723
+ "new_value":false},
1724
+ {"attribute_name":"aggregate_id",
1725
+ "old_value":null,
1726
+ "new_value":"7268dbb6-7d2b-4ae5-b4ec-33265c5fa291"}]}},
1727
+ {"aggregate_type":"SandthornProduct",
1728
+ "aggregate_version":10,
1729
+ "aggregate_id":"fea566ae-66e2-48bc-95d6-100ce8e7fd2d",
1730
+ "sequence_number":120,
1731
+ "event_name":"price_updated",
1732
+ "timestamp":"2014-08-21 14:42:57 UTC",
1733
+ "event_args":{"method_name":"price_updated",
1734
+ "method_args":[],
1735
+ "attribute_deltas":[{"attribute_name":"price",
1736
+ "old_value":87,
1737
+ "new_value":1000}]}},
1738
+ {"aggregate_type":"SandthornProduct",
1739
+ "aggregate_version":2,
1740
+ "aggregate_id":"62d88e96-c551-4157-a837-1674e3f2698d",
1741
+ "sequence_number":121,
1742
+ "event_name":"stock_status_updated",
1743
+ "timestamp":"2014-09-02 02:40:11 UTC",
1744
+ "event_args":{"method_name":"stock_status_updated",
1745
+ "method_args":[],
1746
+ "attribute_deltas":[{"attribute_name":"stock_status",
1747
+ "old_value":"outofstock",
1748
+ "new_value":"instock"}]}},
1749
+ {"aggregate_type":"SandthornProduct",
1750
+ "aggregate_version":1,
1751
+ "aggregate_id":"3d6458e1-c7ee-4452-aba0-b76cbf32d500",
1752
+ "sequence_number":122,
1753
+ "event_name":"new",
1754
+ "timestamp":"2014-09-02 12:42:22 UTC",
1755
+ "event_args":{"method_name":"new",
1756
+ "method_args":[{"name":"qw",
1757
+ "price":"32",
1758
+ "stock_status":"outofstock"}],
1759
+ "attribute_deltas":[{"attribute_name":"name",
1760
+ "old_value":null,
1761
+ "new_value":"qw"},
1762
+ {"attribute_name":"price",
1763
+ "old_value":null,
1764
+ "new_value":32},
1765
+ {"attribute_name":"stock_status",
1766
+ "old_value":null,
1767
+ "new_value":"outofstock"},
1768
+ {"attribute_name":"active",
1769
+ "old_value":null,
1770
+ "new_value":true},
1771
+ {"attribute_name":"on_sale",
1772
+ "old_value":null,
1773
+ "new_value":false},
1774
+ {"attribute_name":"aggregate_id",
1775
+ "old_value":null,
1776
+ "new_value":"3d6458e1-c7ee-4452-aba0-b76cbf32d500"}]}},
1777
+ {"aggregate_type":"SandthornProduct",
1778
+ "aggregate_version":3,
1779
+ "aggregate_id":"44ff3689-bbfe-4883-90ce-31dbc702064e",
1780
+ "sequence_number":123,
1781
+ "event_name":"price_updated",
1782
+ "timestamp":"2014-09-02 17:56:10 UTC",
1783
+ "event_args":{"method_name":"price_updated",
1784
+ "method_args":[],
1785
+ "attribute_deltas":[{"attribute_name":"price",
1786
+ "old_value":25,
1787
+ "new_value":253}]}},
1788
+ {"aggregate_type":"SandthornProduct",
1789
+ "aggregate_version":4,
1790
+ "aggregate_id":"44ff3689-bbfe-4883-90ce-31dbc702064e",
1791
+ "sequence_number":124,
1792
+ "event_name":"name_updated",
1793
+ "timestamp":"2014-09-02 17:56:47 UTC",
1794
+ "event_args":{"method_name":"name_updated",
1795
+ "method_args":[],
1796
+ "attribute_deltas":[{"attribute_name":"name",
1797
+ "old_value":"test",
1798
+ "new_value":"test234"}]}},
1799
+ {"aggregate_type":"SandthornProduct",
1800
+ "aggregate_version":5,
1801
+ "aggregate_id":"44ff3689-bbfe-4883-90ce-31dbc702064e",
1802
+ "sequence_number":125,
1803
+ "event_name":"name_updated",
1804
+ "timestamp":"2014-09-02 17:56:58 UTC",
1805
+ "event_args":{"method_name":"name_updated",
1806
+ "method_args":[],
1807
+ "attribute_deltas":[{"attribute_name":"name",
1808
+ "old_value":"test234",
1809
+ "new_value":"test2345"}]}},
1810
+ {"aggregate_type":"SandthornProduct",
1811
+ "aggregate_version":6,
1812
+ "aggregate_id":"44ff3689-bbfe-4883-90ce-31dbc702064e",
1813
+ "sequence_number":126,
1814
+ "event_name":"price_updated",
1815
+ "timestamp":"2014-09-02 17:56:58 UTC",
1816
+ "event_args":{"method_name":"price_updated",
1817
+ "method_args":[],
1818
+ "attribute_deltas":[{"attribute_name":"price",
1819
+ "old_value":253,
1820
+ "new_value":2253}]}},
1821
+ {"aggregate_type":"SandthornProduct",
1822
+ "aggregate_version":1,
1823
+ "aggregate_id":"8535c563-3f12-4393-93d1-9ef10ea72dc4",
1824
+ "sequence_number":127,
1825
+ "event_name":"new",
1826
+ "timestamp":"2014-09-04 11:47:23 UTC",
1827
+ "event_args":{"method_name":"new",
1828
+ "method_args":[{"name":"bike",
1829
+ "price":"10",
1830
+ "stock_status":"outofstock"}],
1831
+ "attribute_deltas":[{"attribute_name":"name",
1832
+ "old_value":null,
1833
+ "new_value":"bike"},
1834
+ {"attribute_name":"price",
1835
+ "old_value":null,
1836
+ "new_value":10},
1837
+ {"attribute_name":"stock_status",
1838
+ "old_value":null,
1839
+ "new_value":"outofstock"},
1840
+ {"attribute_name":"active",
1841
+ "old_value":null,
1842
+ "new_value":true},
1843
+ {"attribute_name":"on_sale",
1844
+ "old_value":null,
1845
+ "new_value":false},
1846
+ {"attribute_name":"aggregate_id",
1847
+ "old_value":null,
1848
+ "new_value":"8535c563-3f12-4393-93d1-9ef10ea72dc4"}]}},
1849
+ {"aggregate_type":"SandthornProduct",
1850
+ "aggregate_version":1,
1851
+ "aggregate_id":"b8febd28-b051-4b22-85f8-682262ed65a3",
1852
+ "sequence_number":128,
1853
+ "event_name":"new",
1854
+ "timestamp":"2014-09-04 13:17:45 UTC",
1855
+ "event_args":{"method_name":"new",
1856
+ "method_args":[{"name":"Testing",
1857
+ "price":"me",
1858
+ "stock_status":"outofstock"}],
1859
+ "attribute_deltas":[{"attribute_name":"name",
1860
+ "old_value":null,
1861
+ "new_value":"Testing"},
1862
+ {"attribute_name":"price",
1863
+ "old_value":null,
1864
+ "new_value":0},
1865
+ {"attribute_name":"stock_status",
1866
+ "old_value":null,
1867
+ "new_value":"outofstock"},
1868
+ {"attribute_name":"active",
1869
+ "old_value":null,
1870
+ "new_value":true},
1871
+ {"attribute_name":"on_sale",
1872
+ "old_value":null,
1873
+ "new_value":false},
1874
+ {"attribute_name":"aggregate_id",
1875
+ "old_value":null,
1876
+ "new_value":"b8febd28-b051-4b22-85f8-682262ed65a3"}]}}]