fix(api,project): fix repo, chart count missing in project summary

Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
He Weiwei 2019-07-26 11:33:32 +08:00
parent fe9eb9da20
commit c566a48880

View File

@ -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,