Skip to content

Commit 7cf8c7d

Browse files
committed
isExpressEdit param in performExpressEditActionsOnDeplTemplateForExceptionUser
1 parent aff2554 commit 7cf8c7d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/pipeline/draftAwareConfigService/DraftAwareConfigService.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (impl *DraftAwareResourceServiceImpl) Create(ctx context.Context, templateR
192192
impl.logger.Errorw("error in creating base deployment template", "appId", templateRequest.AppId, "err", err)
193193
return nil, err
194194
}
195-
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, templateRequest.AppId, -1, "")
195+
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, templateRequest.AppId, -1, "", false)
196196
if err != nil {
197197
impl.logger.Errorw("error in performing express edit actions if user is exception", "err", err)
198198
return nil, err
@@ -206,7 +206,7 @@ func (impl *DraftAwareResourceServiceImpl) UpdateAppOverride(ctx context.Context
206206
impl.logger.Errorw("error in updating base deployment template", "chartId", templateRequest.Id, "appId", templateRequest.AppId, "err", err)
207207
return nil, err
208208
}
209-
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, templateRequest.AppId, -1, "")
209+
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, templateRequest.AppId, -1, "", false)
210210
if err != nil {
211211
impl.logger.Errorw("error in performing express edit actions if user is exception", "err", err)
212212
return nil, err
@@ -220,7 +220,7 @@ func (impl *DraftAwareResourceServiceImpl) UpdateEnvironmentProperties(ctx conte
220220
impl.logger.Errorw("error in creating/updating env level deployment template", "appId", appId, "envId", propertiesRequest.EnvironmentId, "err", err)
221221
return nil, err
222222
}
223-
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, appId, propertiesRequest.EnvironmentId, "")
223+
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, appId, propertiesRequest.EnvironmentId, "", false)
224224
if err != nil {
225225
impl.logger.Errorw("error in performing express edit actions if user is exception", "err", err)
226226
return nil, err
@@ -234,7 +234,7 @@ func (impl *DraftAwareResourceServiceImpl) ResetEnvironmentProperties(ctx contex
234234
impl.logger.Errorw("service err, ResetEnvironmentProperties", "chartEnvConfigOverrideId", propertiesRequest.Id, "userId", propertiesRequest.UserId, "err", err)
235235
return false, err
236236
}
237-
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, propertiesRequest.AppId, propertiesRequest.EnvironmentId, "")
237+
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, propertiesRequest.AppId, propertiesRequest.EnvironmentId, "", false)
238238
if err != nil {
239239
impl.logger.Errorw("error in performing express edit actions if user is exception", "err", err)
240240
return false, err
@@ -248,7 +248,7 @@ func (impl *DraftAwareResourceServiceImpl) CreateEnvironmentPropertiesAndBaseIfN
248248
impl.logger.Errorw("error, CreateEnvironmentPropertiesAndBaseIfNeeded", "appId", appId, "req", environmentProperties, "err", err)
249249
return nil, err
250250
}
251-
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, environmentProperties.AppId, environmentProperties.EnvironmentId, "")
251+
err = impl.performExpressEditActionsOnDeplTemplateForExceptionUser(ctx, environmentProperties.AppId, environmentProperties.EnvironmentId, "", false)
252252
if err != nil {
253253
impl.logger.Errorw("error in performing express edit actions if user is exception", "err", err)
254254
return nil, err

pkg/pipeline/draftAwareConfigService/DraftAwareConfigService_ent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ func (impl *DraftAwareResourceServiceImpl) performExpressEditActionsOnCmCsForExc
1111
return util.NewApiError(http.StatusNotImplemented, "operations not supported in oss", "operations not supported in oss")
1212
}
1313

14-
func (impl *DraftAwareResourceServiceImpl) performExpressEditActionsOnDeplTemplateForExceptionUser(ctx context.Context, appId, envId int, resourceName string) error {
14+
func (impl *DraftAwareResourceServiceImpl) performExpressEditActionsOnDeplTemplateForExceptionUser(ctx context.Context, appId, envId int, resourceName string, isExpressEdit bool) error {
1515
return util.NewApiError(http.StatusNotImplemented, "operation not supported in oss", "operation not supported in oss")
1616
}

0 commit comments

Comments
 (0)