karafka-web 0.3.0 → 0.3.1

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: 5c3bf9c5a445bd6a5d291412eea7fba31d1de171f0262543cf149c49946af788
4
- data.tar.gz: d4febb4b2b6bf5405213abaa114892b06f6207623c100cbfc4a3037809a0e94e
3
+ metadata.gz: 1b6f97a725c2cd9e8458d8b4a32a347e42898e1f5598b3998a460e063fc0b149
4
+ data.tar.gz: 4a8762c41fa42f5e9c75380ce098423acd72db1720dbf412fd33cb412efc3855
5
5
  SHA512:
6
- metadata.gz: 4ba13c91f46ef01927464720f9b0919f7a6bb5d7cc081a30e926a14b40331d375fdbab53b4de6fe3849101b15c3b9eeb70538a5821486ed15e4677a5e6995a3d
7
- data.tar.gz: 6402543fa36aac339bd2d0795a45802d4c3f3f085d4075fed994ea51d889a872cc2f8fe17c04206bf8811c2395a7381d01698e29adba497fec4e5b35c97892c4
6
+ metadata.gz: b1899bee43d1597e59755ce9f148b817e2c69c3b1b76ee7c6058aef2fc4a985f057b50c26bd000cc121c3cf73c694f906a92a85885e2d5337630ed728ba3e1a1
7
+ data.tar.gz: aaca8f979aa93075cceb315f25be6ca98dcde650a6302cca3b4d134df7159210996c71010be28043cb673d0ec54a8a54f5c058ec3f83d30a3d343c230de1a4cb
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Karafka Web changelog
2
2
 
3
+ ## 0.3.1 (2023-03-27)
4
+ - [Fix] Add missing retention policy for states topic.
5
+ - [Fix] Fix display of compacted messages placeholders for offsets lower than low watermark.
6
+ - [Fix] Fix invalid pagination per page count.
7
+
8
+ ### Upgrade notes
9
+
10
+ If upgrading from `0.3.0`, nothing.
11
+
12
+ If upgrading from lower, please follow `0.3.0` upgrade procedure.
13
+
3
14
  ## 0.3.0 (2023-03-27)
4
15
  - **[Feature]** Support paginating over compacted topics partitions.
5
16
  - [Improvement] Display watermark offsets in the errors view.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-web (0.3.0)
4
+ karafka-web (0.3.1)
5
5
  erubi (~> 1.4)
6
6
  karafka (>= 2.0.38, < 3.0.0)
7
7
  karafka-core (>= 2.0.12, < 3.0.0)
@@ -102,8 +102,13 @@ module Karafka
102
102
  consumers_states_topic,
103
103
  1,
104
104
  replication_factor,
105
- # We care only about the most recent state, previous are irrelevant
106
- { 'cleanup.policy': 'compact' }
105
+ # We care only about the most recent state, previous are irrelevant. So we can easily
106
+ # compact after one minute. We do not use this beyond the most recent collective
107
+ # state, hence it all can easily go away.
108
+ {
109
+ 'cleanup.policy': 'compact',
110
+ 'retention.ms': 60 * 60 * 1_000
111
+ }
107
112
  )
108
113
  end
109
114
 
@@ -56,11 +56,11 @@ module Karafka
56
56
  # not previous page leading offset
57
57
  start_offset = high_offset - (per_page * page)
58
58
 
59
- if start_offset < low_offset
60
- count = per_page + start_offset
59
+ if start_offset <= low_offset
60
+ count = per_page - (low_offset - start_offset)
61
61
  previous_page = page < 2 ? false : page - 1
62
62
  next_page = false
63
- start_offset = 0
63
+ start_offset = low_offset
64
64
  else
65
65
  previous_page = page < 2 ? false : page - 1
66
66
  next_page = page + 1
@@ -3,6 +3,6 @@
3
3
  module Karafka
4
4
  module Web
5
5
  # Current gem version
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.1'
7
7
  end
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
metadata.gz.sig CHANGED
Binary file