mission_control-jobs 1.0.1 → 1.1.0
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/README.md +16 -9
- data/app/assets/stylesheets/mission_control/jobs/bulma.min.css +21012 -2
- data/app/controllers/concerns/mission_control/jobs/job_filters.rb +9 -1
- data/app/controllers/mission_control/jobs/application_controller.rb +1 -0
- data/app/controllers/mission_control/jobs/discards_controller.rb +1 -1
- data/app/controllers/mission_control/jobs/jobs_controller.rb +1 -1
- data/app/controllers/mission_control/jobs/retries_controller.rb +1 -1
- data/app/helpers/mission_control/jobs/application_helper.rb +1 -0
- data/app/helpers/mission_control/jobs/navigation_helper.rb +0 -8
- data/app/views/layouts/mission_control/jobs/_application_selection.html.erb +3 -0
- data/app/views/mission_control/jobs/jobs/_filters.html.erb +34 -24
- data/app/views/mission_control/jobs/jobs/_general_information.html.erb +7 -1
- data/app/views/mission_control/jobs/jobs/blocked/_job.html.erb +3 -2
- data/app/views/mission_control/jobs/jobs/failed/_actions.html.erb +2 -2
- data/app/views/mission_control/jobs/queues/_queue.html.erb +1 -1
- data/lib/active_job/job_proxy.rb +4 -0
- data/lib/active_job/queues.rb +9 -5
- data/lib/mission_control/jobs/engine.rb +7 -12
- data/lib/mission_control/jobs/i18n_config.rb +10 -2
- data/lib/mission_control/jobs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bba1e3be2d257eea8a3956ca3f6b8c9e6708f2fc81fe23290953ac66ecd79b0
|
4
|
+
data.tar.gz: c470df35a98c7f0f90163540dca2d3c8bd9ca14128ae283731c0e920fdae140e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a6068c3fa2f86d32f07fb458b644efb9e8e0661f1feb65e26bf41d4051bca594ab29d15819b9ab94051451015b1d051bf33b7152797c87ec1952a074f968b2c
|
7
|
+
data.tar.gz: 972eb81ce61459dcdd2e881ce88a5bf69da431f1b2a17ed6e10a3bf8572222f27b111035747c46492fc459b485542b5dfd072cfb04c4ae1dca6a0cbc5b73bc0c
|
data/README.md
CHANGED
@@ -54,8 +54,6 @@ For example, if you're using the Dockerfile generated by Rails with an API-only
|
|
54
54
|
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
|
55
55
|
```
|
56
56
|
|
57
|
-
*Note: Legacy CSS bundlers `sass-rails` and `sassc-rails` may fail to compile some of the CSS vendored into this library from [Bulma](https://github.com/jgthms/bulma), which was created in [Dart SASS](https://sass-lang.com/dart-sass/). You will therefore need to upgrade to `dartsass-rails` or some library that relies on it, like `cssbundling-rails`.*
|
58
|
-
|
59
57
|
### Authentication
|
60
58
|
|
61
59
|
Mission Control comes with **HTTP basic authentication enabled and closed** by default. Credentials are stored in [Rails's credentials](https://edgeguides.rubyonrails.org/security.html#custom-credentials) like this:
|
@@ -76,6 +74,15 @@ To set them up for different environments you can use the `RAILS_ENV` environmen
|
|
76
74
|
RAILS_ENV=production bin/rails mission_control:jobs:authentication:configure
|
77
75
|
```
|
78
76
|
|
77
|
+
User and password can also be configured by hand like this:
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
Rails.application.configure do
|
81
|
+
MissionControl::Jobs.http_basic_auth_user = "dev"
|
82
|
+
MissionControl::Jobs.http_basic_auth_password = "secret"
|
83
|
+
end
|
84
|
+
```
|
85
|
+
|
79
86
|
#### Custom authentication
|
80
87
|
|
81
88
|
You can provide your own authentication mechanism, for example, if you have a certain type of admin user in your app that can access Mission Control. To make this easier, you can specify a different controller as the base class for Mission Control's controllers. By default, Mission Control's controllers will extend the host app's `ApplicationController`, but you can change this easily:
|
@@ -158,19 +165,19 @@ SERVERS_BY_APP.each do |app, servers|
|
|
158
165
|
end
|
159
166
|
|
160
167
|
# Default:
|
161
|
-
#
|
168
|
+
#
|
162
169
|
# @return Array<String, ActiveJob::QueueAdapters::Base)
|
163
170
|
# An array where:
|
164
171
|
# * the String represents the symbolic name for this server within the UI
|
165
172
|
# * ActiveJob::QueueAdapters::Base adapter instance used to access this Application Server/Service
|
166
|
-
[ server, queue_adapter ]
|
167
|
-
|
173
|
+
[ server, queue_adapter ]
|
174
|
+
|
168
175
|
# Optional return formats:
|
169
|
-
#
|
176
|
+
#
|
170
177
|
# @return Array<String, Array<ActiveJob::QueueAdapters::Base>>
|
171
|
-
# * This is equivalent, and behaves identically to, the format the default format above.
|
178
|
+
# * This is equivalent, and behaves identically to, the format the default format above.
|
172
179
|
# [ server, [ queue_adapter ]] # without optional backtrace cleaner
|
173
|
-
#
|
180
|
+
#
|
174
181
|
# @return Array<String, Array<ActiveJob::QueueAdapters::Base, ActiveSupport::BacktraceCleaner>>
|
175
182
|
# * This format adds an optional ActiveSupport::BacktraceCleaner to override the system wide
|
176
183
|
# backtrace cleaner for *this* Application Server/Service.
|
@@ -246,7 +253,7 @@ Available job servers:
|
|
246
253
|
|
247
254
|
And then:
|
248
255
|
```
|
249
|
-
>> connect_to
|
256
|
+
>> connect_to hey:solid_queue
|
250
257
|
Connected to hey:solid_queue
|
251
258
|
```
|
252
259
|
|