From a03e6afa0195c6f9b4166549a963580bf5ca2b9b Mon Sep 17 00:00:00 2001 From: adi6859 Date: Mon, 13 Feb 2023 19:21:11 +0530 Subject: [PATCH 1/2] added notes field in installed app details --- api/bean/AppView.go | 1 + pkg/appStore/deployment/service/InstalledAppService.go | 1 + 2 files changed, 2 insertions(+) diff --git a/api/bean/AppView.go b/api/bean/AppView.go index 681ac4f5d9..ba903ed913 100644 --- a/api/bean/AppView.go +++ b/api/bean/AppView.go @@ -121,6 +121,7 @@ type AppDetailContainer struct { Environments []Environment `json:"otherEnvironment,omitempty"` LinkOuts []LinkOuts `json:"linkOuts,omitempty"` ResourceTree map[string]interface{} `json:"resourceTree,omitempty"` + Notes string `json:"notes"` } type Environment struct { diff --git a/pkg/appStore/deployment/service/InstalledAppService.go b/pkg/appStore/deployment/service/InstalledAppService.go index 09535be222..a0779a4760 100644 --- a/pkg/appStore/deployment/service/InstalledAppService.go +++ b/pkg/appStore/deployment/service/InstalledAppService.go @@ -948,6 +948,7 @@ func (impl InstalledAppServiceImpl) FetchResourceTree(rctx context.Context, cn h resourceTree := util3.InterfaceToMapAdapter(detail.ResourceTreeResponse) resourceTree["status"] = detail.ApplicationStatus appDetail.ResourceTree = resourceTree + appDetail.Notes = detail.ChartMetadata.Notes impl.logger.Warnw("appName and envName not found - avoiding resource tree call", "app", appDetail.AppName, "env", appDetail.EnvironmentName) } else { appDetail.ResourceTree = map[string]interface{}{} From dee782bbbbb8a439812a45013f91999d45c04a02 Mon Sep 17 00:00:00 2001 From: adi6859 Date: Wed, 15 Feb 2023 16:03:49 +0530 Subject: [PATCH 2/2] added omitempty field in installed app details --- api/bean/AppView.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/bean/AppView.go b/api/bean/AppView.go index ba903ed913..804159d63e 100644 --- a/api/bean/AppView.go +++ b/api/bean/AppView.go @@ -121,7 +121,7 @@ type AppDetailContainer struct { Environments []Environment `json:"otherEnvironment,omitempty"` LinkOuts []LinkOuts `json:"linkOuts,omitempty"` ResourceTree map[string]interface{} `json:"resourceTree,omitempty"` - Notes string `json:"notes"` + Notes string `json:"notes,omitempty"` } type Environment struct {