karafka-web 0.10.0.rc1 → 0.10.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +1 -1
- data/lib/karafka/web/config.rb +9 -0
- data/lib/karafka/web/contracts/config.rb +4 -0
- data/lib/karafka/web/management/actions/enable.rb +6 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
- data/lib/karafka/web/version.rb +1 -1
- data/package-lock.json +3 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f9e6ffa0b52fd034fba9f20be4a3862dac935610601daa3e7ac14b912ac166d
|
4
|
+
data.tar.gz: d0cc099e8bcb8367c33c27326223346983fddb4bf0e8b40397c8ad2ae30a83fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b88382f36d89b10ffaa249b8533210007620ae979af936b29a70a1c6b81cad8e2058a6bfc9d7c494dded5b67139da62e74629722ba1fb420d0e44664d25ea1ea
|
7
|
+
data.tar.gz: 541b6de732575af548cd39a12730c1eea7c60e072f468b5b28ead575828ae2863110b2975a79dd2d3389b9d1899048d5c9f225ef6cacef3645cae87baf062a3b
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
q�-o�C��;��V�q�8 ��$Uz9L��yZ�^y���+$ѩ)�U=]���r�����'�WDFW*��"0�"�F�^�*k����,R��K����z���Z��5�99sjH'���{�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
data/lib/karafka/web/config.rb
CHANGED
@@ -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
|
Binary file
|
data/lib/karafka/web/version.rb
CHANGED
data/package-lock.json
CHANGED
@@ -3438,9 +3438,9 @@
|
|
3438
3438
|
}
|
3439
3439
|
},
|
3440
3440
|
"node_modules/tailwindcss": {
|
3441
|
-
"version": "3.4.
|
3442
|
-
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.
|
3443
|
-
"integrity": "sha512-
|
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.
|
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-
|
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
|