foreman_patch 1.1.6.alpha5 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_patch/api/v2/invocations_controller.rb +1 -23
  3. data/app/controllers/foreman_patch/concerns/hosts_controller_extensions.rb +41 -35
  4. data/app/helpers/foreman_patch/hosts_helper.rb +1 -1
  5. data/app/lib/actions/foreman_patch/cycle/complete.rb +41 -0
  6. data/app/lib/actions/foreman_patch/cycle/create.rb +1 -5
  7. data/app/lib/actions/foreman_patch/cycle/initiate.rb +1 -5
  8. data/app/lib/actions/foreman_patch/cycle/plan.rb +66 -0
  9. data/app/lib/actions/foreman_patch/invocation/action.rb +29 -23
  10. data/app/lib/actions/foreman_patch/invocation/patch.rb +8 -16
  11. data/app/lib/actions/foreman_patch/invocation/wait_for_host.rb +29 -4
  12. data/app/lib/actions/foreman_patch/round/patch.rb +1 -5
  13. data/app/lib/actions/foreman_patch/round/plan.rb +33 -0
  14. data/app/lib/actions/foreman_patch/window/plan.rb +43 -0
  15. data/app/lib/actions/foreman_patch/window/publish.rb +1 -5
  16. data/app/lib/actions/foreman_patch/window/resolve_hosts.rb +1 -5
  17. data/app/models/foreman_patch/invocation.rb +4 -4
  18. data/app/models/foreman_patch/round.rb +23 -4
  19. data/app/models/setting/patching.rb +57 -0
  20. data/app/services/foreman_patch/ticket/affected_items.rb +24 -3
  21. data/app/services/foreman_patch/ticket/api.rb +19 -16
  22. data/app/views/foreman_patch/api/v2/invocations/base.json.rabl +1 -1
  23. data/app/views/foreman_patch/api/v2/invocations/phase.json.rabl +7 -0
  24. data/app/views/foreman_patch/api/v2/invocations/show.json.rabl +2 -2
  25. data/app/views/foreman_patch/api/v2/rounds/base.json.rabl +1 -1
  26. data/app/views/foreman_patch/api/v2/rounds/status.json.rabl +8 -2
  27. data/app/views/foreman_patch/groups/index.html.erb +1 -1
  28. data/app/views/foreman_patch/invocations/show.html.erb +26 -1
  29. data/app/views/foreman_patch/layouts/react.html.erb +1 -1
  30. data/app/views/templates/ensure_services.erb +4 -7
  31. data/config/api_routes.rb +24 -28
  32. data/config/routes/mount_engine.rb +3 -0
  33. data/config/routes/overrides.rb +10 -0
  34. data/config/routes.rb +29 -40
  35. data/db/seeds.d/100-assign_features_with_templates.rb +12 -6
  36. data/lib/foreman_patch/engine.rb +46 -11
  37. data/lib/foreman_patch/plugin.rb +47 -0
  38. data/lib/foreman_patch/version.rb +1 -1
  39. data/lib/foreman_patch.rb +2 -3
  40. data/locale/en/foreman_patch.po +1 -1
  41. data/locale/foreman_patch.pot +1 -1
  42. data/locale/gemspec.rb +1 -1
  43. data/package.json +9 -20
  44. data/public/assets/foreman_patch/cycle_plans-ff3d252119622a68828ff70f4a97328303963002237dbf850e92d6a706e93667.scss.gz +0 -0
  45. data/public/assets/foreman_patch/foreman_patch-be2e2ba89548f4a490612e8a6cd1cdebc0473be89f8023a3df7612f05a75d301.css.gz +0 -0
  46. data/public/assets/foreman_patch/foreman_patch.json +1 -1
  47. data/public/assets/foreman_patch/plan_edit_windows-9ba20f84f3ecf2c4eb903acd57d30ee3e16f023a79db30bc614aa22f26442ce3.js.gz +0 -0
  48. data/public/webpack/foreman_patch/bundle-e45c4bb530e40506f2da.js +6 -0
  49. data/public/webpack/foreman_patch/bundle-e45c4bb530e40506f2da.js.gz +0 -0
  50. data/public/webpack/foreman_patch/bundle-e45c4bb530e40506f2da.js.map +1 -0
  51. data/public/webpack/foreman_patch/bundle-e45c4bb530e40506f2da.js.map.gz +0 -0
  52. data/public/webpack/foreman_patch/{foreman_patch-8909c3e06f012a43f769.css → foreman_patch-4a4e1a59d74af09c4b8b.css} +1 -1
  53. data/public/webpack/foreman_patch/{foreman_patch-8909c3e06f012a43f769.css.gz → foreman_patch-4a4e1a59d74af09c4b8b.css.gz} +0 -0
  54. data/public/webpack/foreman_patch/foreman_patch-4a4e1a59d74af09c4b8b.js +6 -0
  55. data/public/webpack/foreman_patch/foreman_patch-4a4e1a59d74af09c4b8b.js.gz +0 -0
  56. data/public/webpack/foreman_patch/foreman_patch-4a4e1a59d74af09c4b8b.js.map +1 -0
  57. data/public/webpack/foreman_patch/foreman_patch-4a4e1a59d74af09c4b8b.js.map.gz +0 -0
  58. data/public/webpack/foreman_patch/manifest.json +8 -13
  59. data/public/webpack/foreman_patch/manifest.json.gz +0 -0
  60. data/public/webpack/foreman_patch/{vendor-769bd77f6be96c3c37e1.js → vendor-4b77c91f1e9103179596.js} +2 -2
  61. data/public/webpack/foreman_patch/vendor-4b77c91f1e9103179596.js.gz +0 -0
  62. data/public/webpack/foreman_patch/{vendor-769bd77f6be96c3c37e1.js.map → vendor-4b77c91f1e9103179596.js.map} +1 -1
  63. data/public/webpack/foreman_patch/vendor-4b77c91f1e9103179596.js.map.gz +0 -0
  64. data/webpack/components/Invocation/Invocation.js +47 -0
  65. data/webpack/{src/Components → components}/Invocation/InvocationSelectors.js +3 -0
  66. data/webpack/components/Invocation/index.js +36 -0
  67. data/webpack/components/Invocations/Invocations.js +16 -48
  68. data/webpack/components/Invocations/InvocationsPage.js +1 -24
  69. data/webpack/components/Invocations/InvocationsSelectors.js +1 -1
  70. data/webpack/components/Invocations/components/{InvocationActions.js → InvocationItem.js} +16 -4
  71. data/webpack/components/Invocations/index.js +12 -95
  72. data/webpack/components/RoundProgress/AggregateStatus.js +5 -6
  73. data/webpack/components/RoundProgress/RoundProgress.js +6 -7
  74. data/webpack/components/RoundProgress/RoundProgressSelectors.js +2 -3
  75. data/webpack/components/common/Calendar/Calendar.js +4 -5
  76. data/webpack/components/common/Terminal/OutputLine.js +26 -0
  77. data/webpack/components/common/Terminal/Terminal.js +115 -0
  78. data/webpack/components/common/Terminal/Terminal.scss +47 -0
  79. data/webpack/index.js +0 -3
  80. metadata +90 -59
  81. data/app/controllers/foreman_patch/react_controller.rb +0 -12
  82. data/app/lib/actions/foreman_patch/invocation/process_logging.rb +0 -44
  83. data/app/lib/actions/foreman_patch/invocation/proxy_action.rb +0 -52
  84. data/app/models/foreman_patch/event.rb +0 -13
  85. data/app/views/foreman_patch/api/v2/invocations/event.json.rabl +0 -3
  86. data/db/migrate/20230706092400_nullify_group_on_delete.rb +0 -11
  87. data/db/migrate/20230707102800_create_invocation_events.rb +0 -16
  88. data/lib/foreman_patch/register.rb +0 -119
  89. data/public/webpack/foreman_patch/bundle-831173d6ae39953b2409.js +0 -6
  90. data/public/webpack/foreman_patch/bundle-831173d6ae39953b2409.js.gz +0 -0
  91. data/public/webpack/foreman_patch/bundle-831173d6ae39953b2409.js.map +0 -1
  92. data/public/webpack/foreman_patch/bundle-831173d6ae39953b2409.js.map.gz +0 -0
  93. data/public/webpack/foreman_patch/foreman_patch-8909c3e06f012a43f769.js +0 -6
  94. data/public/webpack/foreman_patch/foreman_patch-8909c3e06f012a43f769.js.gz +0 -0
  95. data/public/webpack/foreman_patch/foreman_patch-8909c3e06f012a43f769.js.map +0 -1
  96. data/public/webpack/foreman_patch/foreman_patch-8909c3e06f012a43f769.js.map.gz +0 -0
  97. data/public/webpack/foreman_patch/foreman_patch:global-d71cc6e1e759f04f631a.css +0 -1
  98. data/public/webpack/foreman_patch/foreman_patch:global-d71cc6e1e759f04f631a.css.gz +0 -0
  99. data/public/webpack/foreman_patch/foreman_patch:global-d71cc6e1e759f04f631a.js +0 -6
  100. data/public/webpack/foreman_patch/foreman_patch:global-d71cc6e1e759f04f631a.js.gz +0 -0
  101. data/public/webpack/foreman_patch/foreman_patch:global-d71cc6e1e759f04f631a.js.map +0 -1
  102. data/public/webpack/foreman_patch/foreman_patch:global-d71cc6e1e759f04f631a.js.map.gz +0 -0
  103. data/public/webpack/foreman_patch/vendor-769bd77f6be96c3c37e1.js.gz +0 -0
  104. data/public/webpack/foreman_patch/vendor-769bd77f6be96c3c37e1.js.map.gz +0 -0
  105. data/webpack/components/common/Table/index.js +0 -28
  106. data/webpack/global_index.js +0 -16
  107. data/webpack/src/Components/Invocation/Invocation.js +0 -67
  108. data/webpack/src/Components/Invocation/InvocationLogFooter.js +0 -30
  109. data/webpack/src/Components/Invocation/InvocationLogToolbar.js +0 -80
  110. data/webpack/src/Components/Invocation/index.js +0 -62
  111. data/webpack/src/Components/InvocationStatus.js +0 -50
  112. data/webpack/src/Components/Loading.js +0 -51
  113. data/webpack/src/Extends/index.js +0 -15
  114. data/webpack/src/Router/routes.js +0 -5
  115. data/webpack/src/reducers.js +0 -7
  116. /data/public/webpack/foreman_patch/{bundle-831173d6ae39953b2409.css → bundle-e45c4bb530e40506f2da.css} +0 -0
  117. /data/public/webpack/foreman_patch/{bundle-831173d6ae39953b2409.css.gz → bundle-e45c4bb530e40506f2da.css.gz} +0 -0
  118. /data/webpack/{src/Components → components}/Invocation/InvocationActions.js +0 -0
  119. /data/webpack/{src/Components → components}/Invocation/InvocationConsts.js +0 -0
  120. /data/webpack/components/Invocations/{Invocations.css → InvocationsPage.scss} +0 -0
  121. /data/webpack/components/common/Calendar/{Calendar.css → Calendar.scss} +0 -0