1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/locales
Shayon Mukherjee 0ddc6c9858 Introduce the ability to pause queue from the UI (#4374)
* Introduce the ability to pause queue from the UI

Considering sidekiq web UI allow to perform complex tasks with ease.
Having the ability to pause a queue during an emergency (or operational intense)
scenarios would come in quite handy.

This PR introduces a new button to under the "Actions" column on `sidekiq/queues` pages,
right next to the `Delete` button. Depending on the state of the queue, it will according
show the `Pause` or `Unpause` text, with appropriate form element that `POST`s to the same
endpoint. The endpoint logic is updated to handle the new cases. Added some relevant unit tests.

Adding mock `Sidekiq::Queue#pause!` and `Sidekiq::Queue#unpause!` functions to
the API, which I believe will be overridden by sidekiq pro.

* Remove confirmation text and switch ordering of new copy in en.yml

* Only allow pause/unpause operations from sidekiq pro

This means the button from UI is hidden and api route has validation
in place such that it will only perform the respective pause/unpause
operation on proper payload, in sidekiq pro.

Its using `Sidekiq::Pro` constant as a check to detect whether or
not pro is present.

* Initialize Queue only once in api router action
2019-11-14 10:06:53 -08:00
..
ar.yml Add Kill All button to the retries page (#3938) 2018-08-25 07:42:01 -07:00
cs.yml Update cs.yml 2016-02-06 23:24:23 +01:00
da.yml
de.yml Added translations for german 2019-10-02 10:44:10 -07:00
el.yml
en.yml Introduce the ability to pause queue from the UI (#4374) 2019-11-14 10:06:53 -08:00
es.yml Update ES translation 2018-07-09 17:42:03 -07:00
fa.yml Make Sidekiq Web UI RTL-friendly (#3381) 2017-03-16 13:51:29 -07:00
fr.yml Additions / changes in French locales 2016-03-04 12:47:53 +01:00
he.yml Improve Hebrew translations (#3422) 2017-04-04 10:50:45 -07:00
hi.yml Add Hindi locale. 2015-03-31 19:49:21 +05:30
it.yml [WEB UI] Add Kill button to retriable jobs, closes #1866 2014-07-28 21:41:07 +00:00
ja.yml Update Japanese translations for web 2019-05-30 06:17:51 -07:00
ko.yml
nb.yml Fix Norwegian Bokmål (nb) locale 2015-10-04 20:47:41 +02:00
nl.yml
pl.yml
pt-br.yml
pt.yml
ru.yml Position -> # 2019-09-09 15:39:47 -07:00
sv.yml
ta.yml Extened sidekiq with Tamil language locale 2015-04-01 15:54:50 +05:30
uk.yml Position -> # 2019-09-09 15:39:47 -07:00
ur.yml Urdu locale added in sidekiq (#3397) 2017-03-20 14:47:55 -07:00
zh-cn.yml
zh-tw.yml