TP-49982 | Modified incidents to tag already resolved incidents as duplicates (#308)
* TP-38709 | Merging the changes to master on the logfix * TP-49982 | Modified to accept resolved incidents for duplicating the incidents
This commit is contained in:
@@ -157,7 +157,7 @@ func (dip *DuplicateIncidentAction) isRcaValid(RCA string, currentId uint) (bool
|
||||
if originalIncident == nil {
|
||||
return false, nil, nil
|
||||
}
|
||||
if originalIncident.Status == 5 || originalIncident.Status == 4 {
|
||||
if originalIncident.Status == 5 {
|
||||
return false, nil, nil
|
||||
}
|
||||
return originalIncident.ID != currentId, originalIncident, nil
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
)
|
||||
|
||||
func BuildDuplicateIncidentText(channel slack.Channel) slack.ModalViewRequest {
|
||||
titleText := slack.NewTextBlockObject(slack.PlainTextType, "Enter active Houston ID", false, false)
|
||||
titleText := slack.NewTextBlockObject(slack.PlainTextType, "Enter Houston ID", false, false)
|
||||
closeText := slack.NewTextBlockObject(slack.PlainTextType, "Close", false, false)
|
||||
submitText := slack.NewTextBlockObject(slack.PlainTextType, "Submit", false, false)
|
||||
|
||||
rcaText := slack.NewTextBlockObject(slack.PlainTextType, "Attach incident to", false, false)
|
||||
numberInputPlaceholder := slack.NewTextBlockObject(slack.PlainTextType, "Enter active incident id (Ex: 1234 for #_houston-1234)", false, false)
|
||||
numberInputPlaceholder := slack.NewTextBlockObject(slack.PlainTextType, "Enter incident id (Ex: 1234 for #_houston-1234)", false, false)
|
||||
numberInputElement := slack.NewNumberInputBlockElement(numberInputPlaceholder, "rca", false)
|
||||
numberInputElement.MinValue = "1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user