Skip to content

Commit

Permalink
Add "cron enabled" column to processes index page (#1127)
Browse files Browse the repository at this point in the history
* Show "cron enabled" column on processes index page

* Translate cron enabled & yes/no

* Fix linting

---------

Co-authored-by: Ben Sheldon [he/him] <[email protected]>
  • Loading branch information
bforma and bensheldon authored Oct 30, 2023
1 parent 2ae9173 commit ace3e42
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/good_job/processes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<div class="row small text-muted text-uppercase align-items-center">
<div class="col"><%= t ".process" %></div>
<div class="col"><%= t ".schedulers" %></div>
<div class="col-2 d-flex gap-2"><%= t ".cron_enabled" %></div>
<div class="col-2 d-flex gap-2">
<span><%= t ".started" %></span>
</div>
Expand Down Expand Up @@ -44,6 +45,7 @@
<pre class="mb-0"><%= scheduler.is_a?(Hash) ? scheduler['name'] : scheduler %></pre>
<% end %>
</div>
<div class="col-2 small"><%= t(ActiveModel::Type::Boolean.new.cast(process.state["cron_enabled"]), scope: "good_job.shared.boolean") %></div>
<div class="col-2 small"><%= relative_time(process.created_at) %></div>
<div class="col-2 small"><%= relative_time(process.updated_at) %></div>
<div class="col-auto">
Expand Down
4 changes: 4 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,17 @@ de:
unit: ''
processes:
index:
cron_enabled: Cron aktiviert
no_good_job_processes_found: Keine GoodJob-Prozesse gefunden.
process: Verfahren
schedulers: Planer
started: Gestartet
title: Prozesse
updated: Aktualisiert
shared:
boolean:
'false': Nein
'true': Ja
error: Fehler
filter:
all: Alle
Expand Down
4 changes: 4 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,17 @@ en:
unit: ''
processes:
index:
cron_enabled: Cron enabled
no_good_job_processes_found: No GoodJob processes found.
process: Process
schedulers: Schedulers
started: Started
title: Processes
updated: Updated
shared:
boolean:
'false': 'No'
'true': 'Yes'
error: Error
filter:
all: All
Expand Down
4 changes: 4 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,17 @@ es:
unit: ''
processes:
index:
cron_enabled: Cron habilitado
no_good_job_processes_found: No hay procesos de GoodJob.
process: Proceso
schedulers: Schedulers
started: Iniciado
title: Procesos
updated: Actualizado
shared:
boolean:
'false': 'No'
'true':
error: Error
filter:
all: Todas
Expand Down
4 changes: 4 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,17 @@ fr:
unit: ''
processes:
index:
cron_enabled: Cron activé
no_good_job_processes_found: Aucun processus GoodJob trouvé.
process: Processus
schedulers: Schedulers
started: Lancé
title: Processus
updated: Mis à jour
shared:
boolean:
'false': Non
'true': Oui
error: Erreur
filter:
all: Tous
Expand Down
4 changes: 4 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,17 @@ ja:
unit: ''
processes:
index:
cron_enabled: Cron が有効になっている
no_good_job_processes_found: GoodJobのプロセスが見つかりませんでした。
process: プロセス
schedulers: スケジューラー
started: 開始日時
title: プロセス
updated: 更新された
shared:
boolean:
'false': いいえ
'true': はい
error: エラー
filter:
all: 全て
Expand Down
4 changes: 4 additions & 0 deletions config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,17 @@ nl:
unit: ''
processes:
index:
cron_enabled: Cron ingeschakeld
no_good_job_processes_found: Geen GoodJob-processen gevonden.
process: Proces
schedulers: Planners
started: Begonnen
title: Processen
updated: Bijgewerkt
shared:
boolean:
'false': Nee
'true': Ja
error: Fout
filter:
all: Alle
Expand Down
4 changes: 4 additions & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,17 @@ ru:
unit: ''
processes:
index:
cron_enabled: Крон включен
no_good_job_processes_found: Процессы GoodJob не найдены.
process: Процесс
schedulers: Планировщики
started: Начал
title: Процессы
updated: Обновлено
shared:
boolean:
'false': Нет
'true': Да
error: Ошибка
filter:
all: Все
Expand Down
4 changes: 4 additions & 0 deletions config/locales/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,17 @@ tr:
unit: ''
processes:
index:
cron_enabled: Cron etkin
no_good_job_processes_found: GoodJob süreci bulunamadı.
process: Süreç
schedulers: Planlayıcılar
started: Başlangıç zamanı
title: Süreçler
updated: Güncellenmiş
shared:
boolean:
'false': Hayır
'true': Evet
error: Hata
filter:
all: Tümü
Expand Down
4 changes: 4 additions & 0 deletions config/locales/uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,17 @@ uk:
unit: ''
processes:
index:
cron_enabled: Cron увімкнено
no_good_job_processes_found: Процеси GoodJob не знайдені.
process: Процес
schedulers: Планувальники
started: Розпочато
title: Процеси
updated: Оновлено
shared:
boolean:
'false': Ні
'true': Так
error: Помилка
filter:
all: Всі
Expand Down
1 change: 1 addition & 0 deletions i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ ignore_unused:
- "good_job.status.*"
- "good_job.error_event.*"
- "good_job.number.*"
- "good_job.shared.boolean.*"

## Exclude these keys from the `i18n-tasks eq-base' report:
# ignore_eq_base:
Expand Down

0 comments on commit ace3e42

Please sign in to comment.