1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

14 commits

Author SHA1 Message Date
Mike Perham
5b1ee55fe7
Improve dark Web UI (#4674)
* Improve dark Web UI

Add a lot more contrast to various UI elements. This is a lot more usable to my old eyes.

* Remove table-white

* More constrast fixes
2020-08-25 09:31:05 -07:00
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
Josh Loewen
870516f472 Format latency (#4111)
* Format latency time

* format latency when 0

* only show human-readable time if 60s or more

* memoize to reduce repetitive Redis calls

* removing use of seconds.ago due to no ActiveSupport in Sidekiq
2019-02-28 10:06:41 -08:00
David Santos Merino
8ff4484690 Add latency row for each queue 2017-10-20 08:43:11 -07:00
Mike Perham
878ffff0c9 Fix a number of issues with URL-unsafe queue names, fixes #3327 2017-01-24 10:27:50 -08:00
Spoonflower
dee9c8bd86 change inline style into classes 2016-08-04 11:18:07 -04:00
Spoonflower
8f085052dc taking out inline styling and putting them in application.css 2016-07-29 10:09:17 -04:00
Mike Perham
5adbc24cbe Rework authenticity_token to use simpler helper, #2422 2015-07-06 15:52:41 -07:00
Mike Perham
cf3c43b241 Fix CSRF vulnerability reported by Egor Homakov, fixes #2422 2015-07-06 12:51:15 -07:00
Anton Davydov
17ee70f063 Create table containers with overflow is overlay 2015-05-14 02:48:17 +03:00
Mike Perham
2178d66b66 Queue name xss, fixes #2330 2015-05-04 08:38:51 -07:00
Mike Perham
809f0f3829 Show warning on Queues page if a queue is paused, fixes #1672 2014-04-24 22:16:34 -07:00
Jeff Boek
beb5bc2ae3 Bootstrap upgrade 2013-09-30 21:43:24 -07:00
Kirill Nikitin
0a7e8ea439 Closes #1120 Removed slim. 2013-08-22 02:59:34 +04:00