pg_eventstore 1.0.1 → 1.0.3

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: 6e19579ca7d60484010b00aa2c6a823c71a2181cff6c6b9d83f6abcea32912c1
4
- data.tar.gz: c4f2c0a04a4f63e0df4f75e0d361cd43c2183ac9d6fa7789f7be7f10e4e48212
3
+ metadata.gz: d164756463155daaa363ac2c51d2b85097559d471912af64298e988d6a1831bb
4
+ data.tar.gz: a3b727ae69c0cc4d897b9c1bc9ca4d2495677280f64f4af177ae790cefdfec1a
5
5
  SHA512:
6
- metadata.gz: 84c2e4127b0ad6f4f68bfadbf1f659d5bf03e686de01a7c2fe3372afb2ee05e3dcc53495577a4ad8e9d387725ceb6c4c7a2069b97e64b714f763098596be2708
7
- data.tar.gz: 1b3de8a2eb16cbb6397eedf4a17e4e094ba5b9a6ca77a2cab840f537a38cf670a227c59b7a14edc3964eeeba82def76a8217b61fb5df673c9348385c795600bc
6
+ metadata.gz: bc96f8a831df8271c74aa4ec9570016c740f454ce3b48cca41e070ec41166d4aea46e68d5630707c30c797aa4ec922f982c53c147c90e2e665eb7f14118ed84b
7
+ data.tar.gz: c1f8daa5fb4ff0b243d3d34ae8846aef18d20dadf0284f7ac5e9d8c159f2f2fdfe622124c6186a4cc566a445c90228b27814ad93d7b4db3cdf98f793fc564670
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.3]
4
+ - Do no update `Subscription#last_chunk_fed_at` if the chunk is empty
5
+
6
+ ## [1.0.2]
7
+ - UI: Fix opening of SubscriptionsSet tab of non-existing SubscriptionsSet
8
+
3
9
  ## [1.0.1]
4
10
  - Adjust assets urls to correctly act when mounting sinatra app under non-root url
5
11
 
@@ -106,7 +106,9 @@ module PgEventstore
106
106
  # @param global_position [Integer, nil]
107
107
  # @return [void]
108
108
  def update_subscription_chunk_stats(global_position)
109
- global_position ||= @subscription.last_chunk_greatest_position
109
+ # nil means subscriptions events query were executed, but there were no new events
110
+ return @subscription.update(updated_at: Time.now.utc) if global_position.nil?
111
+
110
112
  @subscription.update(last_chunk_fed_at: Time.now.utc, last_chunk_greatest_position: global_position)
111
113
  end
112
114
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgEventstore
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.3"
5
5
  end
@@ -144,7 +144,9 @@ $(function(){
144
144
  // Open correct SubscriptionsSet tab on page load based on location's hash value. So, e.g., if you navigated to
145
145
  // #set-1 SubscriptionsSet, then, on page reload - the correct tab will be opened
146
146
  if(window.location.hash !== "") {
147
- $(`.set-tab[href="${window.location.hash}"]`).get(0).click();
147
+ let link = $(`.set-tab[href="${window.location.hash}"]`).get(0);
148
+ if(link)
149
+ link.click();
148
150
  }
149
151
  });
150
152
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_eventstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-10 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg