From de7579e156483f1fb8715727ea1c47bfcce54510 Mon Sep 17 00:00:00 2001 From: Alan Cha Date: Tue, 29 Aug 2023 09:33:15 -0400 Subject: [PATCH 1/2] Remove exp from report for notify template Signed-off-by: Alan Cha --- base/notify.go | 1 - 1 file changed, 1 deletion(-) diff --git a/base/notify.go b/base/notify.go index af4a0949f..5bbd7c076 100644 --- a/base/notify.go +++ b/base/notify.go @@ -76,7 +76,6 @@ func getReport(exp *Experiment) map[string]Report { NoTaskFailures: exp.NoFailure(), NumTasks: len(exp.Spec), NumCompletedTasks: exp.Result.NumCompletedTasks, - Experiment: exp, }, } } From 47ab31b9abe6c80548024aee30a3e6a70cb4634d Mon Sep 17 00:00:00 2001 From: Alan Cha Date: Tue, 29 Aug 2023 09:41:01 -0400 Subject: [PATCH 2/2] Add name and namespace Signed-off-by: Alan Cha --- base/notify.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/notify.go b/base/notify.go index 5bbd7c076..00be970f3 100644 --- a/base/notify.go +++ b/base/notify.go @@ -76,6 +76,12 @@ func getReport(exp *Experiment) map[string]Report { NoTaskFailures: exp.NoFailure(), NumTasks: len(exp.Spec), NumCompletedTasks: exp.Result.NumCompletedTasks, + Experiment: &Experiment{ + Metadata: ExperimentMetadata{ + Name: exp.Metadata.Name, + Namespace: exp.Metadata.Namespace, + }, + }, }, } }