karafka-web 0.10.0.rc1 → 0.10.0

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: 973e9a2d6a32a1bd3bd1df4b812dd024631a4f444239c92bf3659cb1b31b262f
4
+ data.tar.gz: 49177c26dfee8b2b88a2bf39d46c98f00d696ac6251cecf8588f9e12cf1e55f0
5
5
  SHA512:
6
- metadata.gz: 3580461f5ff9dcc9d62147431097ce5b18601c69c85f605bf952fe76e8ac869aa60cd84ad5809cfef6fec2425f010ab35383e7c6c0367675544c301f43d2dc6d
7
- data.tar.gz: 5e6af8231d7ad24332193e67127f859ac58f541fddc4776c3fa29a3882a2656939df2b868e8dcf1a40ebc7c5ed8ad552a5c771b74bcde15c94931f514987774f
6
+ metadata.gz: 553207e2fc13646488ee0d2a219faf945829f9bc2d7d65878f65905e8cfda8b23c3c747add70b7a4cbe2e7a232bbe623089ebcadd905f989ac5e8b17685d00c4
7
+ data.tar.gz: 8df62e9627819ac505eb8c64f31950e48f35cbdc9426c8ae9bf12de8250e3f44e4f358357d0f1e5847411419598b87a4d92c2e95262278f9c2d10e1364648de3
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # Karafka Web Changelog
2
2
 
3
- ## 0.10.0 (Unreleased)
3
+ ## 0.10.0 (2024-08-19)
4
4
  - **[Breaking]** Rename and reorganize visibility filter to policies engine since it is not only about visibility.
5
5
  - **[Feature]** Replace Bootstrap with with tailwind + DaisyUI.
6
6
  - **[Feature]** Redesign the UI and move navigation to the left to make space for future features.
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
@@ -1,7 +1,7 @@
1
1
  <% unless Karafka.pro? %>
2
2
  <div id="help-us" class="col-span-12">
3
3
  <div class="mb-3">
4
- <div class="alert alert-info bg-white">
4
+ <div class="alert alert-info">
5
5
  <%== icon(:light_bulb) %>
6
6
  <span>
7
7
  <% linked = '<a target="_blank" href="https://karafka.io/#become-pro" class="text-blue-500 underline">Pro</a>' %>
@@ -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'
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
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-19 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: erubi
metadata.gz.sig CHANGED
Binary file