foreman_rh_cloud 0.9.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_inventory_upload/accounts_controller.rb +2 -6
  3. data/app/controllers/foreman_rh_cloud/react_controller.rb +8 -0
  4. data/app/models/setting/rh_cloud.rb +5 -9
  5. data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -0
  6. data/app/views/{foreman_inventory_upload/layouts/react.html.erb → layouts/foreman_rh_cloud/application.html.erb} +2 -2
  7. data/config/routes.rb +4 -1
  8. data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +10 -5
  9. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +43 -0
  10. data/lib/foreman_inventory_upload/generators/queries.rb +5 -0
  11. data/lib/foreman_inventory_upload/generators/slice.rb +2 -1
  12. data/lib/foreman_inventory_upload/scripts/uploader.sh.erb +1 -0
  13. data/lib/foreman_rh_cloud/engine.rb +17 -5
  14. data/lib/foreman_rh_cloud/version.rb +1 -1
  15. data/test/unit/slice_generator_test.rb +132 -0
  16. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +6 -2
  17. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +13 -10
  18. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +3 -2
  19. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +10 -0
  20. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +1 -1
  21. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js +15 -0
  22. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +13 -0
  23. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +18 -0
  24. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss +7 -0
  25. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js +1 -0
  26. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +1 -4
  27. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +1 -0
  28. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js +12 -0
  29. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +1 -1
  30. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +7 -8
  31. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +2 -3
  32. data/webpack/ForemanInventoryUpload/Components/AccountList/index.js +2 -0
  33. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +4 -1
  34. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +4 -3
  35. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +1 -1
  36. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -3
  37. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +1 -1
  38. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +3 -2
  39. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js +26 -0
  40. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js +1 -0
  41. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js +2 -0
  42. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js +39 -0
  43. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js +16 -0
  44. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js +3 -0
  45. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +36 -0
  46. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js +7 -0
  47. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +14 -0
  48. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +14 -0
  49. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +35 -0
  50. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +21 -0
  51. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +25 -0
  52. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +17 -0
  53. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +25 -0
  54. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +9 -0
  55. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +31 -0
  56. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +18 -0
  57. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js +17 -0
  58. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss +28 -0
  59. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +12 -3
  60. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +11 -2
  61. data/webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss +3 -0
  62. data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +3 -0
  63. data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +4 -0
  64. data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +16 -8
  65. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +4 -4
  66. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +11 -0
  67. data/webpack/ForemanInventoryUpload/{ForemanInventoryUpload.test.js → __tests__/ForemanInventoryUpload.test.js} +1 -1
  68. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +3 -0
  69. data/webpack/ForemanInventoryUpload/{__snapshots__ → __tests__/__snapshots__}/ForemanInventoryUpload.test.js.snap +0 -0
  70. data/webpack/ForemanRhCloudHelpers.js +6 -0
  71. data/webpack/ForemanRhCloudReducers.js +8 -0
  72. data/webpack/ForemanRhCloudSelectors.js +3 -0
  73. data/webpack/ForemanRhCloudTestHelpers.js +5 -0
  74. data/webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js +1 -0
  75. data/webpack/__tests__/ForemanRhCloudHelpers.test.js +11 -0
  76. data/webpack/__tests__/ForemanRhCloudSelectors.test.js +17 -0
  77. data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +10 -0
  78. data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +3 -0
  79. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +15 -0
  80. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +11 -0
  81. data/webpack/index.js +1 -1
  82. metadata +81 -13
  83. data/app/controllers/foreman_inventory_upload/react_controller.rb +0 -7
  84. data/test/unit/slice_generator_test.rb.orig +0 -280
  85. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
@@ -1,4 +0,0 @@
1
- // export const selectForemanInventoryUpload = state => state.ForemanInventoryUpload || {};
2
- // Added 'state' to use redux in storybook only, should be removed.
3
- export const selectForemanInventoryUpload = state =>
4
- state.ForemanInventoryUpload || state || {};