MM-53032: Fix module path after repo rename (#23689)

It was a good decision in hindsight to keep the public module as 0.x
because this would have been a breaking change again.

https://mattermost.atlassian.net/browse/MM-53032
```release-note
Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8.

For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public
```
Этот коммит содержится в:
Agniva De Sarker
2023-06-11 10:54:35 +05:30
коммит произвёл GitHub
родитель a6d1d38b27
Коммит efaa6264cc
1425 изменённых файлов: 3864 добавлений и 3864 удалений

Просмотреть файл

@@ -17,9 +17,9 @@ import (
"github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/store"
)
type AwsMeter struct {

Просмотреть файл

@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
)
type mockMarketplaceMeteringClient struct {

2
server/platform/services/cache/cache.go поставляемый
Просмотреть файл

@@ -7,7 +7,7 @@ import (
"errors"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// ErrKeyNotFound is the error when the given key is not found

2
server/platform/services/cache/lru.go поставляемый
Просмотреть файл

@@ -11,7 +11,7 @@ import (
"github.com/tinylib/msgp/msgp"
"github.com/vmihailenco/msgpack/v5"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// LRU is a thread-safe fixed size LRU cache.

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"github.com/cespare/xxhash/v2"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// LRUStriped keeps LRU caches in buckets in order to lower mutex contention.

Просмотреть файл

@@ -11,7 +11,7 @@ import (
"github.com/cespare/xxhash/v2"
"github.com/mattermost/mattermost-server/server/v8/platform/services/cache"
"github.com/mattermost/mattermost/server/v8/platform/services/cache"
)
const (

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func makeLRUPredictableTestData(num int) [][2]string {

2
server/platform/services/cache/lru_test.go поставляемый
Просмотреть файл

@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func TestLRU(t *testing.T) {

Просмотреть файл

@@ -5,7 +5,7 @@ package mocks
import (
mock "github.com/stretchr/testify/mock"
cache "github.com/mattermost/mattermost-server/server/v8/platform/services/cache"
cache "github.com/mattermost/mattermost/server/v8/platform/services/cache"
)
// Provider is an autogenerated mock type for the Provider type

2
server/platform/services/cache/provider.go поставляемый
Просмотреть файл

@@ -6,7 +6,7 @@ package cache
import (
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// CacheOptions contains options for initializing a cache

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func TestNewCache(t *testing.T) {

Просмотреть файл

@@ -4,7 +4,7 @@
package configservice
import (
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// An interface representing something that contains a Config, such as the app.App struct

Просмотреть файл

@@ -6,7 +6,7 @@ package docextractor
import (
"io"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
type combineExtractor struct {

Просмотреть файл

@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost/server/v8/channels/utils/testutils"
)
func TestExtract(t *testing.T) {

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost/server/v8/channels/utils/testutils"
)
func TestPdfEmptyFile(t *testing.T) {

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"time"
"unicode"
"github.com/mattermost/mattermost-server/server/v8/platform/services/configservice"
"github.com/mattermost/mattermost/server/v8/platform/services/configservice"
)
// HTTPService wraps the functionality for making http requests to provide some improvements to the default client

Просмотреть файл

@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
)
func makeTestAtmosCamoProxy() *ImageProxy {

Просмотреть файл

@@ -11,10 +11,10 @@ import (
"strings"
"sync"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/services/configservice"
"github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/platform/services/configservice"
"github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
)
var ErrNotEnabled = Error{errors.New("imageproxy.ImageProxy: image proxy not enabled")}

Просмотреть файл

@@ -19,7 +19,7 @@ import (
"strings"
"time"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
var imageContentTypes = []string{

Просмотреть файл

@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
)
func makeTestLocalProxy() *ImageProxy {

Просмотреть файл

@@ -12,8 +12,8 @@ import (
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
)
// Client is the programmatic interface to the marketplace server API.

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"errors"
"fmt"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// AcceptInvitation is called when accepting an invitation to connect with a remote cluster.

Просмотреть файл

@@ -6,12 +6,12 @@ package remotecluster
import (
"context"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost-server/server/v8/einterfaces"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/store"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/v8/einterfaces"
)
type mockServer struct {

Просмотреть файл

@@ -8,8 +8,8 @@ import (
"fmt"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
// pingLoop periodically sends a ping to all remote clusters.

Просмотреть файл

@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
const (

Просмотреть файл

@@ -6,8 +6,8 @@ package remotecluster
import (
"fmt"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
// ReceiveIncomingMsg is called by the Rest API layer, or websocket layer (future), when a Remote Cluster

Просмотреть файл

@@ -18,7 +18,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
const (

Просмотреть файл

@@ -13,9 +13,9 @@ import (
"path"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/filestore"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/platform/shared/filestore"
)
type SendFileResultFunc func(us *model.UploadSession, rc *model.RemoteCluster, resp *Response, err error)

Просмотреть файл

@@ -17,8 +17,8 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
type SendMsgResultFunc func(msg model.RemoteClusterMsg, rc *model.RemoteCluster, resp *Response, err error)

Просмотреть файл

@@ -14,8 +14,8 @@ import (
"path"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
type SendProfileImageResultFunc func(userId string, rc *model.RemoteCluster, resp *Response, err error)

Просмотреть файл

@@ -18,7 +18,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
const (

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"sync"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
"github.com/mattermost/mattermost-server/server/v8/einterfaces"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/store"
"github.com/mattermost/mattermost/server/v8/einterfaces"
)
const (

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func TestService_AddTopicListener(t *testing.T) {

Просмотреть файл

@@ -17,8 +17,8 @@ import (
"github.com/blevesearch/bleve/v2/analysis/analyzer/standard"
"github.com/blevesearch/bleve/v2/mapping"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
const (

Просмотреть файл

@@ -11,13 +11,13 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/store/searchlayer"
"github.com/mattermost/mattermost-server/server/v8/channels/store/searchtest"
"github.com/mattermost/mattermost-server/server/v8/channels/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest"
"github.com/mattermost/mattermost-server/server/v8/channels/testlib"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/store/searchlayer"
"github.com/mattermost/mattermost/server/v8/channels/store/searchtest"
"github.com/mattermost/mattermost/server/v8/channels/store/sqlstore"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest"
"github.com/mattermost/mattermost/server/v8/channels/testlib"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine"
)
type BleveEngineTestSuite struct {

Просмотреть файл

@@ -6,8 +6,8 @@ package bleveengine
import (
"strings"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine"
)
type BLVChannel struct {

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"sync/atomic"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/jobs"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine/bleveengine"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/jobs"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine/bleveengine"
)
const (

Просмотреть файл

@@ -10,11 +10,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/jobs"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine/bleveengine"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/jobs"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest"
"github.com/mattermost/mattermost/server/v8/channels/utils/testutils"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine/bleveengine"
)
func TestBleveIndexer(t *testing.T) {

Просмотреть файл

@@ -10,8 +10,8 @@ import (
"github.com/blevesearch/bleve/v2"
"github.com/blevesearch/bleve/v2/search/query"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
const DeletePostsBatchSize = 500

Просмотреть файл

@@ -6,7 +6,7 @@ package bleveengine
import (
"fmt"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func createPost(userId string, channelId string) *model.Post {

Просмотреть файл

@@ -6,7 +6,7 @@ package searchengine
import (
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
type SearchEngineInterface interface {

Просмотреть файл

@@ -5,7 +5,7 @@
package mocks
import (
model "github.com/mattermost/mattermost-server/server/public/model"
model "github.com/mattermost/mattermost/server/public/model"
mock "github.com/stretchr/testify/mock"
time "time"

Просмотреть файл

@@ -4,7 +4,7 @@
package searchengine
import (
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func NewBroker(cfg *model.Config) *Broker {

Просмотреть файл

@@ -6,8 +6,8 @@ package searchengine
import (
"testing"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine/mocks"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine/mocks"
"github.com/stretchr/testify/assert"
)

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"regexp"
"strings"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost/server/v8/channels/utils"
)
var EmailRegex = regexp.MustCompile(`^[^\s"]+@[^\s"]+$`)

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"fmt"
"sync"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
)
// postsToAttachments returns the file attachments for a slice of posts that need to be synchronized.

Просмотреть файл

@@ -9,10 +9,10 @@ import (
"fmt"
"strings"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
)
// channelInviteMsg represents an invitation for a remote cluster to start sharing a channel.

Просмотреть файл

@@ -13,10 +13,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
)
func TestOnReceiveChannelInvite(t *testing.T) {

Просмотреть файл

@@ -5,12 +5,12 @@
package sharedchannel
import (
filestore "github.com/mattermost/mattermost-server/server/v8/platform/shared/filestore"
filestore "github.com/mattermost/mattermost/server/v8/platform/shared/filestore"
mock "github.com/stretchr/testify/mock"
model "github.com/mattermost/mattermost-server/server/public/model"
model "github.com/mattermost/mattermost/server/public/model"
request "github.com/mattermost/mattermost-server/server/v8/channels/app/request"
request "github.com/mattermost/mattermost/server/v8/channels/app/request"
)
// MockAppIface is an autogenerated mock type for the AppIface type

Просмотреть файл

@@ -5,14 +5,14 @@
package sharedchannel
import (
mlog "github.com/mattermost/mattermost-server/server/public/shared/mlog"
mlog "github.com/mattermost/mattermost/server/public/shared/mlog"
mock "github.com/stretchr/testify/mock"
model "github.com/mattermost/mattermost-server/server/public/model"
model "github.com/mattermost/mattermost/server/public/model"
remotecluster "github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
remotecluster "github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
store "github.com/mattermost/mattermost-server/server/v8/channels/store"
store "github.com/mattermost/mattermost/server/v8/channels/store"
)
// MockServerIface is an autogenerated mock type for the ServerIface type

Просмотреть файл

@@ -6,7 +6,7 @@ package sharedchannel
import (
"encoding/json"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// syncMsg represents a change in content (post add/edit/delete, reaction add/remove, users).

Просмотреть файл

@@ -9,9 +9,9 @@ import (
"regexp"
"strings"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/i18n"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
var (

Просмотреть файл

@@ -10,11 +10,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/v8/channels/utils"
)
func TestProcessPermalinkToRemote(t *testing.T) {

Просмотреть файл

@@ -10,12 +10,12 @@ import (
"sync"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
"github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/filestore"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/store"
"github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost/server/v8/platform/shared/filestore"
)
const (

Просмотреть файл

@@ -11,10 +11,10 @@ import (
"strconv"
"strings"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
)
func (scs *Service) onReceiveSyncMessage(msg model.RemoteClusterMsg, rc *model.RemoteCluster, response *remotecluster.Response) error {

Просмотреть файл

@@ -8,11 +8,11 @@ import (
"fmt"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/i18n"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
)
type syncTask struct {

Просмотреть файл

@@ -11,10 +11,10 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/platform/services/remotecluster"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/platform/services/remotecluster"
)
type sendSyncMsgResultFunc func(syncResp SyncResponse, err error)

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// fixMention replaces any mentions in a post for the user with the user's real username.

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
func slackConvertTimeStamp(ts string) int64 {

Просмотреть файл

@@ -7,8 +7,8 @@ import (
"encoding/json"
"io"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
func slackParseChannels(data io.Reader, channelType model.ChannelType) ([]slackChannel, error) {

Просмотреть файл

@@ -18,12 +18,12 @@ import (
"time"
"unicode/utf8"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/i18n"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/store"
"github.com/mattermost/mattermost/server/v8/channels/utils"
)
type slackChannel struct {

Просмотреть файл

@@ -12,10 +12,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
)
func TestSlackConvertTimeStamp(t *testing.T) {

Просмотреть файл

@@ -7,14 +7,14 @@ package mocks
import (
context "context"
httpservice "github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
httpservice "github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
mock "github.com/stretchr/testify/mock"
model "github.com/mattermost/mattermost-server/server/public/model"
model "github.com/mattermost/mattermost/server/public/model"
plugin "github.com/mattermost/mattermost-server/server/public/plugin"
plugin "github.com/mattermost/mattermost/server/public/plugin"
product "github.com/mattermost/mattermost-server/server/v8/channels/product"
product "github.com/mattermost/mattermost/server/v8/channels/product"
)
// ServerIface is an autogenerated mock type for the ServerIface type

Просмотреть файл

@@ -14,15 +14,15 @@ import (
rudder "github.com/rudderlabs/analytics-go"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/product"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost-server/server/v8/platform/services/marketplace"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/product"
"github.com/mattermost/mattermost/server/v8/channels/store"
"github.com/mattermost/mattermost/server/v8/channels/utils"
"github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost/server/v8/platform/services/marketplace"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine"
)
const (

Просмотреть файл

@@ -20,16 +20,16 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost-server/server/public/plugin/plugintest"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/product"
storeMocks "github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost-server/server/v8/config"
"github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost-server/server/v8/platform/services/searchengine"
"github.com/mattermost/mattermost-server/server/v8/platform/services/telemetry/mocks"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin/plugintest"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/product"
storeMocks "github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/v8/config"
"github.com/mattermost/mattermost/server/v8/platform/services/httpservice"
"github.com/mattermost/mattermost/server/v8/platform/services/searchengine"
"github.com/mattermost/mattermost/server/v8/platform/services/telemetry/mocks"
)
type FakeConfigService struct {

Просмотреть файл

@@ -14,7 +14,7 @@ import (
"github.com/uber/jaeger-client-go/zipkin"
"github.com/uber/jaeger-lib/metrics"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
// Tracer is a wrapper around Jaeger OpenTracing client, used to properly de-initialize jaeger on exit

Просмотреть файл

@@ -24,8 +24,8 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/openpgp" //nolint:staticcheck
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
//go:embed pubkey.gpg

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func TestCanIUpgradeToE0(t *testing.T) {

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"context"
"database/sql/driver"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
// Conn is a DB driver conn implementation

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"context"
"database/sql/driver"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
var (

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"context"
"database/sql/driver"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
type wrapperTx struct {

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"io"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
"github.com/pkg/errors"
)

Просмотреть файл

@@ -18,7 +18,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/xtgo/uuid"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
func randomString() string {

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
const (

Просмотреть файл

@@ -7,7 +7,7 @@ package mocks
import (
io "io"
filestore "github.com/mattermost/mattermost-server/server/v8/platform/shared/filestore"
filestore "github.com/mattermost/mattermost/server/v8/platform/shared/filestore"
mock "github.com/stretchr/testify/mock"

Просмотреть файл

@@ -19,7 +19,7 @@ import (
"github.com/minio/minio-go/v7/pkg/encrypt"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
// S3FileBackend contains all necessary information to communicate with

Просмотреть файл

@@ -18,7 +18,7 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
s3 "github.com/minio/minio-go/v7"
"github.com/stretchr/testify/require"
)

Просмотреть файл

@@ -18,8 +18,8 @@ import (
"github.com/pkg/errors"
gomail "gopkg.in/mail.v2"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
const (

Просмотреть файл

@@ -15,8 +15,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
)
func TestGenerateSecret(t *testing.T) {

Просмотреть файл

@@ -13,7 +13,7 @@ import (
"github.com/fsnotify/fsnotify"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/fileutils"
"github.com/mattermost/mattermost/server/v8/channels/utils/fileutils"
)
// Container represents a set of templates that can be render