Skip to content

Commit

Permalink
remove chart-museum related to logic (#18722)
Browse files Browse the repository at this point in the history
Signed-off-by: lengrongfu <1275177125@qq.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
  • Loading branch information
lengrongfu and wy65701436 authored Sep 11, 2023
1 parent 7f19163 commit d55823d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/server/v2.0/handler/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/go-openapi/runtime/middleware"

"github.com/goharbor/harbor/src/common"
"github.com/goharbor/harbor/src/common/dao"
"github.com/goharbor/harbor/src/common/rbac"
"github.com/goharbor/harbor/src/common/rbac/system"
"github.com/goharbor/harbor/src/controller/project"
Expand Down Expand Up @@ -181,10 +180,6 @@ func (lAPI *labelAPI) DeleteLabel(ctx context.Context, params operation.DeleteLa
return lAPI.SendError(ctx, err)
}
id := label.ID
// TODO remove this step once chart-museum is removed.
if err := dao.DeleteResourceLabelByLabel(id); err != nil {
return lAPI.SendError(ctx, err)
}
if err := lAPI.labelMgr.RemoveFromAllArtifacts(ctx, id); err != nil {
return lAPI.SendError(ctx, err)
}
Expand Down

0 comments on commit d55823d

Please sign in to comment.