Skip to content

Commit

Permalink
Merge pull request #169 from armosec/fix/enable-name-change-incidents
Browse files Browse the repository at this point in the history
Enable changing name of incidents
  • Loading branch information
slashben authored Oct 31, 2024
2 parents 709e695 + efd580e commit 709e9eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,7 @@ func (suite *MainTestSuite) TestRuntimeIncidents() {
mandatoryName: false,
customGUID: true,
skipPutTests: false,
renameAllowed: true,
}
cmpFilters := cmp.FilterPath(func(p cmp.Path) bool {
// "RuntimeIncident.RuntimeAlert.RuntimeAlertK8sDetails.HostNetwork"
Expand Down
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ type RuntimeIncident struct {
ResolveDayDate *time.Time `json:"resolveDayDate,omitempty" bson:"resolveDayDate,omitempty"`
}

var runtimeIncidentReadOnlyFields = append([]string{"creationTimestamp", "creationDayDate"}, commonReadOnlyFieldsV1...)
var runtimeIncidentReadOnlyFields = append([]string{"creationTimestamp", "creationDayDate"}, commonReadOnlyFieldsAllowRename...)

func (r *RuntimeIncident) GetReadOnlyFields() []string {
readOnlyFields := runtimeIncidentReadOnlyFields
Expand Down

0 comments on commit 709e9eb

Please sign in to comment.