* TP-51013 | incident_jira entity, repo and service * TP-51013 | get jira status api * TP-51013 | added db migration file * TP-51013 | added migration query to migrate existing jira links into new table * TP-51013 | removing linked_jira_issues column from incident table * TP-51013 | removing empty jira fields if no response found for a jira key in jira api response * TP-51013 | handled jira api failure cases, will return empty jira fields * TP-51013 | removed linked_jira_issues field from incident entity * TP-51013 | handled jira link addition and removal in slack action * TP-51013 | resolving PR comments * TP-51013 | adding jira link max length check
17 lines
375 B
Go
17 lines
375 B
Go
package incident_jira
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type IncidentJiraEntity struct {
|
|
ID uint `gorm:"primarykey;column:id"`
|
|
CreatedAt time.Time `gorm:"column:created_at"`
|
|
IncidentEntityID uint `gorm:"column:incident_id"`
|
|
JiraLink string `gorm:"column:jira_link"`
|
|
}
|
|
|
|
func (IncidentJiraEntity) TableName() string {
|
|
return "incident_jira"
|
|
}
|