INFRA-3012 : Houston topic changes according to new construct (#415)

* INFRA-3012 : Houston title changes according to new construct

* INFRA-3012 : add titkle change for resolve and duplicate case

* INFRA-3012 : Failing tests fix

* INFRA-3012 : Added migration script for backfilling
This commit is contained in:
Vijay Joshi
2024-04-26 14:52:12 +05:30
committed by GitHub
parent bd5e479e0f
commit 29f0c7bacc
12 changed files with 290 additions and 74 deletions

View File

@@ -309,7 +309,7 @@ func (r *Repository) GetOpenIncidents(limit int) (*[]IncidentSeverityTeamDTO, er
func (r *Repository) FindIncidentByChannelId(channelId string) (*IncidentEntity, error) {
var incidentEntity IncidentEntity
result := r.gormClient.Preload("Products").Find(&incidentEntity, "slack_channel = ?", channelId)
result := r.gormClient.Preload("Products").Preload("ReportingTeam").Find(&incidentEntity, "slack_channel = ?", channelId)
if result.Error != nil {
return nil, result.Error
}
@@ -324,7 +324,7 @@ func (r *Repository) FindIncidentByChannelId(channelId string) (*IncidentEntity,
func (r *Repository) FindIncidentById(Id uint) (*IncidentEntity, error) {
var incidentEntity IncidentEntity
result := r.gormClient.Preload("Products").Find(&incidentEntity, "id = ?", Id)
result := r.gormClient.Preload("Products").Preload("ReportingTeam").Find(&incidentEntity, "id = ?", Id)
if result.Error != nil {
return nil, result.Error
}