foreman_rh_cloud 4.0.22 → 4.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/rh_cloud/inventory_controller.rb +50 -0
  3. data/app/controllers/concerns/inventory_upload/report_actions.rb +26 -0
  4. data/app/controllers/concerns/inventory_upload/task_actions.rb +25 -0
  5. data/app/controllers/foreman_inventory_upload/reports_controller.rb +3 -1
  6. data/app/controllers/foreman_inventory_upload/tasks_controller.rb +5 -13
  7. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +4 -4
  8. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +1 -0
  9. data/app/controllers/insights_cloud/hits_controller.rb +7 -3
  10. data/app/helpers/foreman_insights_host_helper.rb +19 -0
  11. data/config/package-lock.json.plugin +30931 -0
  12. data/config/routes.rb +19 -0
  13. data/lib/foreman_rh_cloud/engine.rb +4 -0
  14. data/lib/foreman_rh_cloud/version.rb +1 -1
  15. data/lib/inventory_sync/async/inventory_hosts_sync.rb +6 -2
  16. data/lib/inventory_sync/async/inventory_scheduled_sync.rb +4 -0
  17. data/lib/tasks/rh_cloud_inventory.rake +2 -1
  18. data/package.json +1 -1
  19. data/test/controllers/inventory_upload/api/inventory_controller_test.rb +53 -0
  20. data/test/jobs/inventory_hosts_sync_test.rb +265 -0
  21. data/test/jobs/inventory_scheduled_sync_test.rb +22 -0
  22. data/test/test_plugin_helper.rb +2 -0
  23. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +11 -0
  24. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +11 -0
  25. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +0 -2
  26. metadata +14 -3
@@ -31,6 +31,17 @@ export const PageDescription = () => (
31
31
  About subscription watch
32
32
  </a>
33
33
  </p>
34
+ <p>
35
+ {__('For more information about Insights and Cloud Connector read')}
36
+ &nbsp;
37
+ <a
38
+ href="https://console.redhat.com/security/insights/"
39
+ target="_blank"
40
+ rel="noopener noreferrer"
41
+ >
42
+ Red Hat Insights Data and Application Security
43
+ </a>
44
+ </p>
34
45
  </div>
35
46
  );
36
47
 
@@ -24,5 +24,16 @@ exports[`PageDescription rendering render without Props 1`] = `
24
24
  About subscription watch
25
25
  </a>
26
26
  </p>
27
+ <p>
28
+ For more information about Insights and Cloud Connector read
29
+  
30
+ <a
31
+ href="https://console.redhat.com/security/insights/"
32
+ rel="noopener noreferrer"
33
+ target="_blank"
34
+ >
35
+ Red Hat Insights Data and Application Security
36
+ </a>
37
+ </p>
27
38
  </div>
28
39
  `;
@@ -61,7 +61,6 @@ exports[`InsightsTable rendering render with Props 1`] = `
61
61
  expandId="expandable-toggle"
62
62
  gridBreakPoint="grid-md"
63
63
  isStickyHeader={false}
64
- isTreeTable={false}
65
64
  onSelect={[Function]}
66
65
  onSort={[Function]}
67
66
  ouiaSafe={true}
@@ -138,7 +137,6 @@ exports[`InsightsTable rendering render with Props 1`] = `
138
137
  "currPage": "Current page",
139
138
  "items": "",
140
139
  "itemsPerPage": "Items per page",
141
- "ofWord": "of",
142
140
  "optionsToggle": "Items per page",
143
141
  "page": "",
144
142
  "paginationTitle": "Pagination",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_rh_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.22
4
+ version: 4.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -146,8 +146,11 @@ files:
146
146
  - LICENSE
147
147
  - README.md
148
148
  - Rakefile
149
+ - app/controllers/api/v2/rh_cloud/inventory_controller.rb
149
150
  - app/controllers/concerns/insights_cloud/candlepin_cache.rb
150
151
  - app/controllers/concerns/insights_cloud/client_authentication.rb
152
+ - app/controllers/concerns/inventory_upload/report_actions.rb
153
+ - app/controllers/concerns/inventory_upload/task_actions.rb
151
154
  - app/controllers/foreman_inventory_upload/accounts_controller.rb
152
155
  - app/controllers/foreman_inventory_upload/reports_controller.rb
153
156
  - app/controllers/foreman_inventory_upload/tasks_controller.rb
@@ -157,6 +160,7 @@ files:
157
160
  - app/controllers/insights_cloud/hits_controller.rb
158
161
  - app/controllers/insights_cloud/settings_controller.rb
159
162
  - app/controllers/insights_cloud/tasks_controller.rb
163
+ - app/helpers/foreman_insights_host_helper.rb
160
164
  - app/helpers/foreman_inventory_upload_helper.rb
161
165
  - app/helpers/foreman_inventory_upload_host_helper.rb
162
166
  - app/models/concerns/rh_cloud_host.rb
@@ -183,6 +187,7 @@ files:
183
187
  - config/Gemfile.lock.gh_test
184
188
  - config/database.yml.example
185
189
  - config/package-lock.json.gh_test
190
+ - config/package-lock.json.plugin
186
191
  - config/routes.rb
187
192
  - db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
188
193
  - db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
@@ -238,6 +243,7 @@ files:
238
243
  - test/controllers/accounts_controller_test.rb
239
244
  - test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
240
245
  - test/controllers/insights_sync/settings_controller_test.rb
246
+ - test/controllers/inventory_upload/api/inventory_controller_test.rb
241
247
  - test/controllers/reports_controller_test.rb
242
248
  - test/controllers/uploads_controller_test.rb
243
249
  - test/controllers/uploads_settings_controller_test.rb
@@ -247,6 +253,8 @@ files:
247
253
  - test/jobs/insights_resolutions_sync_test.rb
248
254
  - test/jobs/insights_rules_sync_test.rb
249
255
  - test/jobs/inventory_full_sync_test.rb
256
+ - test/jobs/inventory_hosts_sync_test.rb
257
+ - test/jobs/inventory_scheduled_sync_test.rb
250
258
  - test/jobs/upload_report_job_test.rb
251
259
  - test/models/insights_client_report_status_test.rb
252
260
  - test/test_plugin_helper.rb
@@ -655,7 +663,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
655
663
  - !ruby/object:Gem::Version
656
664
  version: '0'
657
665
  requirements: []
658
- rubygems_version: 3.2.3
666
+ rubygems_version: 3.2.15
659
667
  signing_key:
660
668
  specification_version: 4
661
669
  summary: Summary of ForemanRhCloud.
@@ -663,6 +671,7 @@ test_files:
663
671
  - test/controllers/accounts_controller_test.rb
664
672
  - test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
665
673
  - test/controllers/insights_sync/settings_controller_test.rb
674
+ - test/controllers/inventory_upload/api/inventory_controller_test.rb
666
675
  - test/controllers/reports_controller_test.rb
667
676
  - test/controllers/uploads_controller_test.rb
668
677
  - test/controllers/uploads_settings_controller_test.rb
@@ -672,6 +681,8 @@ test_files:
672
681
  - test/jobs/insights_resolutions_sync_test.rb
673
682
  - test/jobs/insights_rules_sync_test.rb
674
683
  - test/jobs/inventory_full_sync_test.rb
684
+ - test/jobs/inventory_hosts_sync_test.rb
685
+ - test/jobs/inventory_scheduled_sync_test.rb
675
686
  - test/jobs/upload_report_job_test.rb
676
687
  - test/models/insights_client_report_status_test.rb
677
688
  - test/test_plugin_helper.rb