karafka-web 0.7.0 → 0.7.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: 651916e28aaa3964d58370954dc66d15afb727f5ca2b4e3f2d8909c41420f329
4
- data.tar.gz: c4134a5c8a95a59fe9cd31954333d0663d242291a63718b256b4a95d03a865c0
3
+ metadata.gz: 291ef570840ca0156ae989c7bb729253e0a521d948e2f47688f88f8736568f5d
4
+ data.tar.gz: ee5b833af74db2c40cde6b2dafa7ead04308d16a3e5039b71c27e0f268cc7a8b
5
5
  SHA512:
6
- metadata.gz: 87f1a55595f44d1233a0a88433bf8d245dee7f11e2a1d0d78574eebba3a0471d47588ae7d4a6666674c22d0b35e84042113b37f083900d82a919339192443555
7
- data.tar.gz: b618135edf9acdc3130e213fcf8d70d71975f1b813335252d9ef7b94a2f495cd653b891e9628f7bfc63ba8fcdc02dd9c28139508780d4fbbdd5e715e27150641
6
+ metadata.gz: 9a05eefd03dab85d2576167c64a64ae3e13d944171df675626984eb57f7d0373d149d55a378fb44d4d8861c9db23b20ea6eef7368c53e9b101fda3dde4bc19bc
7
+ data.tar.gz: a7156e82313ff118fc1a35721bd14c9383ad670da877b31b00f7e4de95fb0d8b63d6385123efd54b9a15b68bd9734af9599c68136f8f84939f8851d01aab4856
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Karafka Web changelog
2
2
 
3
+ ## 0.7.1 (2023-09-15)
4
+ - [Improvement] Limit number of partitions listed on the Consumers view if they exceed 10 to improve readability and indicate, that there are more.
5
+ - [Improvement] Make sure, that small messages size (less than 100 bytes) is correctly displayed.
6
+ - [Fix] Validate refresh time.
7
+ - [Fix] Fix invalid message payload size display (KB instead of B, etc).
8
+
3
9
  ## 0.7.0 (2023-09-14)
4
10
  - **[Feature]** Introduce graphs.
5
11
  - **[Feature]** Introduce historical metrics storage.
@@ -96,6 +102,7 @@ Karafka::Web.enable!
96
102
 
97
103
  Because of the reporting schema update and new web-ui topics introduction, it is recommended to:
98
104
 
105
+ 0. Make sure you have upgraded to `0.6.3` before and that it was deployed. To all the environments you want to migrate to `0.7.0`.
99
106
  1. Upgrade the codebase based on the below details.
100
107
  2. **Stop** the consumer materializing Web-UI. Unless you are running a Web-UI dedicated consumer as recommended [here](https://karafka.io/docs/Web-UI-Development-vs-Production/), you will have to stop all the consumers. This is **crucial** because of schema changes. `karafka-web` `0.7.0` introduces the detection of schema changes, so this step should not be needed in the future.
101
108
  3. Run a migration command: `bundle exec karafka-web migrate` that will create missing states and missing topics. You **need** to run it for each of the environments where you use Karafka Web UI.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-web (0.7.0)
4
+ karafka-web (0.7.1)
5
5
  erubi (~> 1.4)
6
6
  karafka (>= 2.2.3, < 3.0.0)
7
7
  karafka-core (>= 2.2.2, < 3.0.0)
@@ -14,7 +14,11 @@
14
14
  <% subscription_group.topics.each do |topic| %>
15
15
  <span class="badge bg-secondary badge-topic" title="Consumer group: <%= consumer_group.id %>">
16
16
  <%= topic.name %>:
17
- <%= topic.partitions.map(&:id).join(',') %>
17
+ <% if topic.partitions.size > 10 %>
18
+ <%= "#{topic.partitions.first(10).map(&:id).join(',')}..." %>
19
+ <% else %>
20
+ <%= topic.partitions.map(&:id).join(',') %>
21
+ <% end %>
18
22
  </span>
19
23
  <% end %>
20
24
  <% end %>
@@ -49,7 +49,7 @@
49
49
  'explorer/messages/detail',
50
50
  locals: {
51
51
  k: 'bytesize',
52
- v: format_memory((@message.raw_payload&.bytesize || 0 / 1024.to_f).round(2))
52
+ v: format_memory(((@message.raw_payload&.bytesize || 0) / 1024.to_f).round(4))
53
53
  }
54
54
  )
55
55
  %>
@@ -116,6 +116,15 @@ function scheduleLivePoll() {
116
116
  }
117
117
 
118
118
  let ti = parseInt(localStorage.karafkaTimeInterval) || 5000;
119
+
120
+ // Ensure refresh frequency is not less than 1 second
121
+ // Prevent a case where local storage could be modified in such a way, that would cause issues
122
+ // due to too frequent refreshes
123
+ if (ti < 1000) {
124
+ localStorage.karafkaTimeInterval = 5000
125
+ ti = 5000
126
+ }
127
+
119
128
  livePollTimer = setTimeout(livePollCallback, ti);
120
129
  }
121
130
 
@@ -3,6 +3,6 @@
3
3
  module Karafka
4
4
  module Web
5
5
  # Current gem version
6
- VERSION = '0.7.0'
6
+ VERSION = '0.7.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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
36
36
  msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
37
37
  -----END CERTIFICATE-----
38
- date: 2023-09-14 00:00:00.000000000 Z
38
+ date: 2023-09-15 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: erubi
metadata.gz.sig CHANGED
Binary file