foreman_remote_execution 8.1.2 → 9.0.1

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby_ci.yml +3 -1
  3. data/app/models/job_invocation.rb +3 -2
  4. data/app/models/template_invocation.rb +1 -0
  5. data/lib/foreman_remote_execution/engine.rb +1 -1
  6. data/lib/foreman_remote_execution/version.rb +1 -1
  7. data/locale/action_names.rb +3 -3
  8. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  9. data/locale/de/foreman_remote_execution.po +260 -151
  10. data/locale/en/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  11. data/locale/en/foreman_remote_execution.po +129 -24
  12. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  13. data/locale/en_GB/foreman_remote_execution.po +147 -42
  14. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  15. data/locale/es/foreman_remote_execution.po +311 -204
  16. data/locale/foreman_remote_execution.pot +387 -212
  17. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  18. data/locale/fr/foreman_remote_execution.po +348 -239
  19. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  20. data/locale/ja/foreman_remote_execution.po +359 -255
  21. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  22. data/locale/ko/foreman_remote_execution.po +157 -52
  23. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  24. data/locale/pt_BR/foreman_remote_execution.po +327 -220
  25. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  26. data/locale/ru/foreman_remote_execution.po +157 -52
  27. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  28. data/locale/zh_CN/foreman_remote_execution.po +456 -353
  29. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  30. data/locale/zh_TW/foreman_remote_execution.po +158 -53
  31. data/test/unit/job_invocation_test.rb +1 -0
  32. data/webpack/JobWizard/JobWizard.scss +1 -5
  33. data/webpack/JobWizard/steps/AdvancedFields/__tests__/__snapshots__/AdvancedFields.test.js.snap +1 -1
  34. data/webpack/JobWizard/steps/HostsAndInputs/HostSearch.js +4 -28
  35. data/webpack/JobWizard/steps/HostsAndInputs/index.js +0 -4
  36. data/webpack/JobWizard/steps/form/Formatter.js +8 -30
  37. data/webpack/react_app/components/TargetingHosts/TargetingHostsLabelsRow.js +45 -0
  38. data/webpack/react_app/components/TargetingHosts/TargetingHostsLabelsRow.scss +26 -0
  39. data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.js +13 -1
  40. data/webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js +5 -0
  41. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsPage.test.js.snap +3 -0
  42. data/webpack/react_app/components/TargetingHosts/index.js +23 -3
  43. data/webpack/react_app/components/jobInvocations/AggregateStatus/index.js +25 -9
  44. data/webpack/react_app/components/jobInvocations/AggregateStatus/index.test.js +6 -2
  45. data/webpack/react_app/components/jobInvocations/index.js +19 -2
  46. data/webpack/react_app/redux/actions/jobInvocations/index.js +8 -0
  47. data/webpack/react_app/redux/reducers/jobInvocations/index.js +2 -0
  48. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e893a2f960dd325ecee23b756b471f36814aae3f9f902421b18635bb69b6323a
4
- data.tar.gz: d916b70de7e3419e6d546942b112adfb8733ab7b62fe168651404568e5489d35
3
+ metadata.gz: 376cd3ce84a0abe7f0cf1f3ceaf214426f670c0baf18c9fa9e38d6a4fdddf243
4
+ data.tar.gz: de966d7e9b403c5ad383aa4710b324058fd416a17c5cbcee3873f48ec2e9d97b
5
5
  SHA512:
6
- metadata.gz: 27b59e2db3824b75f8038f214e76dc5abbf941ae91ed188c4d6dae97351d189bba6502b2e71e7f4b41b6f21b46a8772e56ee5fc0ee5095d5a281333b7c86cec8
7
- data.tar.gz: 23231766b5d3f07590acc887d36da711b3859a3bbd581b5192a4bce3a3db45f263984a57993949768dab62cefcccc7d0dde75489f722ed3600732155407182cf
6
+ metadata.gz: ff931232a32b165cc62176bf1f8e939143a9f6bb4536317060c6c9f4b85e286089ebcb386ac6bc3222521040bd19ec502c8fce11be60299b9c6f64f60fd3b52e
7
+ data.tar.gz: ba2ccd8b41bd70a9b3b657d2856b84999913dc1b07027a7a7dad004d4682b0f1e39b2d616ff2aef5a22804092dc3a89c0fb0cd239eec7a78c45a47554555d18b
@@ -13,6 +13,8 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
15
  - uses: actions/checkout@v2
16
+ - run: sudo apt-get update
17
+ - run: sudo apt-get install libyaml-dev
16
18
  - name: Setup Ruby
17
19
  uses: ruby/setup-ruby@v1
18
20
  with:
@@ -42,7 +44,7 @@ jobs:
42
44
  node-version: [12]
43
45
  steps:
44
46
  - run: sudo apt-get update
45
- - run: sudo apt-get install build-essential libcurl4-openssl-dev zlib1g-dev libpq-dev
47
+ - run: sudo apt-get install build-essential libcurl4-openssl-dev zlib1g-dev libpq-dev libyaml-dev
46
48
  - uses: actions/checkout@v2
47
49
  with:
48
50
  repository: theforeman/foreman
@@ -253,8 +253,9 @@ class JobInvocation < ApplicationRecord
253
253
  acc.merge(key => 0)
254
254
  end
255
255
  else
256
- counts = task.sub_tasks_counts
257
- done = counts.values_at(*map.results).reduce(:+)
256
+ counts = task.sub_tasks_counts
257
+ counts.default = 0
258
+ done = counts.values_at(*map.results).reduce(:+)
258
259
  percent = progress(counts[:total], done)
259
260
  counts.merge(:progress => percent, :failed => counts.values_at(*map.status_to_task_result(:failed)).reduce(:+))
260
261
  end
@@ -34,6 +34,7 @@ class TemplateInvocation < ApplicationRecord
34
34
  :cancelled => :cancelled,
35
35
  :error => :failed,
36
36
  :pending => :pending,
37
+ :running => :pending,
37
38
  :success => :success,
38
39
  :warning => :failed,
39
40
  }.with_indifferent_access
@@ -47,7 +47,7 @@ module ForemanRemoteExecution
47
47
 
48
48
  initializer 'foreman_remote_execution.register_plugin', before: :finisher_hook do |_app|
49
49
  Foreman::Plugin.register :foreman_remote_execution do
50
- requires_foreman '>= 3.4'
50
+ requires_foreman '>= 3.6'
51
51
  register_global_js_file 'global'
52
52
 
53
53
  apipie_documented_controllers ["#{ForemanRemoteExecution::Engine.root}/app/controllers/api/v2/*.rb"]
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '8.1.2'.freeze
2
+ VERSION = '9.0.1'.freeze
3
3
  end
@@ -1,5 +1,5 @@
1
1
  # Autogenerated!
2
- _("Remote action:")
3
- _("Import Puppet classes")
4
- _("Import facts")
5
2
  _("Action with sub plans")
3
+ _("Import facts")
4
+ _("Import Puppet classes")
5
+ _("Remote action:")