[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
@@ -78,6 +78,7 @@ type SqlStoreStores struct {
|
||||
compliance store.ComplianceStore
|
||||
session store.SessionStore
|
||||
oauth store.OAuthStore
|
||||
outgoingOAuthConnection store.OutgoingOAuthConnectionStore
|
||||
system store.SystemStore
|
||||
webhook store.WebhookStore
|
||||
command store.CommandStore
|
||||
@@ -199,6 +200,7 @@ func New(settings model.SqlSettings, metrics einterfaces.MetricsInterface) (*Sql
|
||||
store.stores.compliance = newSqlComplianceStore(store)
|
||||
store.stores.session = newSqlSessionStore(store)
|
||||
store.stores.oauth = newSqlOAuthStore(store)
|
||||
store.stores.outgoingOAuthConnection = newSqlOutgoingOAuthConnectionStore(store)
|
||||
store.stores.system = newSqlSystemStore(store)
|
||||
store.stores.webhook = newSqlWebhookStore(store, metrics)
|
||||
store.stores.command = newSqlCommandStore(store)
|
||||
@@ -948,6 +950,10 @@ func (ss *SqlStore) OAuth() store.OAuthStore {
|
||||
return ss.stores.oauth
|
||||
}
|
||||
|
||||
func (ss *SqlStore) OutgoingOAuthConnection() store.OutgoingOAuthConnectionStore {
|
||||
return ss.stores.outgoingOAuthConnection
|
||||
}
|
||||
|
||||
func (ss *SqlStore) System() store.SystemStore {
|
||||
return ss.stores.system
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user