panoptic 0.4.0 → 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: eaeaa4c54e9017c35ee6093fc0b3d0f57f8281e72dfdb11a4e48a297583bc803
4
- data.tar.gz: 67409a3a5b05f276654733113cab9ad6c61c39b707dcba9b47caef8e0c6228c8
3
+ metadata.gz: 2196de2036d276c976094b064428d6c2b3f88438e4486565ec0d748352cd97fb
4
+ data.tar.gz: c752a60f429a76dcff9ca00f4e1ac6e237733fdd5b963a17b9362f825ca401b8
5
5
  SHA512:
6
- metadata.gz: 5b1eb3f3bc00012b3bf1542037a2e79386bf1e9adf2ca1190bbab33572954ed2a9fd8ca40c96ccc6496133b7f5e723a250456fbeee139c92deceeca41269afb2
7
- data.tar.gz: 2d3bf8fd70b9432a20ef2826d51a0895c5af449584be8a3807a30906cd0d4ed4821e2c61469f0214997eec95e6a375ab1d8dea4b8ec64ffbfec95cfcce3d94b1
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.0"
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.0
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-04 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
@@ -73,7 +73,6 @@ files:
73
73
  - app/helpers/panoptic/breadcrumbs_helper.rb
74
74
  - app/helpers/panoptic/date_time_helper.rb
75
75
  - app/jobs/panoptic/application_job.rb
76
- - app/mailers/panoptic/application_mailer.rb
77
76
  - app/models/panoptic/application_record.rb
78
77
  - app/models/panoptic/failed_job.rb
79
78
  - app/models/panoptic/process.rb
@@ -88,8 +87,8 @@ files:
88
87
  - app/views/panoptic/processes/index.html.erb
89
88
  - app/views/panoptic/queues/_queue.html.erb
90
89
  - app/views/panoptic/queues/index.html.erb
91
- - app/views/shared/_flashes.html.erb
92
- - app/views/shared/_navbar.html.erb
90
+ - app/views/panoptic/shared/_flashes.html.erb
91
+ - app/views/panoptic/shared/_navbar.html.erb
93
92
  - config/initializers/pagy.rb
94
93
  - config/routes.rb
95
94
  - lib/panoptic.rb
@@ -1,6 +0,0 @@
1
- module Panoptic
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: "from@example.com"
4
- layout "mailer"
5
- end
6
- end