server/public/ -- pre-requisite changes (#23278)
* invert depdendency: filestore -> model
* markdown: nolint:misspell
* inline jsonutils within model
* push model.GetInfoForBytes -> channels/app
* push channel/utils.CompileGo* -> plugin/utils
* push plugin/scheduler -> channels/jobs/plugins
* push utils.Copy(File|Dir) -> model
* oauthproiders/gitlab -> channels/app/oauthproviders/gitlab
* decouple plugin from einterfaces.MetricsInterface
* fix TestGetInfoForFile
* Revert "Run golangci in server CI (#23240)"
This reverts commit 349e5d4573.
* add model/utils
---------
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5c28071fb3
Коммит
f28a2bcca7
@@ -47,6 +47,7 @@ import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/jobs/last_accessible_post"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/jobs/migrations"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/jobs/notify_admin"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/jobs/plugins"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/jobs/product_notices"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/jobs/resend_invitation_email"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/product"
|
||||
@@ -70,7 +71,6 @@ import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mail"
|
||||
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
|
||||
"github.com/mattermost/mattermost-server/server/v8/platform/shared/templates"
|
||||
"github.com/mattermost/mattermost-server/server/v8/plugin/scheduler"
|
||||
)
|
||||
|
||||
// declaring this as var to allow overriding in tests
|
||||
@@ -1500,8 +1500,8 @@ func (s *Server) initJobs() {
|
||||
|
||||
s.Jobs.RegisterJobType(
|
||||
model.JobTypePlugins,
|
||||
scheduler.MakeWorker(s.Jobs, New(ServerConnector(s.Channels()))),
|
||||
scheduler.MakeScheduler(s.Jobs),
|
||||
plugins.MakeWorker(s.Jobs, New(ServerConnector(s.Channels()))),
|
||||
plugins.MakeScheduler(s.Jobs),
|
||||
)
|
||||
|
||||
s.Jobs.RegisterJobType(
|
||||
|
||||
Ссылка в новой задаче
Block a user