[MM-55028] Added OAuthOutgoingConnection store (#25221)
* OAuthOutgoingConnection model * added store * make generated * add missing license headers * fix receiver name * i18n * i18n sorting * update migrations from master * make migrations-extract * update retrylayer tests * replaced sql query with id pagination * fixed flaky tests * missing columns * missing columns on save/update * typo * improved tests * remove enum from mysql colum * add password credentials to store * renamed migrations * model change suggestions * refactor test functionsn * migration typo * refactor store table names * updated sanitize test * oauthoutgoingconnection -> outgoingoauthconnection * signature change * i18n update * granttype typo * uppercase typo * lowercase store name
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8158c0e614
Коммит
b40366dbdf
@@ -46,6 +46,7 @@ type Store interface {
|
||||
Compliance() ComplianceStore
|
||||
Session() SessionStore
|
||||
OAuth() OAuthStore
|
||||
OutgoingOAuthConnection() OutgoingOAuthConnectionStore
|
||||
System() SystemStore
|
||||
Webhook() WebhookStore
|
||||
Command() CommandStore
|
||||
@@ -577,6 +578,14 @@ type OAuthStore interface {
|
||||
RemoveAllAccessData() error
|
||||
}
|
||||
|
||||
type OutgoingOAuthConnectionStore interface {
|
||||
SaveConnection(c request.CTX, conn *model.OutgoingOAuthConnection) (*model.OutgoingOAuthConnection, error)
|
||||
UpdateConnection(c request.CTX, conn *model.OutgoingOAuthConnection) (*model.OutgoingOAuthConnection, error)
|
||||
GetConnection(c request.CTX, id string) (*model.OutgoingOAuthConnection, error)
|
||||
GetConnections(c request.CTX, filters model.OutgoingOAuthConnectionGetConnectionsFilter) ([]*model.OutgoingOAuthConnection, error)
|
||||
DeleteConnection(c request.CTX, id string) error
|
||||
}
|
||||
|
||||
type SystemStore interface {
|
||||
Save(system *model.System) error
|
||||
SaveOrUpdate(system *model.System) error
|
||||
|
||||
Ссылка в новой задаче
Block a user