Skip to content

Commit 5b1208e

Browse files
authored
Merge pull request #9632 from agrare/add_payload_valid_payload_error_columns
Add columns for payload valid and error for workflows
2 parents f6450c7 + be82582 commit 5b1208e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/gtl_formatter.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class GtlFormatter
1212
COLUMN_WITH_ICON = {
1313
'authentication_status' => 'authentication_status_image',
1414
'last_compliance_status' => 'last_compliance_status_image',
15+
'payload_valid' => 'payload_valid_image',
1516
}.freeze
1617

1718
COLUMN_WITH_BACKGROUND_ICON = {
@@ -218,6 +219,15 @@ def self.authentication_status_image(item)
218219
end
219220
end
220221

222+
def self.payload_valid_image(item)
223+
case item.payload_valid
224+
when true
225+
"pficon pficon-ok"
226+
else
227+
"pficon pficon-error-circle-o"
228+
end
229+
end
230+
221231
def self.normalized_state_image(item)
222232
NORMALIZED_STATE_ICON[item.normalized_state]
223233
end

product/views/ManageIQ_Providers_Workflows_AutomationManager_Workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cols:
2323
- name
2424
- description
2525
- repository
26+
- payload_valid
2627
- created_at
2728
- updated_at
2829

@@ -37,6 +38,7 @@ col_order:
3738
- name
3839
- description
3940
- configuration_script_source.name
41+
- payload_valid
4042
- created_at
4143
- updated_at
4244

@@ -45,6 +47,7 @@ headers:
4547
- Name
4648
- Description
4749
- Repository
50+
- Valid
4851
- Created On
4952
- Updated On
5053

@@ -55,6 +58,7 @@ col_formats:
5558
-
5659
-
5760
-
61+
-
5862

5963
# Condition(s) string for the SQL query
6064
conditions:

0 commit comments

Comments
 (0)