-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: show deployment status and timeline for helm apps deployed via gitops #3299
feat: show deployment status and timeline for helm apps deployed via gitops #3299
Conversation
…oyment status for an app with resource tree call
…ded for app store applications
…e status called when fetching resource tree for app store application
} | ||
resourceName := handler.enforcerUtil.GetAppRBACNameByAppId(installedAppId) | ||
token := r.Header.Get("token") | ||
if ok := handler.enforcer.Enforce(token, casbin.ResourceApplications, casbin.ActionGet, resourceName); !ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to check environment enforcer
var timelines []*PipelineStatusTimeline | ||
err := impl.dbConnection.Model(&timelines). | ||
Where("installed_app_version_history_id = ?", installedAppVersionHistoryId). | ||
Where("status in (?)", pg.In(statuses)).Select() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check type of statueses
@@ -1153,7 +1155,7 @@ func (impl *WorkflowDagExecutorImpl) updatePreviousDeploymentStatus(currentRunne | |||
UpdatedOn: time.Now(), | |||
}, | |||
} | |||
timelineErr = impl.pipelineStatusTimelineService.SaveTimeline(timeline, nil) | |||
timelineErr = impl.pipelineStatusTimelineService.SaveTimeline(timeline, nil, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isAppStore
…yment is triggered
…red in version history table
…ory table in AppStoreDeploymentService file
…case of updating a chart
SonarCloud Quality Gate failed.
|
Description
This pr incorporates the feature for showing deployment status timelines for helm apps that are deployed via gitops. Currently we only show deployment status timeline for devtron apps that are deployed via gitops.
Fixes #2429
How Has This Been Tested?
Checklist:
Does this PR introduce a user-facing change?