foreman_rh_cloud 9.0.54 → 9.0.55

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ForemanRhCloud
2
- VERSION = '9.0.54'.freeze
2
+ VERSION = '9.0.55'.freeze
3
3
  end
data/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "lint": "tfm-lint --plugin -d /webpack",
8
- "lint:spelling": "eslint ./",
8
+ "lint:spelling": "eslint ./webpack",
9
9
  "test": "tfm-test --plugin",
10
10
  "test:watch": "tfm-test --plugin --watchAll",
11
11
  "test:current": "tfm-test --plugin --watch",
@@ -46,6 +46,9 @@ class TagsGeneratorTest < ActiveSupport::TestCase
46
46
  end
47
47
 
48
48
  test 'generates tags for a single host' do
49
+ instance_id = Foreman.uuid
50
+ Foreman.stubs(:instance_id).returns(instance_id)
51
+
49
52
  generator = create_generator
50
53
 
51
54
  actual = generator.generate.group_by { |key, value| key }
@@ -31,7 +31,7 @@ exports[`PageTitle rendering render without Props 1`] = `
31
31
  Actions history
32
32
  </DropdownItem>,
33
33
  <DropdownItem
34
- href="/links/manual/?root_url=https%3A%2F%2Faccess.redhat.com%2Fproducts%2Fsubscription-central"
34
+ href="/links/manual/?root_url=https%3A%2F%2Faccess.redhat.com%2Fdocumentation%2Fen-us%2Fred_hat_insights%2F2023%2Fhtml%2Fred_hat_insights_remediations_guide%2Fhost-communication-with-insights_red-hat-insights-remediation-guide%23uploading-satellite-host-inventory-to-insights_configuring-satellite-cloud-connector"
35
35
  rel="noopener noreferrer"
36
36
  target="_blank"
37
37
  >
@@ -7,7 +7,7 @@ export const inventoryUrl = path =>
7
7
  export const getInventoryDocsUrl = () =>
8
8
  foremanUrl(
9
9
  `/links/manual/?root_url=${URI.encode(
10
- 'https://access.redhat.com/products/subscription-central'
10
+ 'https://access.redhat.com/documentation/en-us/red_hat_insights/2023/html/red_hat_insights_remediations_guide/host-communication-with-insights_red-hat-insights-remediation-guide#uploading-satellite-host-inventory-to-insights_configuring-satellite-cloud-connector'
11
11
  )}`
12
12
  );
13
13
 
@@ -2,4 +2,4 @@
2
2
 
3
3
  exports[`ForemanInventoryUpload helpers should return inventory Url 1`] = `"/foreman_inventory_upload/test_path"`;
4
4
 
5
- exports[`ForemanInventoryUpload helpers should return inventory docs url 1`] = `"/links/manual/?root_url=https%3A%2F%2Faccess.redhat.com%2Fproducts%2Fsubscription-central"`;
5
+ exports[`ForemanInventoryUpload helpers should return inventory docs url 1`] = `"/links/manual/?root_url=https%3A%2F%2Faccess.redhat.com%2Fdocumentation%2Fen-us%2Fred_hat_insights%2F2023%2Fhtml%2Fred_hat_insights_remediations_guide%2Fhost-communication-with-insights_red-hat-insights-remediation-guide%23uploading-satellite-host-inventory-to-insights_configuring-satellite-cloud-connector"`;
@@ -1,4 +1,5 @@
1
1
  .insights_settings {
2
2
  float: right;
3
3
  margin-top: 22px;
4
+ margin-right: 16px;
4
5
  }
@@ -66,7 +66,7 @@ const InsightsTable = ({
66
66
  onSelect={(_event, isSelected, rowId) =>
67
67
  onTableSelect(isSelected, rowId, rows, selectedIds)
68
68
  }
69
- canSelectAll
69
+ canSelectAll={rows.length > 0}
70
70
  sortBy={{
71
71
  index: getSortColumnIndex(columns, sortBy),
72
72
  direction: sortOrder,
@@ -81,7 +81,7 @@ const InsightsTable = ({
81
81
  <TableHeader />
82
82
  <TableBody />
83
83
  </Table>
84
- <TableEmptyState status={status} error={error} />
84
+ <TableEmptyState status={status} error={error} rowsLength={rows.length} />
85
85
  <Pagination variant="bottom" />
86
86
  </React.Fragment>
87
87
  );
@@ -10,9 +10,11 @@ exports[`InsightsTable rendering render with Props 1`] = `
10
10
  showSelectAllAlert={false}
