add workspace to review list

This commit is contained in:
LiHui
2022-05-25 11:58:21 +08:00
parent 0418277b57
commit 73852a8a4b
2 changed files with 4 additions and 0 deletions

View File

@@ -280,6 +280,9 @@ type AppVersionReview struct {
// version type
VersionType string `json:"version_type,omitempty"`
// Workspace of the app version
Workspace string `json:"workspace,omitempty"`
}
type CreateAppRequest struct {

View File

@@ -817,6 +817,7 @@ func convertAppVersionReview(app *v1alpha1.HelmApplication, appVersion *v1alpha1
review.VersionID = appVersion.GetHelmApplicationVersionId()
review.Phase = AppVersionReviewPhaseOAIGen{}
review.VersionName = appVersion.GetVersionName()
review.Workspace = appVersion.GetWorkspace()
review.StatusTime = strfmt.DateTime(status.Audit[0].Time.Time)
review.AppName = app.GetTrueName()