foreman-tasks 0.15.11 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_tasks/tasks_controller.rb +14 -19
  3. data/app/helpers/foreman_tasks/foreman_tasks_helper.rb +0 -20
  4. data/app/lib/actions/bulk_action.rb +1 -1
  5. data/app/models/foreman_tasks/lock.rb +0 -9
  6. data/app/models/foreman_tasks/task.rb +12 -74
  7. data/app/models/foreman_tasks/task/dynflow_task.rb +2 -1
  8. data/app/models/foreman_tasks/task/search.rb +52 -0
  9. data/app/views/foreman_tasks/tasks/index.html.erb +0 -3
  10. data/app/views/foreman_tasks/tasks/show.html.erb +9 -1
  11. data/db/migrate/20180927120509_add_user_id.foreman_tasks.rb +40 -0
  12. data/lib/foreman_tasks/dynflow/persistence.rb +0 -1
  13. data/lib/foreman_tasks/tasks/export_tasks.rake +1 -1
  14. data/lib/foreman_tasks/version.rb +1 -1
  15. data/test/controllers/tasks_controller_test.rb +0 -46
  16. data/test/factories/task_factory.rb +0 -8
  17. data/test/unit/actions/bulk_action_test.rb +0 -2
  18. data/test/unit/dynflow_console_authorizer_test.rb +1 -1
  19. data/test/unit/task_test.rb +6 -2
  20. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js +1 -6
  21. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap +0 -2
  22. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js +1 -6
  23. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap +0 -2
  24. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js +6 -3
  25. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss +3 -0
  26. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap +0 -3
  27. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +0 -2
  28. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss +4 -0
  29. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardHelper.js +3 -3
  30. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap +54 -495
  31. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js +0 -1
  32. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss +0 -6
  33. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss +3 -0
  34. metadata +6 -5
  35. data/test/helpers/foreman_tasks/foreman_tasks_helper_test.rb +0 -39
@@ -39,7 +39,6 @@ const TasksDonutCard = ({
39
39
  'selected-tasks-card':
40
40
  focusedOn !== TASKS_DONUT_CHART_FOCUSED_ON_OPTIONS.NORMAL &&
41
41
  focusedOn !== TASKS_DONUT_CHART_FOCUSED_ON_OPTIONS.NONE,
42
- 'not-focused': focusedOn === TASKS_DONUT_CHART_FOCUSED_ON_OPTIONS.NONE,
43
42
  })}
44
43
  {...props}
45
44
  >
@@ -1,10 +1,4 @@
1
1
  .tasks-donut-card {
2
- &.not-focused {
3
- .card-pf-title,
4
- .card-pf-body {
5
- opacity: 0.6;
6
- }
7
- }
8
2
  .card-pf-title {
9
3
  text-align: center;
10
4
  font-size: 180%;
@@ -1,4 +1,7 @@
1
1
  .tasks-donut-chart {
2
+ .c3.not-focused {
3
+ opacity: 0.3;
4
+ }
2
5
  .c3-chart-arcs-title {
3
6
  cursor: pointer;
4
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.11
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-17 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks-core
@@ -172,6 +172,7 @@ files:
172
172
  - app/models/foreman_tasks/remote_task.rb
173
173
  - app/models/foreman_tasks/task.rb
174
174
  - app/models/foreman_tasks/task/dynflow_task.rb
175
+ - app/models/foreman_tasks/task/search.rb
175
176
  - app/models/foreman_tasks/task/status_explicator.rb
176
177
  - app/models/foreman_tasks/task/summarizer.rb
177
178
  - app/models/foreman_tasks/task/task_cancelled_exception.rb
@@ -230,6 +231,7 @@ files:
230
231
  - db/migrate/20171026082635_add_task_action.foreman_tasks.rb
231
232
  - db/migrate/20180207150921_add_remote_tasks.foreman_tasks.rb
232
233
  - db/migrate/20180216092715_use_uuid.rb
234
+ - db/migrate/20180927120509_add_user_id.foreman_tasks.rb
233
235
  - db/migrate/20181019135324_add_remote_task_operation.rb
234
236
  - db/migrate/20190318153925_add_task_state_updated_at.foreman_tasks.rb
235
237
  - db/seeds.d/20-foreman_tasks_permissions.rb
@@ -279,7 +281,6 @@ files:
279
281
  - test/factories/triggering_factory.rb
280
282
  - test/foreman_tasks_core_test_helper.rb
281
283
  - test/foreman_tasks_test_helper.rb
282
- - test/helpers/foreman_tasks/foreman_tasks_helper_test.rb
283
284
  - test/helpers/foreman_tasks/tasks_helper_test.rb
284
285
  - test/lib/actions/middleware/keep_current_request_id_test.rb
285
286
  - test/lib/actions/middleware/keep_current_taxonomies_test.rb
@@ -430,7 +431,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
430
431
  - !ruby/object:Gem::Version
431
432
  version: '0'
432
433
  requirements: []
433
- rubygems_version: 3.0.3
434
+ rubyforge_project:
435
+ rubygems_version: 2.7.3
434
436
  signing_key:
435
437
  specification_version: 4
436
438
  summary: Foreman plugin for showing tasks information for resources and users
@@ -447,7 +449,6 @@ test_files:
447
449
  - test/factories/triggering_factory.rb
448
450
  - test/foreman_tasks_core_test_helper.rb
449
451
  - test/foreman_tasks_test_helper.rb
450
- - test/helpers/foreman_tasks/foreman_tasks_helper_test.rb
451
452
  - test/helpers/foreman_tasks/tasks_helper_test.rb
452
453
  - test/lib/actions/middleware/keep_current_request_id_test.rb
453
454
  - test/lib/actions/middleware/keep_current_taxonomies_test.rb
@@ -1,39 +0,0 @@
1
- require 'foreman_tasks_test_helper'
2
-
3
- module ForemanTasks
4
- class ForemanTasksHelperTest < ActionView::TestCase
5
- describe 'breadcrumb items' do
6
- before do
7
- self.class.send(:include, ForemanTasks::TasksHelper)
8
- end
9
-
10
- it 'prepares items for index correctly' do
11
- stubs(:action_name).returns('index')
12
- items = breadcrumb_items
13
- items.count.must_equal 1
14
- items.first[:caption].must_equal 'Tasks'
15
- items.first[:url].must_be_nil
16
- end
17
-
18
- it 'prepares items for show correctly' do
19
- @task = FactoryBot.build(:dynflow_task, :user_create_task)
20
- @task.action = 'A task'
21
- stubs(:action_name).returns('show')
22
- items = breadcrumb_items
23
- items.map { |i| i[:caption] }.must_equal ['Tasks', 'A task']
24
- items.last[:url].must_be_nil
25
- end
26
-
27
- it 'prepares items for sub tasks correctly' do
28
- @task = FactoryBot.build(:dynflow_task, :user_create_task)
29
- child = FactoryBot.build(:dynflow_task, :user_create_task)
30
- @task.sub_tasks = [child]
31
- @task.action = 'A task'
32
- stubs(:action_name).returns('sub_tasks')
33
- items = breadcrumb_items
34
- items.map { |i| i[:caption] }.must_equal ['Tasks', 'A task', 'Sub tasks']
35
- items.last[:url].must_be_nil
36
- end
37
- end
38
- end
39
- end