From e5d5e8c0e6c5b36cb0f7a1c182327ecc80e652ee Mon Sep 17 00:00:00 2001 From: Yang Pan Date: Sun, 4 Nov 2018 12:55:14 -0800 Subject: [PATCH] Propagate name for runs from scheduled job (#33) --- backend/src/apiserver/resource/resource_manager.go | 1 + backend/src/apiserver/resource/resource_manager_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/src/apiserver/resource/resource_manager.go b/backend/src/apiserver/resource/resource_manager.go index e4e50477ff6..25d823e2988 100644 --- a/backend/src/apiserver/resource/resource_manager.go +++ b/backend/src/apiserver/resource/resource_manager.go @@ -336,6 +336,7 @@ func (r *ResourceManager) ReportWorkflowResource(workflow *util.Workflow) error runDetail := &model.RunDetail{ Run: model.Run{ UUID: runId, + DisplayName: workflow.Name, Name: workflow.Name, Namespace: workflow.Namespace, CreatedAtInSec: workflow.CreationTimestamp.Unix(), diff --git a/backend/src/apiserver/resource/resource_manager_test.go b/backend/src/apiserver/resource/resource_manager_test.go index 2477af52076..0ef337b2ae8 100644 --- a/backend/src/apiserver/resource/resource_manager_test.go +++ b/backend/src/apiserver/resource/resource_manager_test.go @@ -695,6 +695,7 @@ func TestReportWorkflowResource_ScheduledWorkflowIDNotEmpty_Success(t *testing.T expectedRunDetail := &model.RunDetail{ Run: model.Run{ UUID: "WORKFLOW_1", + DisplayName: "MY_NAME", Name: "MY_NAME", Namespace: "MY_NAMESPACE", CreatedAtInSec: 11,