rocketjob_mission_control 2.0.0.rc2 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d1a0a3fb6a6af4e2ba3ca5dffd0f714c175a3a0
4
- data.tar.gz: c92a1912062b1e151bcf10e6c4ce5a698416c322
3
+ metadata.gz: 0e4abab0ff95e45876f0040c82ba295c7df6cea6
4
+ data.tar.gz: 956f19de4f8194730a9945f98ff980f5494fd219
5
5
  SHA512:
6
- metadata.gz: e09fa93f477b284e86edd0c88ffbccad794562d37c00882fd83e1c755f0e256692dff949160db1ac82ef880eb6ef1e34b129f70478a499842e906bb063366545
7
- data.tar.gz: 062d5bec0f150d3ec896829ac91843d8c7d70b0aef85ace236e6d16f9fd3b5070d8c75bf8a44a111bfc720c10ca4c063b37a0d2da504902ff7b4602bee1c2bb9
6
+ metadata.gz: 551b600165582ad1513873c326afcd05830cdcfbf51030e4a808581a5311f03b460fc90b853f8ed03f851e3abaa8c809558a544e2061e836aa0fce41c99e8cb4
7
+ data.tar.gz: 2e617a157fa542861d6b7a2a63b2ab4bc7291527706346aab37af25081192f790bd39e785eee4e7300206293bbc5b76e4fab09a4144a4c0d4cef90cfd0718ae8
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Web based management interface for [rocketjob][0].
5
5
 
6
- ![Screen shot](http://rocketjob.io/images/rjmc.png)
6
+ ![Screen shot](http://rocketjob.io/images/rjmc_running.png)
7
7
 
8
8
  ## Status
9
9
 
@@ -73,13 +73,14 @@ This project uses [Semantic Versioning](http://semver.org/).
73
73
 
74
74
  * [Michael Cloutier][1]
75
75
  * [Chris Lamb][2]
76
+ * [Jonathan Whittington][4]
76
77
 
77
78
  ## Contributors
78
79
 
79
80
  * [Reid Morrison][3] :: @reidmorrison
80
- * [Rafi](http://www.graphicsfuel.com/2012/02/space-rocket-icon-psd/)
81
81
 
82
82
  [0]: http://rocketjob.io
83
83
  [1]: https://github.com/mjcloutier
84
84
  [2]: https://github.com/lambcr
85
85
  [3]: https://github.com/reidmorrison
86
+ [4]: https://github.com/jtwhittington
@@ -24,7 +24,7 @@ module RocketJobMissionControl
24
24
  {
25
25
  '0' => class_with_link(job),
26
26
  '1' => h(job.description.try(:truncate, 50)),
27
- '2' => h(job.completed_at),
27
+ '2' => h(job.created_at),
28
28
  '3' => h(job.duration),
29
29
  'DT_RowClass' => "card callout callout-#{job.state}"
30
30
  }
@@ -84,6 +84,7 @@ module RocketJobMissionControl
84
84
  def filter_records(records)
85
85
  return records unless (params[:search].present? && params[:search][:value].present?)
86
86
  conditions = params[:search][:value]
87
+ ap conditions
87
88
  records = RocketJobMissionControl::Jobs::Search.new(conditions, records).execute if conditions
88
89
  records
89
90
  end
@@ -30,7 +30,7 @@ module RocketJobMissionControl
30
30
  end
31
31
 
32
32
  def run_now(job)
33
- "#{ link_to 'Run', run_now_job_path(job), method: :patch, class: 'btn btn-default btn-xs', data: { confirm: 'Destroy this worker?' } }"
33
+ "#{ link_to 'Run', run_now_job_path(job), method: :patch, class: 'btn btn-default btn-xs', data: { confirm: "Run #{job.class.name} now?" } }"
34
34
  end
35
35
  end
36
36
  end
@@ -25,6 +25,15 @@ module RocketJobMissionControl
25
25
  )
26
26
  end
27
27
 
28
+ def view_logs_link(job)
29
+ link_to(
30
+ 'view logs',
31
+ "http://localhost:5601/app/kibana#/discover?_g=(refreshInterval:(display:'5%20seconds',pause:!f,section:1,value:5000),time:(from:now-15m,mode:quick,to:now))&_a=(columns:!(level,duration,name,message,host),index:'semantic_logger-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'tags:#{job.id.to_s}')),sort:!(timestamp,desc))",
32
+ class: 'btn btn-default',
33
+ target: '_blank'
34
+ )
35
+ end
36
+
28
37
  def job_states
29
38
  @job_states ||= RocketJob::Job.aasm.states.map { |state| state.name.to_s }
30
39
  end
@@ -11,7 +11,7 @@
11
11
  %tr
12
12
  %th Class
13
13
  %th Description
14
- %th Completion
14
+ %th Created
15
15
  %th Duration
16
16
  %tbody
17
17
 
@@ -46,6 +46,8 @@
46
46
  - if @job.respond_to?(:input) && @job.input.failed_count > 0
47
47
  = link_to('view errors', job_failures_path(@job), class: 'btn btn-default')
48
48
 
49
+ = view_logs_link(@job)
50
+
49
51
  .clearfix
50
52
 
51
53
  = render partial: 'status', locals: { job: @job }
@@ -1,3 +1,3 @@
1
1
  module RocketJobMissionControl
2
- VERSION = '2.0.0.rc2'
2
+ VERSION = '2.0.0'
3
3
  end