karafka-web 0.10.0.rc1 → 0.10.0.rc2

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: f3b6513c94fe099e3b17e875d2d95165d12730e80db85b34cd12d30d6a3023d7
4
- data.tar.gz: a2ebd203b76a526a511d615f82b00e2018e27777a630cfee569ffd01fa8074c5
3
+ metadata.gz: 8f9e6ffa0b52fd034fba9f20be4a3862dac935610601daa3e7ac14b912ac166d
4
+ data.tar.gz: d0cc099e8bcb8367c33c27326223346983fddb4bf0e8b40397c8ad2ae30a83fd
5
5
  SHA512:
6
- metadata.gz: 3580461f5ff9dcc9d62147431097ce5b18601c69c85f605bf952fe76e8ac869aa60cd84ad5809cfef6fec2425f010ab35383e7c6c0367675544c301f43d2dc6d
7
- data.tar.gz: 5e6af8231d7ad24332193e67127f859ac58f541fddc4776c3fa29a3882a2656939df2b868e8dcf1a40ebc7c5ed8ad552a5c771b74bcde15c94931f514987774f
6
+ metadata.gz: b88382f36d89b10ffaa249b8533210007620ae979af936b29a70a1c6b81cad8e2058a6bfc9d7c494dded5b67139da62e74629722ba1fb420d0e44664d25ea1ea
7
+ data.tar.gz: 541b6de732575af548cd39a12730c1eea7c60e072f468b5b28ead575828ae2863110b2975a79dd2d3389b9d1899048d5c9f225ef6cacef3645cae87baf062a3b
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- ��ǔ��Ĺ��M��H c:����8uu�z}��X���f\�� �Y볦nI(�/w@:�3Y ��K�m
1
+ q�-oC��;��Vq8 ��$Uz9L��yZ�^y���+$ѩ)U=]���r�����'�WDFW*��"0�"�F�^�*k����,R��K����z���Z��599sjH'���{�z�/aʨZ{2����t+����a�
data/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@
7
7
  - **[Feature]** Support per request policies for inspection and operations limitation.
8
8
  - **[Feature]** Provide Search capabilities in the Explorer (Pro).
9
9
  - **[Feature]** Provide dark mode.
10
+ - [Enhancement] Set `enable.partition.eof` to `false` for Web UI consumer group as it is not needed.
11
+ - [Enhancement] Allow for configuration of extra `kafka` scope options for the Web UI consumer group.
10
12
  - [Enhancement] Support Karafka `#eofed` consumer action.
11
13
  - [Enhancement] Provide topics watermarks inspection page (Pro).
12
14
  - [Enhancement] Use Turbo to improve usability.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-web (0.10.0.rc1)
4
+ karafka-web (0.10.0)
5
5
  erubi (~> 1.4)
6
6
  karafka (>= 2.4.7, < 2.5.0)
7
7
  karafka-core (>= 2.4.0, < 2.5.0)
@@ -123,6 +123,15 @@ module Karafka
123
123
  # By default we flush the states twice as often as the data reporting.
124
124
  # This will allow us to have closer to real-time reporting.
125
125
  setting :interval, default: 2_500
126
+
127
+ # Extra kafka level settings that we merge to the defaults when building the Web consumer
128
+ # group. User may want different things than we in regard to operations, thus effectively
129
+ # crippling responsiveness or stability of reporting.
130
+ setting :kafka, default: {
131
+ # We do not use at the moment the `#eofed` flag for anything, thus there is no point in
132
+ # having it set to true if user users it.
133
+ 'enable.partition.eof': false
134
+ }.freeze
126
135
  end
127
136
 
128
137
  setting :ui do
@@ -48,6 +48,9 @@ module Karafka
48
48
  required(:active) { |val| [true, false].include?(val) }
49
49
  # Do not update data more often not to overload and not to generate too much data
50
50
  required(:interval) { |val| val.is_a?(Integer) && val >= 1_000 }
51
+
52
+ # Extra Kafka setup for our processing consumer
53
+ required(:kafka) { |val| val.is_a?(Hash) }
51
54
  end
52
55
 
53
56
  nested(:ui) do
@@ -59,6 +62,7 @@ module Karafka
59
62
  required(:cache) { |val| !val.nil? }
60
63
  required(:per_page) { |val| val.is_a?(Integer) && val >= 1 && val <= 100 }
61
64
  required(:max_visible_payload_size) { |val| val.is_a?(Integer) && val >= 1 }
65
+ required(:kafka) { |val| val.is_a?(Hash) }
62
66
 
63
67
  required(:dlq_patterns) do |val|
64
68
  val.is_a?(Array) &&
@@ -47,6 +47,9 @@ module Karafka
47
47
 
48
48
  # Enables all the needed routes
49
49
  def extend_routing
50
+ kafka_config = ::Karafka::App.config.kafka.dup
51
+ kafka_config.merge!(::Karafka::Web.config.processing.kafka)
52
+
50
53
  ::Karafka::App.routes.draw do
51
54
  payload_deserializer = ::Karafka::Web::Deserializer.new
52
55
 
@@ -70,6 +73,9 @@ module Karafka
70
73
  # consumer group name would be renamed and we would start consuming all
71
74
  # historical
72
75
  initial_offset 'latest'
76
+ # We use the defaults + our config alterations that may not align with what
77
+ # user wants for his topics.
78
+ kafka kafka_config
73
79
  end
74
80
 
75
81
  # We define those three here without consumption, so Web understands how to
@@ -3,6 +3,6 @@
3
3
  module Karafka
4
4
  module Web
5
5
  # Current gem version
6
- VERSION = '0.10.0.rc1'
6
+ VERSION = '0.10.0.rc2'
7
7
  end
8
8
  end
data/package-lock.json CHANGED
@@ -3438,9 +3438,9 @@
3438
3438
  }
3439
3439
  },
3440
3440
  "node_modules/tailwindcss": {
3441
- "version": "3.4.8",
3442
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.8.tgz",
3443
- "integrity": "sha512-GkP17r9GQkxgZ9FKHJQEnjJuKBcbFhMFzKu5slmN6NjlCuFnYJMQ8N4AZ6VrUyiRXlDtPKHkesuQ/MS913Nvdg==",
3441
+ "version": "3.4.10",
3442
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.10.tgz",
3443
+ "integrity": "sha512-KWZkVPm7yJRhdu4SRSl9d4AK2wM3a50UsvgHZO7xY77NQr2V+fIrEuoDGQcbvswWvFGbS2f6e+jC/6WJm1Dl0w==",
3444
3444
  "dev": true,
3445
3445
  "license": "MIT",
3446
3446
  "dependencies": {
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.10.0.rc1
4
+ version: 0.10.0.rc2
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: 2024-08-08 00:00:00.000000000 Z
38
+ date: 2024-08-14 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: erubi
metadata.gz.sig CHANGED
Binary file