From 421093e2dcb40cbcc173b58f828cc18ba9412907 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 28 Mar 2022 17:24:46 +0800 Subject: [PATCH 1/5] fix issue --- templates/custom/select_dataset.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/custom/select_dataset.tmpl b/templates/custom/select_dataset.tmpl index 17e4eee42..bef5839c0 100644 --- a/templates/custom/select_dataset.tmpl +++ b/templates/custom/select_dataset.tmpl @@ -3,7 +3,11 @@
- + {{if eq .cloudbraintype 0}} + + {{else}} + + {{end}} {{.i18n.Tr "dataset.select_dataset"}} Date: Mon, 28 Mar 2022 17:35:20 +0800 Subject: [PATCH 2/5] fix issue --- templates/custom/select_dataset.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/custom/select_dataset.tmpl b/templates/custom/select_dataset.tmpl index bef5839c0..dc5ca6c9e 100644 --- a/templates/custom/select_dataset.tmpl +++ b/templates/custom/select_dataset.tmpl @@ -4,7 +4,7 @@ {{if eq .cloudbraintype 0}} - + {{else}} {{end}} From f4991184ea9dd1b0e149ffafe21b8a2097562fc5 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 28 Mar 2022 17:59:59 +0800 Subject: [PATCH 3/5] fix issue --- templates/repo/modelarts/trainjob/new.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/modelarts/trainjob/new.tmpl b/templates/repo/modelarts/trainjob/new.tmpl index afa09cf29..f0ac98b17 100755 --- a/templates/repo/modelarts/trainjob/new.tmpl +++ b/templates/repo/modelarts/trainjob/new.tmpl @@ -395,7 +395,7 @@ identifier : 'display_job_name', rules: [ { - type: 'regExp[/^[a-zA-Z0-9-_]{1,64}[^-]$/]', + type: 'regExp[/^[a-zA-Z0-9-_]{1,64}[a-zA-Z0-9_]$/]', } ] }, From 415a6464002b879f2f7f5a3445f921b7c233a966 Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Tue, 29 Mar 2022 10:06:50 +0800 Subject: [PATCH 4/5] #1765 fix bug --- routers/api/v1/repo/modelarts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/modelarts.go b/routers/api/v1/repo/modelarts.go index d7d011e07..d5a152b35 100755 --- a/routers/api/v1/repo/modelarts.go +++ b/routers/api/v1/repo/modelarts.go @@ -379,7 +379,7 @@ func GetModelArtsInferenceJob(ctx *context.APIContext) { job.Duration = result.Duration / 1000 job.TrainJobDuration = result.TrainJobDuration - job.TrainJobDuration = models.ConvertDurationToStr(result.Duration) + job.TrainJobDuration = models.ConvertDurationToStr(job.Duration) if job.EndTime == 0 && models.IsTrainJobTerminal(job.Status) && job.StartTime > 0 { job.EndTime = job.StartTime.Add(job.Duration) From 7f84d50c52e16cb9581e615d21b130d9d82c3f28 Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Tue, 29 Mar 2022 10:30:27 +0800 Subject: [PATCH 5/5] #1765 fix bug --- routers/api/v1/repo/modelarts.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/routers/api/v1/repo/modelarts.go b/routers/api/v1/repo/modelarts.go index d5a152b35..660efdfef 100755 --- a/routers/api/v1/repo/modelarts.go +++ b/routers/api/v1/repo/modelarts.go @@ -377,8 +377,6 @@ func GetModelArtsInferenceJob(ctx *context.APIContext) { } job.Status = modelarts.TransTrainJobStatus(result.IntStatus) job.Duration = result.Duration / 1000 - job.TrainJobDuration = result.TrainJobDuration - job.TrainJobDuration = models.ConvertDurationToStr(job.Duration) if job.EndTime == 0 && models.IsTrainJobTerminal(job.Status) && job.StartTime > 0 {