panoptic 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4682690323f30a966916886d08c08009666f2d42766f90bff0ddbb5d9d7cf8bd
4
- data.tar.gz: c92ed4bdf0706f2620958381d84856ba4ac51bc209811c22c0477cc785008e3a
3
+ metadata.gz: 2196de2036d276c976094b064428d6c2b3f88438e4486565ec0d748352cd97fb
4
+ data.tar.gz: c752a60f429a76dcff9ca00f4e1ac6e237733fdd5b963a17b9362f825ca401b8
5
5
  SHA512:
6
- metadata.gz: 8bb2c086abd9e81a18d080dcb5f779d2013006500958cbf6dfb5b0a54364acba5e8a25a7674bb9a80ffe1bb91d733a4733de5f8076f971ad06258f17984bba53
7
- data.tar.gz: 384ea6d8809e9c69b51dfa34c230e93e8c2695f6b180a219d8c9f72e37a10dec6ac499cada00901dc870f441911399da81e32546063ca1b01852cd45f208741c
6
+ metadata.gz: 0714eec662d23c03c5b94d7bbce31a1878e59d9cbc9cecdaa0adf027f1c344f17014ab30d43725ee24457234467b62ea34b10b5b21f0c14043ca56f7735bd2a2
7
+ data.tar.gz: 2bdbb40a798741fb6e95b7a71c73572d9fd8c541f9a672ee759433eb64c1d406600f62a430d9eb3e35039db942ad8e5d83cfb045746539db167b03350712f40e
@@ -7,7 +7,7 @@ module Panoptic
7
7
  def index
8
8
  # TODO: use the `scheduled` scope available in SolidQueue next release
9
9
  @pagy, @jobs = pagy(
10
- SolidQueue::Job.joins(:scheduled_execution).order(created_at: :asc)
10
+ SolidQueue::Job.joins(:scheduled_execution).order(scheduled_at: :asc)
11
11
  )
12
12
 
13
13
  render "panoptic/jobs/index"
@@ -3,7 +3,7 @@
3
3
  module Panoptic
4
4
  class JobsController < ApplicationController
5
5
  def index
6
- @pagy, @jobs = pagy(SolidQueue::Job.order(created_at: :asc))
6
+ @pagy, @jobs = pagy(SolidQueue::Job.order(created_at: :desc))
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Panoptic
4
4
  class FailedJob < SolidQueue::Job
5
5
  # TODO: use the `failed` scope available in SolidQueue next release
6
- default_scope { joins(:failed_execution) }
6
+ default_scope { includes(:failed_execution).where.not(failed_execution: { id: nil }) }
7
7
 
8
8
  def enqueued_at
9
9
  Time.parse(arguments["enqueued_at"])
@@ -9,10 +9,10 @@
9
9
  </head>
10
10
  <body class="pb-4">
11
11
 
12
- <%= render "shared/navbar" %>
12
+ <%= render "panoptic/shared/navbar" %>
13
13
 
14
14
  <main class="container mt-2">
15
- <%= render "shared/flashes" %>
15
+ <%= render "panoptic/shared/flashes" %>
16
16
  <%= content_for?(:content) ? yield(:content) : yield %>
17
17
  </main>
18
18
 
data/config/routes.rb CHANGED
@@ -7,7 +7,7 @@ Panoptic::Engine.routes.draw do
7
7
  resource :retry, only: :create, module: :jobs
8
8
  end
9
9
 
10
- scope module: :jobs do
10
+ scope :jobs, module: :jobs do
11
11
  resources :scheduled, only: :index, as: :scheduled_jobs
12
12
  resources :failed, only: [:index, :show], as: :failed_jobs
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Panoptic
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panoptic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Rolea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -87,8 +87,8 @@ files:
87
87
  - app/views/panoptic/processes/index.html.erb
88
88
  - app/views/panoptic/queues/_queue.html.erb
89
89
  - app/views/panoptic/queues/index.html.erb
90
- - app/views/shared/_flashes.html.erb
91
- - app/views/shared/_navbar.html.erb
90
+ - app/views/panoptic/shared/_flashes.html.erb
91
+ - app/views/panoptic/shared/_navbar.html.erb
92
92
  - config/initializers/pagy.rb
93
93
  - config/routes.rb
94
94
  - lib/panoptic.rb