INFRA-3703 : Houston side changes to accomodate QA use case (#452)

* INFRA-3703 : Houston side changes to accomodate QA use case

* INFRA-3703 : UT failure fix

* INFRA-3703 : Minor changes

* INFRA-3703 : Unique constraint

* INFRA-3703 : Edit migration file

* INFRA-3703 : PR review comments and UT's

* INFRA-3703 : Channel name resolution
This commit is contained in:
Vijay Joshi
2024-09-05 19:27:42 +05:30
committed by GitHub
parent 288a7f8457
commit 843274cf48
55 changed files with 1036 additions and 188 deletions

View File

@@ -9,7 +9,6 @@ import (
"houston/internal/resolver"
"houston/model/incident"
"houston/model/log"
"houston/model/tag"
"houston/model/team"
"houston/model/user"
"houston/pkg/rest"
@@ -17,6 +16,7 @@ import (
rcaRepository "houston/repository/rca/impl"
"houston/repository/rcaInput"
"houston/repository/severity"
"houston/repository/tag"
"houston/service/documentService"
incidentServiceV2 "houston/service/incident/impl"
"houston/service/orchestration"
@@ -72,6 +72,7 @@ func NewSlackHandler(
)
productTeamService := appcontext.GetProductTeamsService()
slashCommandProcessor := processor.NewSlashCommandProcessor(socketModeClient, slackbotClient, rcaService)
tagValueService := appcontext.GetTagValueService()
return &slackHandler{
socketModeClient: socketModeClient,
@@ -92,6 +93,7 @@ func NewSlackHandler(
productsService,
productTeamService,
orchestrator,
tagValueService,
),
viewSubmissionProcessor: processor.NewViewSubmissionProcessor(
socketModeClient,
@@ -107,12 +109,13 @@ func NewSlackHandler(
rcaService,
incidentServiceV2,
orchestrator,
tagValueService,
),
userChangeEventProcessor: processor.NewUserChangeEventProcessor(
socketModeClient, userService,
),
houstonCommandResolver: resolver.NewHoustonCommandResolver(
socketModeClient, slackbotClient, rcaService, productsService, orchestrator,
socketModeClient, slackbotClient, rcaService, productsService, orchestrator, tagValueService,
),
memberLeftChannelEventProcessor: processor.NewMemberLeftChannelCallbackEventProcessor(socketModeClient, *incidentServiceV2, appcontext.GetUserService()),
}