panoptic 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/panoptic/jobs/scheduled_controller.rb +1 -1
- data/app/controllers/panoptic/jobs_controller.rb +1 -1
- data/app/models/panoptic/failed_job.rb +1 -1
- data/app/views/layouts/panoptic/application.html.erb +2 -2
- data/config/routes.rb +1 -1
- data/lib/panoptic/version.rb +1 -1
- metadata +4 -5
- data/app/mailers/panoptic/application_mailer.rb +0 -6
- /data/app/views/{shared → panoptic/shared}/_flashes.html.erb +0 -0
- /data/app/views/{shared → panoptic/shared}/_navbar.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2196de2036d276c976094b064428d6c2b3f88438e4486565ec0d748352cd97fb
|
4
|
+
data.tar.gz: c752a60f429a76dcff9ca00f4e1ac6e237733fdd5b963a17b9362f825ca401b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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 FailedJob < SolidQueue::Job
|
5
5
|
# TODO: use the `failed` scope available in SolidQueue next release
|
6
|
-
default_scope {
|
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
|
data/lib/panoptic/version.rb
CHANGED
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.
|
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-
|
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
|
File without changes
|
File without changes
|