karafka-web 0.10.2 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +12 -10
- data/config/locales/pro_errors.yml +7 -1
- data/docker-compose.yml +1 -1
- data/karafka-web.gemspec +8 -2
- data/lib/karafka/web/config.rb +6 -1
- data/lib/karafka/web/contracts/config.rb +1 -0
- data/lib/karafka/web/management/actions/create_topics.rb +1 -1
- data/lib/karafka/web/pro/commanding/commands/{probe.rb → trace.rb} +3 -3
- data/lib/karafka/web/pro/commanding/listener.rb +1 -1
- data/lib/karafka/web/pro/commanding/manager.rb +2 -2
- data/lib/karafka/web/pro/commanding.rb +1 -1
- data/lib/karafka/web/pro/loader.rb +23 -2
- data/lib/karafka/web/pro/ui/app.rb +12 -2
- data/lib/karafka/web/pro/ui/controllers/commanding_controller.rb +4 -4
- data/lib/karafka/web/pro/ui/controllers/routing_controller.rb +18 -1
- data/lib/karafka/web/pro/ui/controllers/scheduled_messages/messages_controller.rb +60 -0
- data/lib/karafka/web/pro/ui/lib/branding/config.rb +40 -0
- data/lib/karafka/web/pro/ui/lib/branding/contracts/config.rb +56 -0
- data/lib/karafka/web/pro/ui/lib/branding.rb +36 -0
- data/lib/karafka/web/pro/ui/views/commands/_command.erb +1 -1
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +3 -3
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +4 -4
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_actions.erb +2 -2
- data/lib/karafka/web/pro/ui/views/routing/_consumer_group.erb +2 -0
- data/lib/karafka/web/pro/ui/views/routing/_topic.erb +10 -0
- data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/_key.erb +9 -0
- data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/_message.erb +51 -13
- data/lib/karafka/web/pro/ui/views/shared/_navigation.erb +20 -15
- data/lib/karafka/web/pro/ui/views/shared/branding/_label.erb +20 -0
- data/lib/karafka/web/pro/ui/views/shared/branding/_notice.erb +13 -0
- data/lib/karafka/web/tracking/consumers/listeners/errors.rb +38 -9
- data/lib/karafka/web/tracking/producers/reporter.rb +1 -8
- data/lib/karafka/web/ui/helpers/tailwind_helper.rb +5 -4
- data/lib/karafka/web/ui/public/javascripts/application.js +1 -0
- data/lib/karafka/web/ui/public/javascripts/application.min.js +4 -3
- data/lib/karafka/web/ui/public/javascripts/application.min.js.br +0 -0
- data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
- data/lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js +31 -11
- data/lib/karafka/web/ui/public/stylesheets/application.css +21 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css +2 -1
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +69 -2
- data/lib/karafka/web/ui/views/layout.erb +5 -2
- data/lib/karafka/web/ui/views/shared/_brand.erb +3 -2
- data/lib/karafka/web/ui/views/shared/_navigation.erb +19 -15
- data/lib/karafka/web/ui/views/shared/alerts/_error.erb +3 -1
- data/lib/karafka/web/ui/views/shared/alerts/_info.erb +1 -1
- data/lib/karafka/web/ui/views/shared/alerts/_primary.erb +3 -1
- data/lib/karafka/web/ui/views/shared/alerts/_secondary.erb +3 -1
- data/lib/karafka/web/ui/views/shared/alerts/_success.erb +3 -1
- data/lib/karafka/web/ui/views/shared/alerts/_warning.erb +3 -1
- data/lib/karafka/web/ui/views/shared/icons/_chevron.erb +4 -0
- data/lib/karafka/web/version.rb +1 -1
- data/lib/karafka/web.rb +6 -1
- data/package-lock.json +40 -35
- data.tar.gz.sig +0 -0
- metadata +13 -15
- metadata.gz.sig +0 -0
- data/.coditsu/ci.yml +0 -3
- data/.diffend.yml +0 -3
- data/.github/FUNDING.yml +0 -1
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -50
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- data/.github/workflows/ci.yml +0 -133
- data/.gitignore +0 -71
- data/.rspec +0 -1
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
@@ -1,50 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug Report
|
3
|
-
about: Report an issue with Karafka you've discovered.
|
4
|
-
---
|
5
|
-
|
6
|
-
*Be clear, concise and precise in your description of the problem.
|
7
|
-
Open an issue with a descriptive title and a summary in grammatically correct,
|
8
|
-
complete sentences.*
|
9
|
-
|
10
|
-
*Use the template below when reporting bugs. Please, make sure that
|
11
|
-
you're running the latest stable Karafka and that the problem you're reporting
|
12
|
-
hasn't been reported (and potentially fixed) already.*
|
13
|
-
|
14
|
-
*Before filing the ticket you should replace all text above the horizontal
|
15
|
-
rule with your own words.*
|
16
|
-
|
17
|
-
--------
|
18
|
-
|
19
|
-
## Expected behavior
|
20
|
-
|
21
|
-
Describe here how you expected Karafka to behave in this particular situation.
|
22
|
-
|
23
|
-
## Actual behavior
|
24
|
-
|
25
|
-
Describe here what actually happened.
|
26
|
-
|
27
|
-
## Steps to reproduce the problem
|
28
|
-
|
29
|
-
This is extremely important! Providing us with a reliable way to reproduce
|
30
|
-
a problem will expedite its solution.
|
31
|
-
|
32
|
-
## Your setup details
|
33
|
-
|
34
|
-
Please provide kafka version and the output of `karafka info` or `bundle exec karafka info` if using Bundler.
|
35
|
-
|
36
|
-
Here's an example:
|
37
|
-
|
38
|
-
```
|
39
|
-
$ [bundle exec] karafka info
|
40
|
-
Karafka version: 1.3.0
|
41
|
-
Ruby version: 2.6.3
|
42
|
-
Ruby-kafka version: 0.7.9
|
43
|
-
Application client id: karafka-local
|
44
|
-
Backend: inline
|
45
|
-
Batch fetching: true
|
46
|
-
Batch consuming: true
|
47
|
-
Boot file: /app/karafka/karafka.rb
|
48
|
-
Environment: development
|
49
|
-
Kafka seed brokers: ["kafka://kafka:9092"]
|
50
|
-
```
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature Request
|
3
|
-
about: Suggest new Karafka features or improvements to existing features.
|
4
|
-
---
|
5
|
-
|
6
|
-
## Is your feature request related to a problem? Please describe.
|
7
|
-
|
8
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
9
|
-
|
10
|
-
## Describe the solution you'd like
|
11
|
-
|
12
|
-
A clear and concise description of what you want to happen.
|
13
|
-
|
14
|
-
## Describe alternatives you've considered
|
15
|
-
|
16
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
17
|
-
|
18
|
-
## Additional context
|
19
|
-
|
20
|
-
Add any other context or screenshots about the feature request here.
|
data/.github/workflows/ci.yml
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
name: ci
|
2
|
-
|
3
|
-
concurrency:
|
4
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
5
|
-
cancel-in-progress: true
|
6
|
-
|
7
|
-
on:
|
8
|
-
pull_request:
|
9
|
-
push:
|
10
|
-
schedule:
|
11
|
-
- cron: '0 1 * * *'
|
12
|
-
|
13
|
-
env:
|
14
|
-
BUNDLE_RETRY: 6
|
15
|
-
BUNDLE_JOBS: 4
|
16
|
-
|
17
|
-
jobs:
|
18
|
-
specs:
|
19
|
-
runs-on: ubuntu-latest
|
20
|
-
needs: diffend
|
21
|
-
strategy:
|
22
|
-
fail-fast: false
|
23
|
-
matrix:
|
24
|
-
ruby:
|
25
|
-
- '3.4.0-preview1'
|
26
|
-
- '3.3'
|
27
|
-
- '3.2'
|
28
|
-
- '3.1'
|
29
|
-
- '3.0'
|
30
|
-
include:
|
31
|
-
- ruby: '3.3'
|
32
|
-
coverage: 'true'
|
33
|
-
steps:
|
34
|
-
- uses: actions/checkout@v4
|
35
|
-
- name: Install package dependencies
|
36
|
-
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
|
37
|
-
|
38
|
-
- name: Start Kafka with docker compose
|
39
|
-
run: |
|
40
|
-
docker compose up -d || (sleep 5 && docker compose up -d)
|
41
|
-
|
42
|
-
- name: Set up Ruby
|
43
|
-
uses: ruby/setup-ruby@v1
|
44
|
-
with:
|
45
|
-
ruby-version: ${{matrix.ruby}}
|
46
|
-
bundler-cache: true
|
47
|
-
bundler: 'latest'
|
48
|
-
|
49
|
-
- name: Install latest bundler
|
50
|
-
run: |
|
51
|
-
gem install bundler --no-document
|
52
|
-
gem update --system --no-document
|
53
|
-
|
54
|
-
bundle config set without 'tools benchmarks docs'
|
55
|
-
|
56
|
-
- name: Bundle install
|
57
|
-
run: |
|
58
|
-
bundle config set without development
|
59
|
-
bundle install --jobs 4 --retry 3
|
60
|
-
|
61
|
-
- name: Wait for Kafka
|
62
|
-
run: |
|
63
|
-
bundle exec bin/wait_for_kafka
|
64
|
-
|
65
|
-
- name: Run all tests
|
66
|
-
env:
|
67
|
-
GITHUB_COVERAGE: ${{matrix.coverage}}
|
68
|
-
KARAFKA_PRO_LICENSE_TOKEN: ${{ secrets.KARAFKA_PRO_LICENSE_TOKEN }}
|
69
|
-
run: bin/rspecs
|
70
|
-
|
71
|
-
diffend:
|
72
|
-
runs-on: ubuntu-latest
|
73
|
-
strategy:
|
74
|
-
fail-fast: false
|
75
|
-
steps:
|
76
|
-
- uses: actions/checkout@v4
|
77
|
-
with:
|
78
|
-
fetch-depth: 0
|
79
|
-
|
80
|
-
- name: Set up Ruby
|
81
|
-
uses: ruby/setup-ruby@v1
|
82
|
-
with:
|
83
|
-
ruby-version: 3.3
|
84
|
-
bundler-cache: true
|
85
|
-
|
86
|
-
- name: Install Diffend plugin
|
87
|
-
run: bundle plugin install diffend
|
88
|
-
|
89
|
-
- name: Bundle Secure
|
90
|
-
run: bundle secure
|
91
|
-
|
92
|
-
coditsu:
|
93
|
-
runs-on: ubuntu-latest
|
94
|
-
strategy:
|
95
|
-
fail-fast: false
|
96
|
-
steps:
|
97
|
-
- uses: actions/checkout@v4
|
98
|
-
with:
|
99
|
-
fetch-depth: 0
|
100
|
-
- name: Run Coditsu
|
101
|
-
env:
|
102
|
-
CODITSU_API_KEY: ${{ secrets.CODITSU_API_KEY }}
|
103
|
-
CODITSU_API_SECRET: ${{ secrets.CODITSU_API_SECRET }}
|
104
|
-
run: \curl -sSL https://api.coditsu.io/run/ci | bash
|
105
|
-
|
106
|
-
|
107
|
-
assets:
|
108
|
-
runs-on: ubuntu-latest
|
109
|
-
steps:
|
110
|
-
- name: Checkout code
|
111
|
-
uses: actions/checkout@v4
|
112
|
-
|
113
|
-
- name: Set up Node.js
|
114
|
-
uses: actions/setup-node@v4
|
115
|
-
with:
|
116
|
-
node-version: '17'
|
117
|
-
|
118
|
-
- name: Cache node modules
|
119
|
-
uses: actions/cache@v4
|
120
|
-
with:
|
121
|
-
path: ~/.npm
|
122
|
-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
123
|
-
restore-keys: |
|
124
|
-
${{ runner.os }}-node-
|
125
|
-
|
126
|
-
- name: Install dependencies
|
127
|
-
run: npm install
|
128
|
-
|
129
|
-
- name: Build development assets
|
130
|
-
run: ./bin/build_assets
|
131
|
-
|
132
|
-
- name: Build release assets
|
133
|
-
run: KARAFKA_RELEASE=true ./bin/build_assets
|
data/.gitignore
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
# bundler state
|
2
|
-
/.bundle
|
3
|
-
/vendor/bundle/
|
4
|
-
/vendor/ruby/
|
5
|
-
/ruby/
|
6
|
-
app.god
|
7
|
-
|
8
|
-
# minimal Rails specific artifacts
|
9
|
-
/.coditsu/local.yml
|
10
|
-
db/*.sqlite3
|
11
|
-
/log/development.log
|
12
|
-
/log/production.log
|
13
|
-
/log/test.log
|
14
|
-
/tmp/*
|
15
|
-
*.gem
|
16
|
-
*.~
|
17
|
-
|
18
|
-
# various artifacts
|
19
|
-
**.war
|
20
|
-
*.rbc
|
21
|
-
*.sassc
|
22
|
-
.byebug_history
|
23
|
-
.redcar/
|
24
|
-
.capistrano/
|
25
|
-
.sass-cache
|
26
|
-
/config/god/sidekiq.rb
|
27
|
-
/config/puma.rb
|
28
|
-
/coverage.data
|
29
|
-
/coverage/
|
30
|
-
/doc/api/
|
31
|
-
/doc/app/
|
32
|
-
/doc/yard
|
33
|
-
/doc/features.html
|
34
|
-
/doc/specs.html
|
35
|
-
/spec/tmp/*
|
36
|
-
/cache
|
37
|
-
/capybara*
|
38
|
-
/capybara-*.html
|
39
|
-
/gems
|
40
|
-
/specifications
|
41
|
-
/node_modules
|
42
|
-
rerun.txt
|
43
|
-
pickle-email-*.html
|
44
|
-
tailwind.min.css
|
45
|
-
|
46
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
47
|
-
# or operating system, you probably want to add a global ignore instead:
|
48
|
-
# git config --global core.excludesfile ~/.gitignore_global
|
49
|
-
#
|
50
|
-
# Here are some files you may want to ignore globally:
|
51
|
-
|
52
|
-
# scm revert files
|
53
|
-
**.orig
|
54
|
-
|
55
|
-
# Mac finder artifacts
|
56
|
-
.DS_Store
|
57
|
-
|
58
|
-
# Netbeans project directory
|
59
|
-
/nbproject
|
60
|
-
|
61
|
-
# RubyMine project files
|
62
|
-
.idea
|
63
|
-
|
64
|
-
# Textmate project files
|
65
|
-
/*.tmproj
|
66
|
-
|
67
|
-
# vim artifacts
|
68
|
-
**.swp
|
69
|
-
|
70
|
-
# documentation
|
71
|
-
.yardoc
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--require spec_helper
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
karafka-web
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.3.5
|