11
11
  />
12
12
  <Table
13
+ actionsMenuAppendTo="inline"
13
14
  aria-label="Recommendations Table"
14
15
  borders={true}
15
- canSelectAll={true}
16
+ canCollapseAll={false}
17
+ canSelectAll={false}
16
18
  canSortFavorites={true}
17
19
  cells={
18
20
  Array [
@@ -69,6 +71,7 @@ exports[`InsightsTable rendering render with Props 1`] = `
69
71
  ]
70
72
  }
71
73
  className="rh-cloud-recommendations-table"
74
+ collapseAllAriaLabel=""
72
75
  contentId="expanded-content"
73
76
  dropdownDirection="down"
74
77
  dropdownPosition="right"
@@ -98,6 +101,7 @@ exports[`InsightsTable rendering render with Props 1`] = `
98
101
  </Table>
99
102
  <TableEmptyState
100
103
  error={null}
104
+ rowsLength={0}
101
105
  status="RESOLVED"
102
106
  />
103
107
  <Pagination
@@ -6,4 +6,8 @@ label.foreman-rh-cloud-switcher {
6
6
  .switcher-help-label {
7
7
  padding-left: 5px;
8
8
  }
9
+
10
+ .pf-c-switch__toggle {
11
+ margin-right: 5px;
12
+ }
9
13
  }
@@ -7,12 +7,12 @@ import {
7
7
  EmptyStateVariant,
8
8
  Title,
9
9
  } from '@patternfly/react-core';
10
- import { ExclamationCircleIcon } from '@patternfly/react-icons';
10
+ import { ExclamationCircleIcon, CheckIcon } from '@patternfly/react-icons';
11
11
 
12
12
  import { STATUS } from 'foremanReact/constants';
13
13
  import { translate as __, sprintf } from 'foremanReact/common/I18n';
14
14
 
15
- const TableEmptyState = ({ status, error }) => {
15
+ const TableEmptyState = ({ status, error, rowsLength }) => {
16
16
  switch (status) {
17
17
  case STATUS.PENDING:
18
18
  return (
@@ -35,6 +35,16 @@ const TableEmptyState = ({ status, error }) => {
35
35
  </Title>
36
36
  </EmptyState>
37
37
  );
38
+ case STATUS.RESOLVED:
39
+ if (rowsLength > 0) return null;
40
+ return (
41
+ <EmptyState variant={EmptyStateVariant.large}>
42
+ <EmptyStateIcon variant="container" component={CheckIcon} />
43
+ <Title headingLevel="h2" size="lg">
44
+ {__('There are no recommendations for your hosts')}
45
+ </Title>
46
+ </EmptyState>
47
+ );
38
48
  default:
39
49
  return null;
40
50
  }
@@ -43,11 +53,13 @@ const TableEmptyState = ({ status, error }) => {
43
53
  TableEmptyState.propTypes = {
44
54
  status: PropTypes.string,
45
55
  error: PropTypes.string,
56
+ rowsLength: PropTypes.number,
46
57
  };
47
58
 
48
59
  TableEmptyState.defaultProps = {
49
60
  status: '',
50
61
  error: '',
62
+ rowsLength: 0,
51
63
  };
52
64
 
53
65
  export default TableEmptyState;
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: 9.0.54
4
+ version: 9.0.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-19 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -173,7 +173,6 @@ files:
173
173
  - app/views/layouts/foreman_rh_cloud/application.html.erb
174
174
  - config/Gemfile.lock.gh_test
175
175
  - config/database.yml.example
176
- - config/package-lock.json.gh_test
177
176
  - config/package-lock.json.plugin
178
177
  - config/rh_cert-api_chain.pem
179
178
  - config/routes.rb
@@ -669,7 +668,7 @@ homepage: https://github.com/theforeman/foreman_rh_cloud
669
668
  licenses:
670
669
  - GPL-3.0
671
670
  metadata: {}
672
- post_install_message:
671
+ post_install_message:
673
672
  rdoc_options: []
674
673
  require_paths:
675
674
  - lib
@@ -684,8 +683,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
684
683
  - !ruby/object:Gem::Version
685
684
  version: '0'
686
685
  requirements: []
687
- rubygems_version: 3.4.10
688
- signing_key:
686
+ rubygems_version: 3.1.6
687
+ signing_key:
689
688
  specification_version: 4
690
689
  summary: Summary of ForemanRhCloud.
691
690
  test_files: