mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
Merge pull request #8413 from heww/fix-project-summary-api
fix(api,project): fix repo, chart count missing in project summary
This commit is contained in:
commit
1a2c30e094
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user