foreman-tasks 8.3.3 → 9.0.1

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: 4ebc4e91c21d0b6ff3f297beabd416059d1dfe3f7bcb99895e9676b4d73bd87e
4
- data.tar.gz: 39c307472cee9bacfd5e4a29026de6aebfe6e03937d461d511f673ced82f2f1e
3
+ metadata.gz: c07047587cf02128c555096e198c263c44e0309511968150c6ffad1014611ccc
4
+ data.tar.gz: 0a67b8fa80f6a9c6ab2d15659adea5c067fc2ccff70ae1fab6df679580fc28cc
5
5
  SHA512:
6
- metadata.gz: 2781937dceeafdb7e25c039a4d584b2612ff0bfb7b1cd60804d961d52a2b84bfc52ee1a2d9232624ad7b79344f6926b1b18d35a93c45a819d1cac0d22382897c
7
- data.tar.gz: a5d383bc4ba5ff5fcaf8160eb2b227ac5e63f97a777062a6cfa75bc67117d13545d759b0a6edd16b0c688b426d3c7a0c2e8d19a966719a0e5b387fa931b725aa
6
+ metadata.gz: 1144a9f0f759891f5e99ecffbae42f9342f20eb6bd63adfeea0c7ded40cc38254be051024dbf344e3cebc40191098b4aa4ffe7d2d005c73e28b06fbd0e4a9349
7
+ data.tar.gz: ba9a9c54f9c924a0ccb49f93b9cb22bad9132e4665b1d7a764667f3209d2cc26d6edff9d5e58a818b70500fe604d6074b2dc92a0aba3b0acdfab4b7078f3869e
@@ -6,4 +6,4 @@ attributes :id, :cron_line, :end_time, :iteration, :task_group_id, :state,
6
6
  node(:task_count) { |rl| rl.tasks.count }
7
7
  node(:action) { |rl| rl.tasks.first.try(:action) }
8
8
  node(:last_occurence) { |rl| rl.last_task&.started_at }
9
- node(:next_occurence) { |rl| rl.next_task&.start_at }
9
+ node(:next_occurence) { |rl| rl.next_task&.start_at if rl.state == 'active' }
@@ -18,7 +18,7 @@ module ForemanTasks
18
18
 
19
19
  initializer 'foreman_tasks.register_plugin', :before => :finisher_hook do |_app|
20
20
  Foreman::Plugin.register :"foreman-tasks" do
21
- requires_foreman '>= 3.7.0'
21
+ requires_foreman '>= 3.9'
22
22
  divider :top_menu, :parent => :monitor_menu, :last => true, :caption => N_('Foreman Tasks')
23
23
  menu :top_menu, :tasks,
24
24
  :url_hash => { :controller => 'foreman_tasks/tasks', :action => :index },
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '8.3.3'.freeze
2
+ VERSION = '9.0.1'.freeze
3
3
  end
@@ -10,12 +10,18 @@ if gettext_find_task
10
10
  storage_file = "#{locale_path}/action_names.rb"
11
11
  puts "writing action translations to: #{storage_file}"
12
12
 
13
+ klasses = Actions::EntryAction
14
+ .subclasses
15
+ .uniq
16
+ .select do |action|
17
+ src, = Object.const_source_location(action.to_s)
18
+ src.start_with? @engine.root.to_s
19
+ end
20
+
13
21
  File.write storage_file,
14
22
  "# Autogenerated!\n" +
15
- Actions::EntryAction
16
- .all_action_names
17
- .uniq
18
- .map { |n| %[_("#{n}")] }
23
+ klasses
24
+ .map { |klass| %[_("#{klass.allocate.humanized_name}")] }
19
25
  .sort
20
26
  .join("\n") + "\n"
21
27
  end
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_tasks 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-11-01 11:07+0100\n"
12
- "PO-Revision-Date: 2023-11-01 11:07+0100\n"
11
+ "POT-Creation-Date: 2023-11-28 22:09+0100\n"
12
+ "PO-Revision-Date: 2023-11-28 22:09+0100\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -165,8 +165,7 @@ msgstr ""
165
165
  #: ../db/seeds.d/30-notification_blueprints.rb:54
166
166
  #: ../lib/foreman_tasks/engine.rb:25 ../lib/foreman_tasks/engine.rb:54
167
167
  #: ../webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js:10
168
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js:7
169
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:150
168
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:151
170
169
  msgid "Tasks"
171
170
  msgstr ""
172
171
 
@@ -317,11 +316,11 @@ msgstr ""
317
316
  msgid "Bulk action"
318
317
  msgstr ""
319
318
 
320
- #: ../app/lib/actions/bulk_action.rb:59
319
+ #: ../app/lib/actions/bulk_action.rb:62
321
320
  msgid "Empty bulk action"
322
321
  msgstr ""
323
322
 
324
- #: ../app/lib/actions/bulk_action.rb:61
323
+ #: ../app/lib/actions/bulk_action.rb:64
325
324
  msgid "The targets are of different types"
326
325
  msgstr ""
327
326
 
@@ -1,10 +1,4 @@
1
1
  import React from 'react';
2
- import { translate as __ } from 'foremanReact/common/I18n';
3
2
  import TasksTablePage from './';
4
3
 
5
- export const TasksIndexPage = props => {
6
- const getBreadcrumbs = () => ({
7
- breadcrumbItems: [{ caption: __('Tasks'), url: `/foreman_tasks/tasks` }],
8
- });
9
- return <TasksTablePage getBreadcrumbs={getBreadcrumbs} {...props} />;
10
- };
4
+ export const TasksIndexPage = props => <TasksTablePage {...props} />;
@@ -123,7 +123,7 @@ TasksTablePage.propTypes = {
123
123
  selectAllRows: PropTypes.func.isRequired,
124
124
  results: PropTypes.array.isRequired,
125
125
  getTableItems: PropTypes.func.isRequired,
126
- getBreadcrumbs: PropTypes.func.isRequired,
126
+ getBreadcrumbs: PropTypes.func,
127
127
  actionName: PropTypes.string,
128
128
  status: PropTypes.oneOf(Object.keys(STATUS)),
129
129
  history: PropTypes.object.isRequired,
@@ -143,6 +143,7 @@ TasksTablePage.propTypes = {
143
143
  TasksTablePage.defaultProps = {
144
144
  perPage: 20,
145
145
  allRowsSelected: false,
146
+ getBreadcrumbs: () => null,
146
147
  actionName: '',
147
148
  status: STATUS.PENDING,
148
149
  selectedRows: [],
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: 8.3.3
4
+ version: 9.0.1
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: 2023-11-23 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynflow