From c566a488801e699dc0d6cbf1caab1117df29532d Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Fri, 26 Jul 2019 11:33:32 +0800 Subject: [PATCH] fix(api,project): fix repo, chart count missing in project summary Signed-off-by: He Weiwei --- src/core/api/project.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/api/project.go b/src/core/api/project.go index 953344c2c..4a71dd316 100644 --- a/src/core/api/project.go +++ b/src/core/api/project.go @@ -267,7 +267,7 @@ func (p *ProjectAPI) Get() { err := p.populateProperties(p.project) if err != nil { - log.Errorf("populate project poroperties failed with : %+v", err) + log.Errorf("populate project properties failed with : %+v", err) } p.Data["json"] = p.project @@ -585,6 +585,10 @@ func (p *ProjectAPI) Summary() { return } + if err := p.populateProperties(p.project); err != nil { + log.Warningf("populate project properties failed with : %+v", err) + } + summary := &models.ProjectSummary{ RepoCount: p.project.RepoCount, ChartCount: p.project.ChartCount,