Giter Club home page Giter Club logo

delayed-web's People

Contributors

anthony-robin avatar coop avatar cseelus avatar dpedoneze avatar jafuentest avatar jayphen avatar mfbmina avatar pstaender avatar razvan-pavel avatar scottrobertson avatar tatey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

delayed-web's Issues

paginating job list

Would this project be interested in a PR that paginates the jobs list? It would include a pagination gem.

How to limit /jobs routes to admins (using devise and/or pundit for example)?

Since one presumably would never want just any member of the public to be able to access the /jobs and /job/:id routes, what is the best practice for limiting access to admins when using either devise or pundit?

I was successfully able to override the controller as shown below by placing a copy of the controller in app/controllers/devise/web/jobs_controller.rb and verified with a couple of puts statements that THIS controller is being invoked.

But I cannot see how to apply authorization logic.

Using the usual Devise approach I tried before_action :authenticate_admin! but that gave an undefined symbol error. As did the usual Pundit approach after_filter :verify_authorized

I also tried inserting a

redirect_to my_app_home_path and return if !current_admin

but it does not redirect (it does recognize the value of current_admin , but the redirect "out" to the main app's routes doesn't happen

 class Delayed::Web::JobsController < Delayed::Web::ApplicationController
      # WHAT GOES HERE?
      # error, undefined, for devise:   before_action :authenticate_admin!
      # error, undefined, for pundit:   after_filter :verify_authorized
   def queue
     ...
   end
 
   ...
 

Add Portuguese-Brazil (pt-BR) i18n version

Default i18n file:

pt-BR:
  delayed/web:
    views:
      id:
      job:
      jobs:
      status:
      created_at:
      run_at:
      attempts:
      last_error:
      server_time:
      handler:
      actions:
      current_queue:
      buttons:
        run_next:
        delete:
      queue:
        empty:
      errors:
        empty:
      statuses:
        executing:
        failed:
        queued:
      confirm:
        delete:
    flashes:
      jobs:
        queued:
          alert:
          notice:
        destroyed:
          alert:
          notice:

  time:
    formats:
      short:

[README] Wrong link in the I18n section

I just discovered that the link used to show the full set of I18n translations available in the README is redirecting to my own fork (and wrong branch) instead of yours.

You can find the full list here. 
# => should redirect to https://github.com/thebestday/delayed-web/blob/master/config/locales/en.yml

Sorry for this mistake ๐Ÿ˜•

ActionView::Template::Error: link_tree argument must be a directory

I have delyed_web installed in a Rails 6 API only app. I get the following errors when I go to http://localhost:3000/jobs:

ActionView::Template::Error: link_tree argument must be a directory

and

no implicit conversion of nil into Array

Any idea why this is happening? Are the directories I need to manually add or should I change my app/assets/config/manifest.js file? This is what it looks like:

//= link_tree ../fonts
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css

The error is happening in: Delayed::Web::JobsController#index

I18n translations ?

That could be a good idea to add an I18n support in order to translate table columns, actions or messages !
Is there a way to add it easily ?

Thanks for this gem !

Queue (run next) and delete routes do not work

Run Next
ActionController::RoutingError: No route matches [POST] "/jobs/jobs/xxxx/queue

Delete
ActionController::RoutingError: No route matches [POST] "/jobs/jobs/xxxx

Ruby: 2.4.0
Rails: 5.0.3

Project is configured as API only with some gems added back for some frontend work

Rails 5.x compatibility

I am getting a bundle conflict due to delayed-web's rails (< 4.3.0, >= 3.2.13) requirement on Rails 5.0.0.rc1

Summary/Count Statistics

I switched from delayed_job_web to this gem for a variety of reasons, and the one thing that I miss is some summary of how many jobs are queued up. When there are a lot, there isn't any pagination even, so it's unclear from the interface how many there are.

Any thoughts on adding that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.