Skip to content

Commit 7a73c83

Browse files
committed
Add providers to AuthKeyPair
1 parent e74d131 commit 7a73c83

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

app/helpers/auth_key_pair_cloud_helper/textual_summary.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ module AuthKeyPairCloudHelper::TextualSummary
55
# Groups
66
#
77
def textual_group_relationships
8-
TextualGroup.new(_("Relationships"), %i[vms])
8+
TextualGroup.new(_("Relationships"), %i[provider vms])
99
end
1010

1111
def textual_group_properties
1212
TextualGroup.new(_("Properties"), %i[name fingerprint])
1313
end
1414

15+
def textual_provider
16+
textual_link(@record.ext_management_system)
17+
end
18+
1519
#
1620
# Items
1721
#

product/views/ManageIQ_Providers_CloudManager_AuthKeyPair.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ db: ManageIQ::Providers::CloudManager::AuthKeyPair
2121
cols:
2222
- name
2323
- fingerprint
24+
- type
2425

2526
# Included tables (joined, has_one, has_many) and columns
2627
include:
28+
ext_management_system:
29+
columns:
30+
- name
2731

2832
# Included tables and columns for query performance
2933
include_for_find:
@@ -32,11 +36,13 @@ include_for_find:
3236
col_order:
3337
- name
3438
- fingerprint
39+
- ext_management_system.name
3540

3641
# Column titles, in order
3742
headers:
3843
- Name
3944
- Fingerprint
45+
- Provider
4046

4147
# Condition(s) string for the SQL query
4248
conditions:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
describe AuthKeyPairCloudHelper::TextualSummary do
2-
include_examples "textual_group", "Relationships", %i(vms)
3-
include_examples "textual_group", "Properties", %i(name fingerprint)
2+
include_examples "textual_group", "Relationships", %i[provider vms]
3+
include_examples "textual_group", "Properties", %i[name fingerprint]
44
end

0 commit comments

Comments
 (0)