1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views
Amadeus Folego 9ea167db16 Migrate Sidekiq::Web to a pure Rack application
Migrate Sidekiq::Web a pure Rack application to avoid sinatra as
dependency. rack-protection is still needed.

The application is mounted on top of Rack::Builder, mantaining all of
the previous http interface.

Rack apps being used:

- Rack::File to serve assets
- Rack::Session::Cookie, the secret can be configured via
  Sidekiq::Web.session_secret
- Rack::Protection, same as before when using sinatra
- Sidekiq::WebApplication, described below.

Sidekiq::WebApplication is a very simple rack application composed of a
Sidekiq::WebRouter and a Sidekiq::WebAction dispatcher. This terminology
was adopted to be able to mantain Sidekiq::Web as a Rack app.

The Router is heavily inspired on Rack::Router[0] (and in many parts
identical), however not being retrocompatible.

The Action is a wrapper to provide convenience, DRY code and maintain
the old interface.

I tried to mantain most of the old application structures so that
customizations and monkey-patches are easily adjustable or even
further work be done to enforce retrocompatibility.

Testing welcome!

0: https://github.com/pjb3/rack-router
2016-07-26 11:43:32 -03:00
..
_footer.erb be consistent with names 2015-11-06 15:24:57 -06:00
_job_info.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
_nav.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
_paging.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
_poll_js.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
_poll_link.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
_status.erb Fix missing status text 2013-09-23 10:13:51 -04:00
_summary.erb Remove size helpers 2015-01-16 14:03:19 -08:00
busy.erb Add confirmation when quieting and stopping all workers 2016-04-20 19:23:41 -07:00
dashboard.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
dead.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
layout.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
morgue.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
queue.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
queues.erb Rework authenticity_token to use simpler helper, #2422 2015-07-06 15:52:41 -07:00
retries.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
retry.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
scheduled.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00
scheduled_job_info.erb Migrate Sidekiq::Web to a pure Rack application 2016-07-26 11:43:32 -03:00