karafka-web 0.10.1 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +2 -1
  3. data/CHANGELOG.md +15 -1
  4. data/Gemfile.lock +13 -11
  5. data/config/locales/pro_errors.yml +7 -1
  6. data/docker-compose.yml +1 -1
  7. data/karafka-web.gemspec +10 -2
  8. data/lib/karafka/web/pro/commanding/commands/{probe.rb → trace.rb} +3 -3
  9. data/lib/karafka/web/pro/commanding/listener.rb +1 -1
  10. data/lib/karafka/web/pro/commanding/manager.rb +2 -2
  11. data/lib/karafka/web/pro/commanding.rb +1 -1
  12. data/lib/karafka/web/pro/loader.rb +4 -2
  13. data/lib/karafka/web/pro/ui/app.rb +47 -2
  14. data/lib/karafka/web/pro/ui/controllers/commanding_controller.rb +4 -4
  15. data/lib/karafka/web/pro/ui/controllers/routing_controller.rb +18 -1
  16. data/lib/karafka/web/pro/ui/controllers/scheduled_messages/base_controller.rb +29 -0
  17. data/lib/karafka/web/pro/ui/controllers/scheduled_messages/explorer_controller.rb +65 -0
  18. data/lib/karafka/web/pro/ui/controllers/scheduled_messages/messages_controller.rb +60 -0
  19. data/lib/karafka/web/pro/ui/controllers/scheduled_messages/schedules_controller.rb +84 -0
  20. data/lib/karafka/web/pro/ui/lib/branding/config.rb +40 -0
  21. data/lib/karafka/web/pro/ui/lib/branding/contracts/config.rb +56 -0
  22. data/lib/karafka/web/pro/ui/lib/branding.rb +36 -0
  23. data/lib/karafka/web/pro/ui/views/commands/_command.erb +1 -1
  24. data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +3 -3
  25. data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +4 -4
  26. data/lib/karafka/web/pro/ui/views/explorer/_partition_option.erb +10 -2
  27. data/lib/karafka/web/pro/ui/views/recurring_tasks/_actions.erb +2 -2
  28. data/lib/karafka/web/pro/ui/views/recurring_tasks/_not_active.erb +1 -1
  29. data/lib/karafka/web/pro/ui/views/routing/_consumer_group.erb +2 -0
  30. data/lib/karafka/web/pro/ui/views/routing/_topic.erb +10 -0
  31. data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/_breadcrumbs.erb +30 -0
  32. data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/_key.erb +9 -0
  33. data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/_message.erb +122 -0
  34. data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/_messages.erb +28 -0
  35. data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/partition.erb +72 -0
  36. data/lib/karafka/web/pro/ui/views/scheduled_messages/explorer/topic.erb +33 -0
  37. data/lib/karafka/web/pro/ui/views/scheduled_messages/schedules/_breadcrumbs.erb +21 -0
  38. data/lib/karafka/web/pro/ui/views/scheduled_messages/schedules/_no_groups.erb +11 -0
  39. data/lib/karafka/web/pro/ui/views/scheduled_messages/schedules/index.erb +38 -0
  40. data/lib/karafka/web/pro/ui/views/scheduled_messages/schedules/show.erb +48 -0
  41. data/lib/karafka/web/pro/ui/views/search/_breadcrumbs.erb +1 -0
  42. data/lib/karafka/web/pro/ui/views/shared/_navigation.erb +29 -14
  43. data/lib/karafka/web/pro/ui/views/shared/branding/_label.erb +20 -0
  44. data/lib/karafka/web/pro/ui/views/shared/branding/_notice.erb +13 -0
  45. data/lib/karafka/web/tracking/consumers/listeners/errors.rb +3 -1
  46. data/lib/karafka/web/ui/base.rb +1 -1
  47. data/lib/karafka/web/ui/controllers/base_controller.rb +18 -3
  48. data/lib/karafka/web/ui/helpers/application_helper.rb +21 -7
  49. data/lib/karafka/web/ui/helpers/paths_helper.rb +18 -0
  50. data/lib/karafka/web/ui/helpers/tailwind_helper.rb +5 -4
  51. data/lib/karafka/web/ui/models/recurring_tasks/log.rb +0 -11
  52. data/lib/karafka/web/ui/models/recurring_tasks/schedule.rb +0 -11
  53. data/lib/karafka/web/ui/models/recurring_tasks/task.rb +0 -11
  54. data/lib/karafka/web/ui/public/javascripts/application.js +1 -0
  55. data/lib/karafka/web/ui/public/javascripts/application.min.js +3 -3
  56. data/lib/karafka/web/ui/public/javascripts/application.min.js.br +0 -0
  57. data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
  58. data/lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js +16 -6
  59. data/lib/karafka/web/ui/public/javascripts/components/live_poll.js +15 -0
  60. data/lib/karafka/web/ui/public/stylesheets/application.css +21 -0
  61. data/lib/karafka/web/ui/public/stylesheets/application.min.css +1 -1
  62. data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
  63. data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
  64. data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +70 -3
  65. data/lib/karafka/web/ui/views/layout.erb +5 -2
  66. data/lib/karafka/web/ui/views/shared/_brand.erb +3 -2
  67. data/lib/karafka/web/ui/views/shared/_breadcrumbs.erb +1 -1
  68. data/lib/karafka/web/ui/views/shared/_navigation.erb +28 -14
  69. data/lib/karafka/web/ui/views/shared/alerts/_error.erb +3 -1
  70. data/lib/karafka/web/ui/views/shared/alerts/_info.erb +1 -1
  71. data/lib/karafka/web/ui/views/shared/alerts/_primary.erb +3 -1
  72. data/lib/karafka/web/ui/views/shared/alerts/_secondary.erb +3 -1
  73. data/lib/karafka/web/ui/views/shared/alerts/_success.erb +3 -1
  74. data/lib/karafka/web/ui/views/shared/alerts/_warning.erb +3 -1
  75. data/lib/karafka/web/ui/views/shared/icons/_calendar.erb +3 -0
  76. data/lib/karafka/web/ui/views/shared/icons/_chevron.erb +4 -0
  77. data/lib/karafka/web/version.rb +1 -1
  78. data/package-lock.json +3 -3
  79. data.tar.gz.sig +0 -0
  80. metadata +28 -16
  81. metadata.gz.sig +0 -0
  82. data/.coditsu/ci.yml +0 -3
  83. data/.diffend.yml +0 -3
  84. data/.github/FUNDING.yml +0 -1
  85. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -50
  86. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  87. data/.github/workflows/ci.yml +0 -133
  88. data/.gitignore +0 -71
  89. data/.rspec +0 -1
  90. data/.ruby-gemset +0 -1
  91. data/.ruby-version +0 -1
@@ -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.4