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:
Ajay Devarakonda
2023-12-05 12:16:27 +05:30
committed by GitHub
parent 00fa66d13e
commit 1cec0657db
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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"