foreman_discovery 26.1.2 → 26.2.0

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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_discovery/locale/ca/foreman_discovery.js +1 -1
  3. data/app/assets/javascripts/foreman_discovery/locale/cs_CZ/foreman_discovery.js +1 -1
  4. data/app/assets/javascripts/foreman_discovery/locale/de/foreman_discovery.js +1 -1
  5. data/app/assets/javascripts/foreman_discovery/locale/en/foreman_discovery.js +841 -0
  6. data/app/assets/javascripts/foreman_discovery/locale/en_GB/foreman_discovery.js +1 -1
  7. data/app/assets/javascripts/foreman_discovery/locale/es/foreman_discovery.js +1 -1
  8. data/app/assets/javascripts/foreman_discovery/locale/fr/foreman_discovery.js +3 -3
  9. data/app/assets/javascripts/foreman_discovery/locale/gl/foreman_discovery.js +1 -1
  10. data/app/assets/javascripts/foreman_discovery/locale/it/foreman_discovery.js +1 -1
  11. data/app/assets/javascripts/foreman_discovery/locale/ja/foreman_discovery.js +4 -4
  12. data/app/assets/javascripts/foreman_discovery/locale/ka/foreman_discovery.js +1 -1
  13. data/app/assets/javascripts/foreman_discovery/locale/ko/foreman_discovery.js +2 -2
  14. data/app/assets/javascripts/foreman_discovery/locale/pt_BR/foreman_discovery.js +1 -1
  15. data/app/assets/javascripts/foreman_discovery/locale/ru/foreman_discovery.js +1 -1
  16. data/app/assets/javascripts/foreman_discovery/locale/sv_SE/foreman_discovery.js +1 -1
  17. data/app/assets/javascripts/foreman_discovery/locale/zh_CN/foreman_discovery.js +2 -2
  18. data/app/assets/javascripts/foreman_discovery/locale/zh_TW/foreman_discovery.js +1 -1
  19. data/app/controllers/foreman_discovery/concerns/hosts_controller_extensions.rb +10 -0
  20. data/app/services/foreman_discovery/host_converter.rb +1 -1
  21. data/db/seeds.d/60_discovery_proxy_feature.rb +1 -1
  22. data/lib/foreman_discovery/version.rb +1 -1
  23. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  24. data/locale/ca/foreman_discovery.po +1 -1
  25. data/locale/cs_CZ/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/cs_CZ/foreman_discovery.po +1 -1
  27. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  28. data/locale/de/foreman_discovery.po +2 -2
  29. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  30. data/locale/en/foreman_discovery.po +840 -0
  31. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/en_GB/foreman_discovery.po +1 -1
  33. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  34. data/locale/es/foreman_discovery.po +1 -1
  35. data/locale/foreman_discovery.pot +2 -2
  36. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  37. data/locale/fr/foreman_discovery.po +3 -3
  38. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/gl/foreman_discovery.po +1 -1
  40. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/it/foreman_discovery.po +1 -1
  42. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  43. data/locale/ja/foreman_discovery.po +4 -4
  44. data/locale/ka/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/ka/foreman_discovery.po +1 -1
  46. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  47. data/locale/ko/foreman_discovery.po +2 -2
  48. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  49. data/locale/pt_BR/foreman_discovery.po +1 -1
  50. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/ru/foreman_discovery.po +1 -1
  52. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/sv_SE/foreman_discovery.po +1 -1
  54. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  55. data/locale/zh_CN/foreman_discovery.po +2 -2
  56. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  57. data/locale/zh_TW/foreman_discovery.po +1 -1
  58. data/package.json +4 -3
  59. data/test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb +41 -0
  60. data/test/unit/discovered_extensions_test.rb +2 -2
  61. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/EmptyState.test.js +31 -6
  62. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/EmptyState.test.js +32 -14
  63. metadata +5 -11
  64. data/webpack/__mocks__/foremanReact/common/I18n.js +0 -3
  65. data/webpack/__mocks__/foremanReact/common/helpers.js +0 -1
  66. data/webpack/__mocks__/foremanReact/common/index.js +0 -5
  67. data/webpack/__mocks__/foremanReact/components/common/EmptyState/DefaultEmptyState.js +0 -71
  68. data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js +0 -76
  69. data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePropTypes.js +0 -29
  70. data/webpack/__mocks__/foremanReact/components/common/EmptyState/index.js +0 -5
  71. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/__snapshots__/EmptyState.test.js.snap +0 -16
  72. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/__snapshots__/EmptyState.test.js.snap +0 -22
@@ -1,29 +0,0 @@
1
- import PropTypes from 'prop-types';
2
-
3
- export const actionButtonPropTypes = {
4
- title: PropTypes.node.isRequired,
5
- url: PropTypes.string,
6
- onChange: PropTypes.func,
7
- };
8
-
9
- export const emptyStatePatternPropTypes = {
10
- icon: PropTypes.string.isRequired,
11
- header: PropTypes.string.isRequired,
12
- documentation: PropTypes.oneOfType([
13
- PropTypes.shape({
14
- label: PropTypes.string,
15
- buttonLabel: PropTypes.string,
16
- url: PropTypes.string.isRequired,
17
- }),
18
- PropTypes.node,
19
- ]),
20
- description: PropTypes.string.isRequired,
21
- action: PropTypes.node,
22
- secondaryActions: PropTypes.node,
23
- };
24
-
25
- export const defaultEmptyStatePropTypes = {
26
- ...emptyStatePatternPropTypes,
27
- action: PropTypes.shape(actionButtonPropTypes),
28
- secondaryActions: PropTypes.arrayOf(PropTypes.shape(actionButtonPropTypes)),
29
- };
@@ -1,5 +0,0 @@
1
- import EmptyStatePattern from './EmptyStatePattern';
2
- import DefaultEmptyState from './DefaultEmptyState';
3
-
4
- export default DefaultEmptyState;
5
- export { EmptyStatePattern };
@@ -1,16 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ForemanEmptyState rendering render with Props 1`] = `
4
- <DefaultEmptyState
5
- description="No discovered hosts found in this context. This page shows discovered bare-metal or virtual nodes waiting to be provisioned."
6
- documentation={
7
- Object {
8
- "url": "https://foreman.example.com",
9
- }
10
- }
11
- header="Foreman Discovery"
12
- icon="gears"
13
- iconType="fa"
14
- secondaryActions={Array []}
15
- />
16
- `;
@@ -1,22 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ForemanEmptyState rendering render with Props 1`] = `
4
- <DefaultEmptyState
5
- action={
6
- Object {
7
- "title": "Create Rule",
8
- "url": "/discovery_rules/new",
9
- }
10
- }
11
- description="No Discovery Rules found in this context. Create Discovery Rules to perform automated provisioning on Discovered Hosts"
12
- documentation={
13
- Object {
14
- "url": "https://foreman.example.com",
15
- }
16
- }
17
- header="Discovery Rules"
18
- icon="gavel"
19
- iconType="fa"
20
- secondaryActions={Array []}
21
- />
22
- `;