foreman_ansible 10.4.3 → 10.4.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43677522138ced457422019bc60d466cc4ff22956ce56cf35c6fad5bc6227aae
4
- data.tar.gz: a1523c4616c40ee68cd0209668d34f6a8ae20a817742181ca71f54580b38706f
3
+ metadata.gz: fafa20eedfebfae90bd8eb981b1879ef7444f4f3a661d2ddb65231df477d6901
4
+ data.tar.gz: 60f8a8ad775ade5183c9fe3cf4374210e8e6dc93613970fe8c46a6de6ff58ad9
5
5
  SHA512:
6
- metadata.gz: a513cd384608bf244807afc825d8f0db7e1984fbd1acc836cff5d4a35fbbcdb2163d56dea7927f5ff76c3b49dc3c2d9a84c21a0e0946f821058944054b15ba9a
7
- data.tar.gz: 271871a432184fc08437e02cac8fc5a7389f9cb1a475727d96aa2870fe8beb9b11e35b926771946d48df9e13de34e01130b4294f9b1a54bf6a7644a5fe43559d
6
+ metadata.gz: 64e4ff37e73336ed4cf530d1050ae75f0c6c4a86736e8ed0ea1b89742727672b43a3b8165fd946f0aa0eb75d2b1a514f43ac77f38cc94c436bf27b86e427a671
7
+ data.tar.gz: cfb54327ff40818064d3225b77d2d8ce89f6f36880323e76df44cf366acd61b7b5fb03e584c1e3119b447a7d3a07690d2c3218d3945fc28e3e514bc23f6a8aed
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '10.4.3'
7
+ VERSION = '10.4.4'
8
8
  end
@@ -4,8 +4,13 @@ import { sprintf, translate as __ } from 'foremanReact/common/I18n';
4
4
 
5
5
  import { showToast } from '../../../../toastHelper';
6
6
 
7
- const formatSourceLink = currentValue =>
8
- `${__(currentValue.element)}: ${currentValue.elementName}`;
7
+ function formatSourceLink(currentValue) {
8
+ const element =
9
+ typeof currentValue.element !== 'string'
10
+ ? currentValue.element.toString()
11
+ : currentValue.element;
12
+ return `${__(element)}: ${currentValue.elementName}`;
13
+ }
9
14
 
10
15
  export const formatSourceAttr = variable =>
11
16
  variable.currentValue
@@ -19,7 +19,7 @@ import {
19
19
  const TestComponent = withRedux(withMockedProvider(AnsibleVariableOverrides));
20
20
 
21
21
  describe('AnsibleVariableOverrides', () => {
22
- it('should show skeleton when page is loading', () => {
22
+ it('should show skeleton when page is loading', async () => {
23
23
  const { container } = render(
24
24
  <TestComponent
25
25
  hostId={hostId}
@@ -31,6 +31,8 @@ describe('AnsibleVariableOverrides', () => {
31
31
  expect(
32
32
  container.getElementsByClassName('react-loading-skeleton')
33
33
  ).toHaveLength(5);
34
+
35
+ await waitFor(tick);
34
36
  });
35
37
  it('should load', async () => {
36
38
  render(
@@ -26,7 +26,6 @@ class AnsibleRolesSwitcher extends React.Component {
26
26
  inheritedRoleIds,
27
27
  resourceId,
28
28
  resourceName,
29
- { page: 1, perPage: 10 },
30
29
  excludeAssignedRolesSearch(initialAssignedRoles)
31
30
  );
32
31
  }
@@ -19,7 +19,9 @@ const AvailableRolesList = ({
19
19
  <Pagination
20
20
  viewType="list"
21
21
  itemCount={itemCount}
22
- pagination={pagination}
22
+ updateParamsByUrl={false}
23
+ page={pagination.page}
24
+ perPage={pagination.perPage}
23
25
  onChange={onListingChange}
24
26
  dropdownButtonId="available-ansible-roles-pagination-row-dropdown"
25
27
  />
@@ -16,14 +16,8 @@ exports[`AvailableRolesList should render 1`] = `
16
16
  onPerPageSelect={null}
17
17
  onSetPage={null}
18
18
  page={1}
19
- pagination={
20
- Object {
21
- "page": 1,
22
- "perPage": 25,
23
- }
24
- }
25
- perPage={null}
26
- updateParamsByUrl={true}
19
+ perPage={25}
20
+ updateParamsByUrl={false}
27
21
  variant="bottom"
28
22
  viewType="list"
29
23
  />
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.4.3
4
+ version: 10.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-13 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -499,9 +499,9 @@ test_files:
499
499
  - test/test_plugin_helper.rb
500
500
  - test/unit/ansible_role_test.rb
501
501
  - test/unit/ansible_variable_test.rb
502
+ - test/unit/concerns/config_reports_extensions_test.rb
502
503
  - test/unit/concerns/host_managed_extensions_test.rb
503
504
  - test/unit/concerns/hostgroup_extensions_test.rb
504
- - test/unit/concerns/config_reports_extensions_test.rb
505
505
  - test/unit/helpers/ansible_reports_helper_test.rb
506
506
  - test/unit/host_ansible_role_test.rb
507
507
  - test/unit/hostgroup_ansible_role_test.rb