good_job 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/app/controllers/good_job/{performances_controller.rb → performance_controller.rb} +2 -2
- data/app/views/good_job/shared/_navbar.erb +2 -2
- data/config/locales/de.yml +3 -3
- data/config/locales/en.yml +3 -3
- data/config/locales/es.yml +3 -3
- data/config/locales/fr.yml +3 -3
- data/config/locales/it.yml +3 -3
- data/config/locales/ja.yml +3 -3
- data/config/locales/ko.yml +3 -3
- data/config/locales/nl.yml +3 -3
- data/config/locales/pt-BR.yml +3 -3
- data/config/locales/ru.yml +3 -3
- data/config/locales/tr.yml +3 -3
- data/config/locales/uk.yml +3 -3
- data/config/routes.rb +1 -1
- data/lib/good_job/configuration.rb +5 -1
- data/lib/good_job/version.rb +1 -1
- metadata +4 -4
- /data/app/views/good_job/{performances/show.html.erb → performance/index.html.erb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5725006ff1eae761677d25b8f89d55903532b80c6850a8a58ad6506823316763
|
4
|
+
data.tar.gz: fe91ce725bd86202334c86c308443a3c5e5b0c71b680be4d5086b87b0349fe8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96ca288be634ed11773a66da6e3cad2f60c6cf8736cd33b41f5ce85681160d3a26e283f63f15914e480b5e8587b257ba95e9baed8f08c08c084c28c961320a29
|
7
|
+
data.tar.gz: d7d6fee108acbfd3743a6520b9f6283bb3cb999a7ce51f87c4d3ae80864d8b0cfe1e34bbb0517c42c8b807145dae315f60f8907bbc601d2aade905b8ff37fa53
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v4.0.1](https://github.com/bensheldon/good_job/tree/v4.0.1) (2024-07-08)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.0.0...v4.0.1)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Actually change `smaller_number_is_higher_priority` for v4 [\#1402](https://github.com/bensheldon/good_job/pull/1402) ([Earlopain](https://github.com/Earlopain))
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Bump prism/rbi dev dependency [\#1403](https://github.com/bensheldon/good_job/pull/1403) ([Earlopain](https://github.com/Earlopain))
|
14
|
+
- Use index action for the performance controller [\#1398](https://github.com/bensheldon/good_job/pull/1398) ([Earlopain](https://github.com/Earlopain))
|
15
|
+
|
3
16
|
## [v4.0.0](https://github.com/bensheldon/good_job/tree/v4.0.0) (2024-07-07)
|
4
17
|
|
5
18
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.99.0...v4.0.0)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module GoodJob
|
4
|
-
class
|
5
|
-
def
|
4
|
+
class PerformanceController < ApplicationController
|
5
|
+
def index
|
6
6
|
@performances = GoodJob::DiscreteExecution
|
7
7
|
.where.not(job_class: nil)
|
8
8
|
.group(:job_class)
|
@@ -40,8 +40,8 @@
|
|
40
40
|
<% end %>
|
41
41
|
</li>
|
42
42
|
<li class="nav-item">
|
43
|
-
<%= link_to
|
44
|
-
<%= t(".
|
43
|
+
<%= link_to performance_index_path, class: ["nav-link", ("active" if controller_name == 'performance')] do %>
|
44
|
+
<%= t(".performance") %>
|
45
45
|
<% end %>
|
46
46
|
</li>
|
47
47
|
</ul>
|
data/config/locales/de.yml
CHANGED
@@ -194,8 +194,8 @@ de:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Durchschnittliche Dauer
|
200
200
|
executions: Hinrichtungen
|
201
201
|
job_class: Berufsklasse
|
@@ -231,7 +231,7 @@ de:
|
|
231
231
|
jobs: Jobs
|
232
232
|
live_poll: Live Poll
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Leistung
|
235
235
|
processes: Prozesse
|
236
236
|
theme:
|
237
237
|
auto: Auto
|
data/config/locales/en.yml
CHANGED
@@ -194,8 +194,8 @@ en:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Average duration
|
200
200
|
executions: Executions
|
201
201
|
job_class: Job class
|
@@ -231,7 +231,7 @@ en:
|
|
231
231
|
jobs: Jobs
|
232
232
|
live_poll: Live Poll
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Performance
|
235
235
|
processes: Processes
|
236
236
|
theme:
|
237
237
|
auto: Auto
|
data/config/locales/es.yml
CHANGED
@@ -194,8 +194,8 @@ es:
|
|
194
194
|
thousand: k
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Duración promedio
|
200
200
|
executions: Ejecuciones
|
201
201
|
job_class: clase de trabajo
|
@@ -231,7 +231,7 @@ es:
|
|
231
231
|
jobs: Tareas
|
232
232
|
live_poll: En vivo
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Actuación
|
235
235
|
processes: Procesos
|
236
236
|
theme:
|
237
237
|
auto: Auto
|
data/config/locales/fr.yml
CHANGED
@@ -194,8 +194,8 @@ fr:
|
|
194
194
|
thousand: k
|
195
195
|
trillion: J
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Durée moyenne
|
200
200
|
executions: Exécutions
|
201
201
|
job_class: Catégorie d'emplois
|
@@ -231,7 +231,7 @@ fr:
|
|
231
231
|
jobs: Jobs
|
232
232
|
live_poll: En direct
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Performance
|
235
235
|
processes: Processus
|
236
236
|
theme:
|
237
237
|
auto: Auto
|
data/config/locales/it.yml
CHANGED
@@ -194,8 +194,8 @@ it:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Durata media
|
200
200
|
executions: Esecuzioni
|
201
201
|
job_class: Classe di lavoro
|
@@ -231,7 +231,7 @@ it:
|
|
231
231
|
jobs: Job
|
232
232
|
live_poll: Live Poll
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Prestazione
|
235
235
|
processes: Processi
|
236
236
|
theme:
|
237
237
|
auto: Auto
|
data/config/locales/ja.yml
CHANGED
@@ -194,8 +194,8 @@ ja:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: 平均所要時間
|
200
200
|
executions: 処刑
|
201
201
|
job_class: 職種
|
@@ -231,7 +231,7 @@ ja:
|
|
231
231
|
jobs: ジョブ
|
232
232
|
live_poll: リアルタイム更新
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: パフォーマンス
|
235
235
|
processes: プロセス
|
236
236
|
theme:
|
237
237
|
auto: 自動
|
data/config/locales/ko.yml
CHANGED
@@ -194,8 +194,8 @@ ko:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: 평균 지속 시간
|
200
200
|
executions: 처형
|
201
201
|
job_class: 직업군
|
@@ -231,7 +231,7 @@ ko:
|
|
231
231
|
jobs: 작업
|
232
232
|
live_poll: 실시간 업데이트
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: 성능
|
235
235
|
processes: 프로세스
|
236
236
|
theme:
|
237
237
|
auto: 자동
|
data/config/locales/nl.yml
CHANGED
@@ -194,8 +194,8 @@ nl:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Gemiddelde duur
|
200
200
|
executions: Executies
|
201
201
|
job_class: Functie klasse
|
@@ -231,7 +231,7 @@ nl:
|
|
231
231
|
jobs: Taken
|
232
232
|
live_poll: Live Poll
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Prestatie
|
235
235
|
processes: Processen
|
236
236
|
theme:
|
237
237
|
auto: Auto
|
data/config/locales/pt-BR.yml
CHANGED
@@ -194,8 +194,8 @@ pt-BR:
|
|
194
194
|
thousand: K
|
195
195
|
trillion: T
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Duração média
|
200
200
|
executions: Execuções
|
201
201
|
job_class: Classe de trabalho
|
@@ -231,7 +231,7 @@ pt-BR:
|
|
231
231
|
jobs: Tarefas
|
232
232
|
live_poll: Acompanhamento ao Vivo
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Desempenho
|
235
235
|
processes: Processos
|
236
236
|
theme:
|
237
237
|
auto: Automático
|
data/config/locales/ru.yml
CHANGED
@@ -220,8 +220,8 @@ ru:
|
|
220
220
|
thousand: К
|
221
221
|
trillion: Т
|
222
222
|
unit: ''
|
223
|
-
|
224
|
-
|
223
|
+
performance:
|
224
|
+
index:
|
225
225
|
average_duration: Средняя продолжительность
|
226
226
|
executions: Казни
|
227
227
|
job_class: Класс работы
|
@@ -257,7 +257,7 @@ ru:
|
|
257
257
|
jobs: Задания
|
258
258
|
live_poll: Обновления в реальном времени
|
259
259
|
name: "GoodJob 👍"
|
260
|
-
|
260
|
+
performance: Производительность
|
261
261
|
processes: Процессы
|
262
262
|
theme:
|
263
263
|
auto: Авто
|
data/config/locales/tr.yml
CHANGED
@@ -194,8 +194,8 @@ tr:
|
|
194
194
|
thousand: Bin
|
195
195
|
trillion: Trilyon
|
196
196
|
unit: ''
|
197
|
-
|
198
|
-
|
197
|
+
performance:
|
198
|
+
index:
|
199
199
|
average_duration: Ortalama süre
|
200
200
|
executions: İnfazlar
|
201
201
|
job_class: İş sınıfı
|
@@ -231,7 +231,7 @@ tr:
|
|
231
231
|
jobs: İşler
|
232
232
|
live_poll: Anlık Güncelleme
|
233
233
|
name: "GoodJob 👍"
|
234
|
-
|
234
|
+
performance: Verim
|
235
235
|
processes: Süreçler
|
236
236
|
theme:
|
237
237
|
auto: Oto
|
data/config/locales/uk.yml
CHANGED
@@ -220,8 +220,8 @@ uk:
|
|
220
220
|
thousand: Тис
|
221
221
|
trillion: Трлн
|
222
222
|
unit: ''
|
223
|
-
|
224
|
-
|
223
|
+
performance:
|
224
|
+
index:
|
225
225
|
average_duration: Середня тривалість
|
226
226
|
executions: Страти
|
227
227
|
job_class: Клас роботи
|
@@ -257,7 +257,7 @@ uk:
|
|
257
257
|
jobs: Задачі
|
258
258
|
live_poll: Живе Опитування
|
259
259
|
name: "GoodJob 👍"
|
260
|
-
|
260
|
+
performance: Продуктивність
|
261
261
|
processes: Процеси
|
262
262
|
theme:
|
263
263
|
auto: Авто
|
data/config/routes.rb
CHANGED
@@ -31,7 +31,7 @@ GoodJob::Engine.routes.draw do
|
|
31
31
|
|
32
32
|
resources :processes, only: %i[index]
|
33
33
|
|
34
|
-
|
34
|
+
resources :performance, only: %i[index]
|
35
35
|
|
36
36
|
scope :frontend, controller: :frontends do
|
37
37
|
get "modules/:name", action: :module, as: :frontend_module, constraints: { format: 'js' }
|
@@ -35,6 +35,8 @@ module GoodJob
|
|
35
35
|
DEFAULT_DASHBOARD_LIVE_POLL_ENABLED = true
|
36
36
|
# Default enqueue_after_transaction_commit
|
37
37
|
DEFAULT_ENQUEUE_AFTER_TRANSACTION_COMMIT = false
|
38
|
+
# Default smaller_number_is_higher_priority
|
39
|
+
DEFAULT_SMALLER_NUMBER_IS_HIGHER_PRIORITY = true
|
38
40
|
|
39
41
|
def self.validate_execution_mode(execution_mode)
|
40
42
|
raise ArgumentError, "GoodJob execution mode must be one of #{EXECUTION_MODES.join(', ')}. It was '#{execution_mode}' which is not valid." unless execution_mode.in?(EXECUTION_MODES)
|
@@ -378,7 +380,9 @@ module GoodJob
|
|
378
380
|
end
|
379
381
|
|
380
382
|
def smaller_number_is_higher_priority
|
381
|
-
rails_config[:smaller_number_is_higher_priority]
|
383
|
+
return rails_config[:smaller_number_is_higher_priority] unless rails_config[:smaller_number_is_higher_priority].nil?
|
384
|
+
|
385
|
+
DEFAULT_SMALLER_NUMBER_IS_HIGHER_PRIORITY
|
382
386
|
end
|
383
387
|
|
384
388
|
def dashboard_default_locale
|
data/lib/good_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: good_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Sheldon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|
@@ -255,7 +255,7 @@ files:
|
|
255
255
|
- app/controllers/good_job/frontends_controller.rb
|
256
256
|
- app/controllers/good_job/jobs_controller.rb
|
257
257
|
- app/controllers/good_job/metrics_controller.rb
|
258
|
-
- app/controllers/good_job/
|
258
|
+
- app/controllers/good_job/performance_controller.rb
|
259
259
|
- app/controllers/good_job/processes_controller.rb
|
260
260
|
- app/filters/good_job/base_filter.rb
|
261
261
|
- app/filters/good_job/batches_filter.rb
|
@@ -307,7 +307,7 @@ files:
|
|
307
307
|
- app/views/good_job/jobs/_table.erb
|
308
308
|
- app/views/good_job/jobs/index.html.erb
|
309
309
|
- app/views/good_job/jobs/show.html.erb
|
310
|
-
- app/views/good_job/
|
310
|
+
- app/views/good_job/performance/index.html.erb
|
311
311
|
- app/views/good_job/processes/index.html.erb
|
312
312
|
- app/views/good_job/shared/_alert.erb
|
313
313
|
- app/views/good_job/shared/_chart.erb
|
File without changes
|