https://mattermost.atlassian.net/browse/MM-52079

```release-note
We upgrade the module version to 8.0. The new module path is github.com/mattermost-server/server/v8.
```


Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Этот коммит содержится в:
Agniva De Sarker
2023-04-18 11:05:28 +05:30
коммит произвёл GitHub
родитель 831ea38f7e
Коммит b200a07881
1534 изменённых файлов: 3778 добавлений и 3853 удалений

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

@@ -4,7 +4,7 @@
package audit
import (
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -3,7 +3,7 @@
package audit
import "github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
import "github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
// Meta represents metadata that can be added to a audit record as name/value pairs.
type Meta struct {

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

@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
// Service prometheus to run the server.

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

@@ -4,9 +4,9 @@
package notifylogger
import (
"github.com/mattermost/mattermost-server/v6/server/boards/services/notify"
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
package notifymentions
import "github.com/mattermost/mattermost-server/v6/server/boards/model"
import "github.com/mattermost/mattermost-server/server/v8/boards/model"
type AppAPI interface {
GetMemberForBoard(boardID, userID string) (*model.BoardMember, error)

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

@@ -4,9 +4,9 @@
package notifymentions
import (
"github.com/mattermost/mattermost-server/v6/server/boards/services/notify"
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
// MentionDelivery provides an interface for delivering @mention notifications to other systems, such as

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

@@ -7,9 +7,9 @@ import (
"regexp"
"strings"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
var atMentionRegexp = regexp.MustCompile(`\B@[[:alnum:]][[:alnum:]\.\-_:]*`)

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

@@ -10,11 +10,11 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/notify"
"github.com/mattermost/mattermost-server/v6/server/boards/services/permissions"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -7,9 +7,9 @@ import (
"reflect"
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
func Test_extractMentions(t *testing.T) {

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

@@ -6,7 +6,7 @@ package notifysubscriptions
import (
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
type AppAPI interface {

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

@@ -4,9 +4,9 @@
package notifysubscriptions
import (
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
// SubscriptionDelivery provides an interface for delivering subscription notifications to other systems, such as

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

@@ -7,9 +7,9 @@ import (
"fmt"
"sort"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
// Diff represents a difference between two versions of a block.

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

@@ -8,7 +8,7 @@ import (
"github.com/sergi/go-diff/diffmatchpatch"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func generateMarkdownDiff(oldText string, newText string, logger mlog.LoggerIFace) string {

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

@@ -13,10 +13,10 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -11,11 +11,11 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/permissions"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -11,11 +11,11 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/notify"
"github.com/mattermost/mattermost-server/v6/server/boards/services/permissions"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -6,7 +6,7 @@ package notifysubscriptions
import (
"strings"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
func getBoardDescription(board *model.Block) string {

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

@@ -6,10 +6,10 @@ package plugindelivery
import (
"fmt"
"github.com/mattermost/mattermost-server/v6/server/boards/services/notify"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
// MentionDeliver notifies a user they have been mentioned in a blockv ia the plugin API.

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

@@ -6,7 +6,7 @@ package plugindelivery
import (
"fmt"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
const (

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

@@ -4,7 +4,7 @@
package plugindelivery
import (
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
type servicesAPI interface {

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

@@ -7,9 +7,9 @@ import (
"errors"
"fmt"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
var (

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

@@ -6,9 +6,9 @@ package plugindelivery
import (
"strings"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
const (

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

@@ -7,9 +7,9 @@ import (
"reflect"
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
var (

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

@@ -8,9 +8,9 @@ import (
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
type Action string

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

@@ -6,11 +6,11 @@ package localpermissions
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
permissionsMocks "github.com/mattermost/mattermost-server/v6/server/boards/services/permissions/mocks"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
permissionsMocks "github.com/mattermost/mattermost-server/server/v8/boards/services/permissions/mocks"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"

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

@@ -4,11 +4,11 @@
package localpermissions
import (
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/permissions"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
type Service struct {

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

@@ -7,9 +7,9 @@ import (
"database/sql"
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/stretchr/testify/assert"
)

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

@@ -6,12 +6,12 @@ package mmpermissions
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
mmpermissionsMocks "github.com/mattermost/mattermost-server/v6/server/boards/services/permissions/mmpermissions/mocks"
permissionsMocks "github.com/mattermost/mattermost-server/v6/server/boards/services/permissions/mocks"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mmpermissionsMocks "github.com/mattermost/mattermost-server/server/v8/boards/services/permissions/mmpermissions/mocks"
permissionsMocks "github.com/mattermost/mattermost-server/server/v8/boards/services/permissions/mocks"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"

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

@@ -4,11 +4,11 @@
package mmpermissions
import (
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/permissions"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
type APIInterface interface {

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

@@ -1,16 +1,16 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
//go:generate mockgen -copyright_file=../../../../copyright.txt -destination=mocks/mockpluginapi.go -package mocks github.com/mattermost/mattermost-server/v6/plugin API
//go:generate mockgen -copyright_file=../../../../copyright.txt -destination=mocks/mockpluginapi.go -package mocks github.com/mattermost/mattermost-server/server/v8/plugin API
package mmpermissions
import (
"database/sql"
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/stretchr/testify/assert"
)

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

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mattermost/mattermost-server/v6/plugin (interfaces: API)
// Source: github.com/mattermost/mattermost-server/server/v8/plugin (interfaces: API)
// Package mocks is a generated GoMock package.
package mocks
@@ -13,7 +13,7 @@ import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
model "github.com/mattermost/mattermost-server/v6/model"
model "github.com/mattermost/mattermost-server/server/v8/model"
)
// MockAPI is a mock of API interface.

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

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mattermost/mattermost-server/v6/server/boards/services/permissions (interfaces: Store)
// Source: github.com/mattermost/mattermost-server/server/v8/boards/services/permissions (interfaces: Store)
// Package mocks is a generated GoMock package.
package mocks
@@ -11,7 +11,7 @@ import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
model "github.com/mattermost/mattermost-server/v6/server/boards/model"
model "github.com/mattermost/mattermost-server/server/v8/boards/model"
)
// MockStore is a mock of Store interface.

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

@@ -6,9 +6,9 @@
package permissions
import (
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
type PermissionsService interface {

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

@@ -16,10 +16,10 @@ import (
"context"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
{{range $index, $element := .Methods}}

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

@@ -11,15 +11,15 @@ import (
"net/http"
"strings"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
var boardsBotID string

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

@@ -9,9 +9,9 @@ import (
"github.com/golang/mock/gomock"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
mockservicesapi "github.com/mattermost/mattermost-server/v6/server/boards/model/mocks"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mockservicesapi "github.com/mattermost/mattermost-server/server/v8/boards/model/mocks"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
"github.com/stretchr/testify/require"
)

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

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mattermost/mattermost-server/v6/server/boards/services/store (interfaces: Store)
// Source: github.com/mattermost/mattermost-server/server/v8/boards/services/store (interfaces: Store)
// Package mockstore is a generated GoMock package.
package mockstore
@@ -12,8 +12,8 @@ import (
time "time"
gomock "github.com/golang/mock/gomock"
model "github.com/mattermost/mattermost-server/v6/model"
model0 "github.com/mattermost/mattermost-server/v6/server/boards/model"
model "github.com/mattermost/mattermost-server/server/v8/boards/model"
model0 "github.com/mattermost/mattermost-server/server/v8/model"
)
// MockStore is a mock of Store interface.
@@ -83,10 +83,10 @@ func (mr *MockStoreMockRecorder) CleanUpSessions(arg0 interface{}) *gomock.Call
}
// CreateBoardsAndBlocks mocks base method.
func (m *MockStore) CreateBoardsAndBlocks(arg0 *model0.BoardsAndBlocks, arg1 string) (*model0.BoardsAndBlocks, error) {
func (m *MockStore) CreateBoardsAndBlocks(arg0 *model.BoardsAndBlocks, arg1 string) (*model.BoardsAndBlocks, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateBoardsAndBlocks", arg0, arg1)
ret0, _ := ret[0].(*model0.BoardsAndBlocks)
ret0, _ := ret[0].(*model.BoardsAndBlocks)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -98,11 +98,11 @@ func (mr *MockStoreMockRecorder) CreateBoardsAndBlocks(arg0, arg1 interface{}) *
}
// CreateBoardsAndBlocksWithAdmin mocks base method.
func (m *MockStore) CreateBoardsAndBlocksWithAdmin(arg0 *model0.BoardsAndBlocks, arg1 string) (*model0.BoardsAndBlocks, []*model0.BoardMember, error) {
func (m *MockStore) CreateBoardsAndBlocksWithAdmin(arg0 *model.BoardsAndBlocks, arg1 string) (*model.BoardsAndBlocks, []*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateBoardsAndBlocksWithAdmin", arg0, arg1)
ret0, _ := ret[0].(*model0.BoardsAndBlocks)
ret1, _ := ret[1].([]*model0.BoardMember)
ret0, _ := ret[0].(*model.BoardsAndBlocks)
ret1, _ := ret[1].([]*model.BoardMember)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
@@ -114,7 +114,7 @@ func (mr *MockStoreMockRecorder) CreateBoardsAndBlocksWithAdmin(arg0, arg1 inter
}
// CreateCategory mocks base method.
func (m *MockStore) CreateCategory(arg0 model0.Category) error {
func (m *MockStore) CreateCategory(arg0 model.Category) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateCategory", arg0)
ret0, _ := ret[0].(error)
@@ -128,7 +128,7 @@ func (mr *MockStoreMockRecorder) CreateCategory(arg0 interface{}) *gomock.Call {
}
// CreateSession mocks base method.
func (m *MockStore) CreateSession(arg0 *model0.Session) error {
func (m *MockStore) CreateSession(arg0 *model.Session) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateSession", arg0)
ret0, _ := ret[0].(error)
@@ -142,10 +142,10 @@ func (mr *MockStoreMockRecorder) CreateSession(arg0 interface{}) *gomock.Call {
}
// CreateSubscription mocks base method.
func (m *MockStore) CreateSubscription(arg0 *model0.Subscription) (*model0.Subscription, error) {
func (m *MockStore) CreateSubscription(arg0 *model.Subscription) (*model.Subscription, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateSubscription", arg0)
ret0, _ := ret[0].(*model0.Subscription)
ret0, _ := ret[0].(*model.Subscription)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -157,10 +157,10 @@ func (mr *MockStoreMockRecorder) CreateSubscription(arg0 interface{}) *gomock.Ca
}
// CreateUser mocks base method.
func (m *MockStore) CreateUser(arg0 *model0.User) (*model0.User, error) {
func (m *MockStore) CreateUser(arg0 *model.User) (*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateUser", arg0)
ret0, _ := ret[0].(*model0.User)
ret0, _ := ret[0].(*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -256,7 +256,7 @@ func (mr *MockStoreMockRecorder) DeleteBoardRecord(arg0, arg1 interface{}) *gomo
}
// DeleteBoardsAndBlocks mocks base method.
func (m *MockStore) DeleteBoardsAndBlocks(arg0 *model0.DeleteBoardsAndBlocks, arg1 string) error {
func (m *MockStore) DeleteBoardsAndBlocks(arg0 *model.DeleteBoardsAndBlocks, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBoardsAndBlocks", arg0, arg1)
ret0, _ := ret[0].(error)
@@ -354,10 +354,10 @@ func (mr *MockStoreMockRecorder) DropAllTables() *gomock.Call {
}
// DuplicateBlock mocks base method.
func (m *MockStore) DuplicateBlock(arg0, arg1, arg2 string, arg3 bool) ([]*model0.Block, error) {
func (m *MockStore) DuplicateBlock(arg0, arg1, arg2 string, arg3 bool) ([]*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DuplicateBlock", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -369,11 +369,11 @@ func (mr *MockStoreMockRecorder) DuplicateBlock(arg0, arg1, arg2, arg3 interface
}
// DuplicateBoard mocks base method.
func (m *MockStore) DuplicateBoard(arg0, arg1, arg2 string, arg3 bool) (*model0.BoardsAndBlocks, []*model0.BoardMember, error) {
func (m *MockStore) DuplicateBoard(arg0, arg1, arg2 string, arg3 bool) (*model.BoardsAndBlocks, []*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DuplicateBoard", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(*model0.BoardsAndBlocks)
ret1, _ := ret[1].([]*model0.BoardMember)
ret0, _ := ret[0].(*model.BoardsAndBlocks)
ret1, _ := ret[1].([]*model.BoardMember)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
@@ -400,10 +400,10 @@ func (mr *MockStoreMockRecorder) GetActiveUserCount(arg0 interface{}) *gomock.Ca
}
// GetAllTeams mocks base method.
func (m *MockStore) GetAllTeams() ([]*model0.Team, error) {
func (m *MockStore) GetAllTeams() ([]*model.Team, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAllTeams")
ret0, _ := ret[0].([]*model0.Team)
ret0, _ := ret[0].([]*model.Team)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -415,10 +415,10 @@ func (mr *MockStoreMockRecorder) GetAllTeams() *gomock.Call {
}
// GetBlock mocks base method.
func (m *MockStore) GetBlock(arg0 string) (*model0.Block, error) {
func (m *MockStore) GetBlock(arg0 string) (*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlock", arg0)
ret0, _ := ret[0].(*model0.Block)
ret0, _ := ret[0].(*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -445,10 +445,10 @@ func (mr *MockStoreMockRecorder) GetBlockCountsByType() *gomock.Call {
}
// GetBlockHistory mocks base method.
func (m *MockStore) GetBlockHistory(arg0 string, arg1 model0.QueryBlockHistoryOptions) ([]*model0.Block, error) {
func (m *MockStore) GetBlockHistory(arg0 string, arg1 model.QueryBlockHistoryOptions) ([]*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockHistory", arg0, arg1)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -460,10 +460,10 @@ func (mr *MockStoreMockRecorder) GetBlockHistory(arg0, arg1 interface{}) *gomock
}
// GetBlockHistoryDescendants mocks base method.
func (m *MockStore) GetBlockHistoryDescendants(arg0 string, arg1 model0.QueryBlockHistoryOptions) ([]*model0.Block, error) {
func (m *MockStore) GetBlockHistoryDescendants(arg0 string, arg1 model.QueryBlockHistoryOptions) ([]*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockHistoryDescendants", arg0, arg1)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -475,10 +475,10 @@ func (mr *MockStoreMockRecorder) GetBlockHistoryDescendants(arg0, arg1 interface
}
// GetBlockHistoryNewestChildren mocks base method.
func (m *MockStore) GetBlockHistoryNewestChildren(arg0 string, arg1 model0.QueryBlockHistoryChildOptions) ([]*model0.Block, bool, error) {
func (m *MockStore) GetBlockHistoryNewestChildren(arg0 string, arg1 model.QueryBlockHistoryChildOptions) ([]*model.Block, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockHistoryNewestChildren", arg0, arg1)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
@@ -491,10 +491,10 @@ func (mr *MockStoreMockRecorder) GetBlockHistoryNewestChildren(arg0, arg1 interf
}
// GetBlocks mocks base method.
func (m *MockStore) GetBlocks(arg0 model0.QueryBlocksOptions) ([]*model0.Block, error) {
func (m *MockStore) GetBlocks(arg0 model.QueryBlocksOptions) ([]*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlocks", arg0)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -506,10 +506,10 @@ func (mr *MockStoreMockRecorder) GetBlocks(arg0 interface{}) *gomock.Call {
}
// GetBlocksByIDs mocks base method.
func (m *MockStore) GetBlocksByIDs(arg0 []string) ([]*model0.Block, error) {
func (m *MockStore) GetBlocksByIDs(arg0 []string) ([]*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlocksByIDs", arg0)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -521,10 +521,10 @@ func (mr *MockStoreMockRecorder) GetBlocksByIDs(arg0 interface{}) *gomock.Call {
}
// GetBlocksComplianceHistory mocks base method.
func (m *MockStore) GetBlocksComplianceHistory(arg0 model0.QueryBlocksComplianceHistoryOptions) ([]*model0.BlockHistory, bool, error) {
func (m *MockStore) GetBlocksComplianceHistory(arg0 model.QueryBlocksComplianceHistoryOptions) ([]*model.BlockHistory, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlocksComplianceHistory", arg0)
ret0, _ := ret[0].([]*model0.BlockHistory)
ret0, _ := ret[0].([]*model.BlockHistory)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
@@ -537,10 +537,10 @@ func (mr *MockStoreMockRecorder) GetBlocksComplianceHistory(arg0 interface{}) *g
}
// GetBoard mocks base method.
func (m *MockStore) GetBoard(arg0 string) (*model0.Board, error) {
func (m *MockStore) GetBoard(arg0 string) (*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoard", arg0)
ret0, _ := ret[0].(*model0.Board)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -552,11 +552,11 @@ func (mr *MockStoreMockRecorder) GetBoard(arg0 interface{}) *gomock.Call {
}
// GetBoardAndCard mocks base method.
func (m *MockStore) GetBoardAndCard(arg0 *model0.Block) (*model0.Board, *model0.Block, error) {
func (m *MockStore) GetBoardAndCard(arg0 *model.Block) (*model.Board, *model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardAndCard", arg0)
ret0, _ := ret[0].(*model0.Board)
ret1, _ := ret[1].(*model0.Block)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(*model.Block)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
@@ -568,11 +568,11 @@ func (mr *MockStoreMockRecorder) GetBoardAndCard(arg0 interface{}) *gomock.Call
}
// GetBoardAndCardByID mocks base method.
func (m *MockStore) GetBoardAndCardByID(arg0 string) (*model0.Board, *model0.Block, error) {
func (m *MockStore) GetBoardAndCardByID(arg0 string) (*model.Board, *model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardAndCardByID", arg0)
ret0, _ := ret[0].(*model0.Board)
ret1, _ := ret[1].(*model0.Block)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(*model.Block)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
@@ -599,10 +599,10 @@ func (mr *MockStoreMockRecorder) GetBoardCount() *gomock.Call {
}
// GetBoardHistory mocks base method.
func (m *MockStore) GetBoardHistory(arg0 string, arg1 model0.QueryBoardHistoryOptions) ([]*model0.Board, error) {
func (m *MockStore) GetBoardHistory(arg0 string, arg1 model.QueryBoardHistoryOptions) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardHistory", arg0, arg1)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -614,10 +614,10 @@ func (mr *MockStoreMockRecorder) GetBoardHistory(arg0, arg1 interface{}) *gomock
}
// GetBoardMemberHistory mocks base method.
func (m *MockStore) GetBoardMemberHistory(arg0, arg1 string, arg2 uint64) ([]*model0.BoardMemberHistoryEntry, error) {
func (m *MockStore) GetBoardMemberHistory(arg0, arg1 string, arg2 uint64) ([]*model.BoardMemberHistoryEntry, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardMemberHistory", arg0, arg1, arg2)
ret0, _ := ret[0].([]*model0.BoardMemberHistoryEntry)
ret0, _ := ret[0].([]*model.BoardMemberHistoryEntry)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -629,10 +629,10 @@ func (mr *MockStoreMockRecorder) GetBoardMemberHistory(arg0, arg1, arg2 interfac
}
// GetBoardsComplianceHistory mocks base method.
func (m *MockStore) GetBoardsComplianceHistory(arg0 model0.QueryBoardsComplianceHistoryOptions) ([]*model0.BoardHistory, bool, error) {
func (m *MockStore) GetBoardsComplianceHistory(arg0 model.QueryBoardsComplianceHistoryOptions) ([]*model.BoardHistory, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardsComplianceHistory", arg0)
ret0, _ := ret[0].([]*model0.BoardHistory)
ret0, _ := ret[0].([]*model.BoardHistory)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
@@ -645,10 +645,10 @@ func (mr *MockStoreMockRecorder) GetBoardsComplianceHistory(arg0 interface{}) *g
}
// GetBoardsForCompliance mocks base method.
func (m *MockStore) GetBoardsForCompliance(arg0 model0.QueryBoardsForComplianceOptions) ([]*model0.Board, bool, error) {
func (m *MockStore) GetBoardsForCompliance(arg0 model.QueryBoardsForComplianceOptions) ([]*model.Board, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardsForCompliance", arg0)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
@@ -661,10 +661,10 @@ func (mr *MockStoreMockRecorder) GetBoardsForCompliance(arg0 interface{}) *gomoc
}
// GetBoardsForUserAndTeam mocks base method.
func (m *MockStore) GetBoardsForUserAndTeam(arg0, arg1 string, arg2 bool) ([]*model0.Board, error) {
func (m *MockStore) GetBoardsForUserAndTeam(arg0, arg1 string, arg2 bool) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardsForUserAndTeam", arg0, arg1, arg2)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -676,10 +676,10 @@ func (mr *MockStoreMockRecorder) GetBoardsForUserAndTeam(arg0, arg1, arg2 interf
}
// GetBoardsInTeamByIds mocks base method.
func (m *MockStore) GetBoardsInTeamByIds(arg0 []string, arg1 string) ([]*model0.Board, error) {
func (m *MockStore) GetBoardsInTeamByIds(arg0 []string, arg1 string) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardsInTeamByIds", arg0, arg1)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -706,10 +706,10 @@ func (mr *MockStoreMockRecorder) GetCardLimitTimestamp() *gomock.Call {
}
// GetCategory mocks base method.
func (m *MockStore) GetCategory(arg0 string) (*model0.Category, error) {
func (m *MockStore) GetCategory(arg0 string) (*model.Category, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCategory", arg0)
ret0, _ := ret[0].(*model0.Category)
ret0, _ := ret[0].(*model.Category)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -721,10 +721,10 @@ func (mr *MockStoreMockRecorder) GetCategory(arg0 interface{}) *gomock.Call {
}
// GetChannel mocks base method.
func (m *MockStore) GetChannel(arg0, arg1 string) (*model.Channel, error) {
func (m *MockStore) GetChannel(arg0, arg1 string) (*model0.Channel, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChannel", arg0, arg1)
ret0, _ := ret[0].(*model.Channel)
ret0, _ := ret[0].(*model0.Channel)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -736,10 +736,10 @@ func (mr *MockStoreMockRecorder) GetChannel(arg0, arg1 interface{}) *gomock.Call
}
// GetCloudLimits mocks base method.
func (m *MockStore) GetCloudLimits() (*model.ProductLimits, error) {
func (m *MockStore) GetCloudLimits() (*model0.ProductLimits, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCloudLimits")
ret0, _ := ret[0].(*model.ProductLimits)
ret0, _ := ret[0].(*model0.ProductLimits)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -751,10 +751,10 @@ func (mr *MockStoreMockRecorder) GetCloudLimits() *gomock.Call {
}
// GetFileInfo mocks base method.
func (m *MockStore) GetFileInfo(arg0 string) (*model.FileInfo, error) {
func (m *MockStore) GetFileInfo(arg0 string) (*model0.FileInfo, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetFileInfo", arg0)
ret0, _ := ret[0].(*model.FileInfo)
ret0, _ := ret[0].(*model0.FileInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -766,10 +766,10 @@ func (mr *MockStoreMockRecorder) GetFileInfo(arg0 interface{}) *gomock.Call {
}
// GetLicense mocks base method.
func (m *MockStore) GetLicense() *model.License {
func (m *MockStore) GetLicense() *model0.License {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLicense")
ret0, _ := ret[0].(*model.License)
ret0, _ := ret[0].(*model0.License)
return ret0
}
@@ -780,10 +780,10 @@ func (mr *MockStoreMockRecorder) GetLicense() *gomock.Call {
}
// GetMemberForBoard mocks base method.
func (m *MockStore) GetMemberForBoard(arg0, arg1 string) (*model0.BoardMember, error) {
func (m *MockStore) GetMemberForBoard(arg0, arg1 string) (*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMemberForBoard", arg0, arg1)
ret0, _ := ret[0].(*model0.BoardMember)
ret0, _ := ret[0].(*model.BoardMember)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -795,10 +795,10 @@ func (mr *MockStoreMockRecorder) GetMemberForBoard(arg0, arg1 interface{}) *gomo
}
// GetMembersForBoard mocks base method.
func (m *MockStore) GetMembersForBoard(arg0 string) ([]*model0.BoardMember, error) {
func (m *MockStore) GetMembersForBoard(arg0 string) ([]*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMembersForBoard", arg0)
ret0, _ := ret[0].([]*model0.BoardMember)
ret0, _ := ret[0].([]*model.BoardMember)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -810,10 +810,10 @@ func (mr *MockStoreMockRecorder) GetMembersForBoard(arg0 interface{}) *gomock.Ca
}
// GetMembersForUser mocks base method.
func (m *MockStore) GetMembersForUser(arg0 string) ([]*model0.BoardMember, error) {
func (m *MockStore) GetMembersForUser(arg0 string) ([]*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMembersForUser", arg0)
ret0, _ := ret[0].([]*model0.BoardMember)
ret0, _ := ret[0].([]*model.BoardMember)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -825,10 +825,10 @@ func (mr *MockStoreMockRecorder) GetMembersForUser(arg0 interface{}) *gomock.Cal
}
// GetNextNotificationHint mocks base method.
func (m *MockStore) GetNextNotificationHint(arg0 bool) (*model0.NotificationHint, error) {
func (m *MockStore) GetNextNotificationHint(arg0 bool) (*model.NotificationHint, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNextNotificationHint", arg0)
ret0, _ := ret[0].(*model0.NotificationHint)
ret0, _ := ret[0].(*model.NotificationHint)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -840,10 +840,10 @@ func (mr *MockStoreMockRecorder) GetNextNotificationHint(arg0 interface{}) *gomo
}
// GetNotificationHint mocks base method.
func (m *MockStore) GetNotificationHint(arg0 string) (*model0.NotificationHint, error) {
func (m *MockStore) GetNotificationHint(arg0 string) (*model.NotificationHint, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNotificationHint", arg0)
ret0, _ := ret[0].(*model0.NotificationHint)
ret0, _ := ret[0].(*model.NotificationHint)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -870,10 +870,10 @@ func (mr *MockStoreMockRecorder) GetRegisteredUserCount() *gomock.Call {
}
// GetSession mocks base method.
func (m *MockStore) GetSession(arg0 string, arg1 int64) (*model0.Session, error) {
func (m *MockStore) GetSession(arg0 string, arg1 int64) (*model.Session, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSession", arg0, arg1)
ret0, _ := ret[0].(*model0.Session)
ret0, _ := ret[0].(*model.Session)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -885,10 +885,10 @@ func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 interface{}) *gomock.Call
}
// GetSharing mocks base method.
func (m *MockStore) GetSharing(arg0 string) (*model0.Sharing, error) {
func (m *MockStore) GetSharing(arg0 string) (*model.Sharing, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSharing", arg0)
ret0, _ := ret[0].(*model0.Sharing)
ret0, _ := ret[0].(*model.Sharing)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -900,10 +900,10 @@ func (mr *MockStoreMockRecorder) GetSharing(arg0 interface{}) *gomock.Call {
}
// GetSubTree2 mocks base method.
func (m *MockStore) GetSubTree2(arg0, arg1 string, arg2 model0.QuerySubtreeOptions) ([]*model0.Block, error) {
func (m *MockStore) GetSubTree2(arg0, arg1 string, arg2 model.QuerySubtreeOptions) ([]*model.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSubTree2", arg0, arg1, arg2)
ret0, _ := ret[0].([]*model0.Block)
ret0, _ := ret[0].([]*model.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -930,10 +930,10 @@ func (mr *MockStoreMockRecorder) GetSubscribersCountForBlock(arg0 interface{}) *
}
// GetSubscribersForBlock mocks base method.
func (m *MockStore) GetSubscribersForBlock(arg0 string) ([]*model0.Subscriber, error) {
func (m *MockStore) GetSubscribersForBlock(arg0 string) ([]*model.Subscriber, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSubscribersForBlock", arg0)
ret0, _ := ret[0].([]*model0.Subscriber)
ret0, _ := ret[0].([]*model.Subscriber)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -945,10 +945,10 @@ func (mr *MockStoreMockRecorder) GetSubscribersForBlock(arg0 interface{}) *gomoc
}
// GetSubscription mocks base method.
func (m *MockStore) GetSubscription(arg0, arg1 string) (*model0.Subscription, error) {
func (m *MockStore) GetSubscription(arg0, arg1 string) (*model.Subscription, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSubscription", arg0, arg1)
ret0, _ := ret[0].(*model0.Subscription)
ret0, _ := ret[0].(*model.Subscription)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -960,10 +960,10 @@ func (mr *MockStoreMockRecorder) GetSubscription(arg0, arg1 interface{}) *gomock
}
// GetSubscriptions mocks base method.
func (m *MockStore) GetSubscriptions(arg0 string) ([]*model0.Subscription, error) {
func (m *MockStore) GetSubscriptions(arg0 string) ([]*model.Subscription, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSubscriptions", arg0)
ret0, _ := ret[0].([]*model0.Subscription)
ret0, _ := ret[0].([]*model.Subscription)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1005,10 +1005,10 @@ func (mr *MockStoreMockRecorder) GetSystemSettings() *gomock.Call {
}
// GetTeam mocks base method.
func (m *MockStore) GetTeam(arg0 string) (*model0.Team, error) {
func (m *MockStore) GetTeam(arg0 string) (*model.Team, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTeam", arg0)
ret0, _ := ret[0].(*model0.Team)
ret0, _ := ret[0].(*model.Team)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1020,10 +1020,10 @@ func (mr *MockStoreMockRecorder) GetTeam(arg0 interface{}) *gomock.Call {
}
// GetTeamBoardsInsights mocks base method.
func (m *MockStore) GetTeamBoardsInsights(arg0 string, arg1 int64, arg2, arg3 int, arg4 []string) (*model0.BoardInsightsList, error) {
func (m *MockStore) GetTeamBoardsInsights(arg0 string, arg1 int64, arg2, arg3 int, arg4 []string) (*model.BoardInsightsList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTeamBoardsInsights", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(*model0.BoardInsightsList)
ret0, _ := ret[0].(*model.BoardInsightsList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1050,10 +1050,10 @@ func (mr *MockStoreMockRecorder) GetTeamCount() *gomock.Call {
}
// GetTeamsForUser mocks base method.
func (m *MockStore) GetTeamsForUser(arg0 string) ([]*model0.Team, error) {
func (m *MockStore) GetTeamsForUser(arg0 string) ([]*model.Team, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTeamsForUser", arg0)
ret0, _ := ret[0].([]*model0.Team)
ret0, _ := ret[0].([]*model.Team)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1065,10 +1065,10 @@ func (mr *MockStoreMockRecorder) GetTeamsForUser(arg0 interface{}) *gomock.Call
}
// GetTemplateBoards mocks base method.
func (m *MockStore) GetTemplateBoards(arg0, arg1 string) ([]*model0.Board, error) {
func (m *MockStore) GetTemplateBoards(arg0, arg1 string) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTemplateBoards", arg0, arg1)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1095,10 +1095,10 @@ func (mr *MockStoreMockRecorder) GetUsedCardsCount() *gomock.Call {
}
// GetUserBoardsInsights mocks base method.
func (m *MockStore) GetUserBoardsInsights(arg0, arg1 string, arg2 int64, arg3, arg4 int, arg5 []string) (*model0.BoardInsightsList, error) {
func (m *MockStore) GetUserBoardsInsights(arg0, arg1 string, arg2 int64, arg3, arg4 int, arg5 []string) (*model.BoardInsightsList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserBoardsInsights", arg0, arg1, arg2, arg3, arg4, arg5)
ret0, _ := ret[0].(*model0.BoardInsightsList)
ret0, _ := ret[0].(*model.BoardInsightsList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1110,10 +1110,10 @@ func (mr *MockStoreMockRecorder) GetUserBoardsInsights(arg0, arg1, arg2, arg3, a
}
// GetUserByEmail mocks base method.
func (m *MockStore) GetUserByEmail(arg0 string) (*model0.User, error) {
func (m *MockStore) GetUserByEmail(arg0 string) (*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserByEmail", arg0)
ret0, _ := ret[0].(*model0.User)
ret0, _ := ret[0].(*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1125,10 +1125,10 @@ func (mr *MockStoreMockRecorder) GetUserByEmail(arg0 interface{}) *gomock.Call {
}
// GetUserByID mocks base method.
func (m *MockStore) GetUserByID(arg0 string) (*model0.User, error) {
func (m *MockStore) GetUserByID(arg0 string) (*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserByID", arg0)
ret0, _ := ret[0].(*model0.User)
ret0, _ := ret[0].(*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1140,10 +1140,10 @@ func (mr *MockStoreMockRecorder) GetUserByID(arg0 interface{}) *gomock.Call {
}
// GetUserByUsername mocks base method.
func (m *MockStore) GetUserByUsername(arg0 string) (*model0.User, error) {
func (m *MockStore) GetUserByUsername(arg0 string) (*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserByUsername", arg0)
ret0, _ := ret[0].(*model0.User)
ret0, _ := ret[0].(*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1155,10 +1155,10 @@ func (mr *MockStoreMockRecorder) GetUserByUsername(arg0 interface{}) *gomock.Cal
}
// GetUserCategories mocks base method.
func (m *MockStore) GetUserCategories(arg0, arg1 string) ([]model0.Category, error) {
func (m *MockStore) GetUserCategories(arg0, arg1 string) ([]model.Category, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserCategories", arg0, arg1)
ret0, _ := ret[0].([]model0.Category)
ret0, _ := ret[0].([]model.Category)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1170,10 +1170,10 @@ func (mr *MockStoreMockRecorder) GetUserCategories(arg0, arg1 interface{}) *gomo
}
// GetUserCategoryBoards mocks base method.
func (m *MockStore) GetUserCategoryBoards(arg0, arg1 string) ([]model0.CategoryBoards, error) {
func (m *MockStore) GetUserCategoryBoards(arg0, arg1 string) ([]model.CategoryBoards, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserCategoryBoards", arg0, arg1)
ret0, _ := ret[0].([]model0.CategoryBoards)
ret0, _ := ret[0].([]model.CategoryBoards)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1185,10 +1185,10 @@ func (mr *MockStoreMockRecorder) GetUserCategoryBoards(arg0, arg1 interface{}) *
}
// GetUserPreferences mocks base method.
func (m *MockStore) GetUserPreferences(arg0 string) (model.Preferences, error) {
func (m *MockStore) GetUserPreferences(arg0 string) (model0.Preferences, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUserPreferences", arg0)
ret0, _ := ret[0].(model.Preferences)
ret0, _ := ret[0].(model0.Preferences)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1215,10 +1215,10 @@ func (mr *MockStoreMockRecorder) GetUserTimezone(arg0 interface{}) *gomock.Call
}
// GetUsersByTeam mocks base method.
func (m *MockStore) GetUsersByTeam(arg0, arg1 string, arg2, arg3 bool) ([]*model0.User, error) {
func (m *MockStore) GetUsersByTeam(arg0, arg1 string, arg2, arg3 bool) ([]*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUsersByTeam", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]*model0.User)
ret0, _ := ret[0].([]*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1230,10 +1230,10 @@ func (mr *MockStoreMockRecorder) GetUsersByTeam(arg0, arg1, arg2, arg3 interface
}
// GetUsersList mocks base method.
func (m *MockStore) GetUsersList(arg0 []string, arg1, arg2 bool) ([]*model0.User, error) {
func (m *MockStore) GetUsersList(arg0 []string, arg1, arg2 bool) ([]*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUsersList", arg0, arg1, arg2)
ret0, _ := ret[0].([]*model0.User)
ret0, _ := ret[0].([]*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1245,7 +1245,7 @@ func (mr *MockStoreMockRecorder) GetUsersList(arg0, arg1, arg2 interface{}) *gom
}
// InsertBlock mocks base method.
func (m *MockStore) InsertBlock(arg0 *model0.Block, arg1 string) error {
func (m *MockStore) InsertBlock(arg0 *model.Block, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InsertBlock", arg0, arg1)
ret0, _ := ret[0].(error)
@@ -1259,7 +1259,7 @@ func (mr *MockStoreMockRecorder) InsertBlock(arg0, arg1 interface{}) *gomock.Cal
}
// InsertBlocks mocks base method.
func (m *MockStore) InsertBlocks(arg0 []*model0.Block, arg1 string) error {
func (m *MockStore) InsertBlocks(arg0 []*model.Block, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InsertBlocks", arg0, arg1)
ret0, _ := ret[0].(error)
@@ -1273,10 +1273,10 @@ func (mr *MockStoreMockRecorder) InsertBlocks(arg0, arg1 interface{}) *gomock.Ca
}
// InsertBoard mocks base method.
func (m *MockStore) InsertBoard(arg0 *model0.Board, arg1 string) (*model0.Board, error) {
func (m *MockStore) InsertBoard(arg0 *model.Board, arg1 string) (*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InsertBoard", arg0, arg1)
ret0, _ := ret[0].(*model0.Board)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1288,11 +1288,11 @@ func (mr *MockStoreMockRecorder) InsertBoard(arg0, arg1 interface{}) *gomock.Cal
}
// InsertBoardWithAdmin mocks base method.
func (m *MockStore) InsertBoardWithAdmin(arg0 *model0.Board, arg1 string) (*model0.Board, *model0.BoardMember, error) {
func (m *MockStore) InsertBoardWithAdmin(arg0 *model.Board, arg1 string) (*model.Board, *model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InsertBoardWithAdmin", arg0, arg1)
ret0, _ := ret[0].(*model0.Board)
ret1, _ := ret[1].(*model0.BoardMember)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(*model.BoardMember)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
@@ -1304,7 +1304,7 @@ func (mr *MockStoreMockRecorder) InsertBoardWithAdmin(arg0, arg1 interface{}) *g
}
// PatchBlock mocks base method.
func (m *MockStore) PatchBlock(arg0 string, arg1 *model0.BlockPatch, arg2 string) error {
func (m *MockStore) PatchBlock(arg0 string, arg1 *model.BlockPatch, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PatchBlock", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
@@ -1318,7 +1318,7 @@ func (mr *MockStoreMockRecorder) PatchBlock(arg0, arg1, arg2 interface{}) *gomoc
}
// PatchBlocks mocks base method.
func (m *MockStore) PatchBlocks(arg0 *model0.BlockPatchBatch, arg1 string) error {
func (m *MockStore) PatchBlocks(arg0 *model.BlockPatchBatch, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PatchBlocks", arg0, arg1)
ret0, _ := ret[0].(error)
@@ -1332,10 +1332,10 @@ func (mr *MockStoreMockRecorder) PatchBlocks(arg0, arg1 interface{}) *gomock.Cal
}
// PatchBoard mocks base method.
func (m *MockStore) PatchBoard(arg0 string, arg1 *model0.BoardPatch, arg2 string) (*model0.Board, error) {
func (m *MockStore) PatchBoard(arg0 string, arg1 *model.BoardPatch, arg2 string) (*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PatchBoard", arg0, arg1, arg2)
ret0, _ := ret[0].(*model0.Board)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1347,10 +1347,10 @@ func (mr *MockStoreMockRecorder) PatchBoard(arg0, arg1, arg2 interface{}) *gomoc
}
// PatchBoardsAndBlocks mocks base method.
func (m *MockStore) PatchBoardsAndBlocks(arg0 *model0.PatchBoardsAndBlocks, arg1 string) (*model0.BoardsAndBlocks, error) {
func (m *MockStore) PatchBoardsAndBlocks(arg0 *model.PatchBoardsAndBlocks, arg1 string) (*model.BoardsAndBlocks, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PatchBoardsAndBlocks", arg0, arg1)
ret0, _ := ret[0].(*model0.BoardsAndBlocks)
ret0, _ := ret[0].(*model.BoardsAndBlocks)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1362,10 +1362,10 @@ func (mr *MockStoreMockRecorder) PatchBoardsAndBlocks(arg0, arg1 interface{}) *g
}
// PatchUserPreferences mocks base method.
func (m *MockStore) PatchUserPreferences(arg0 string, arg1 model0.UserPreferencesPatch) (model.Preferences, error) {
func (m *MockStore) PatchUserPreferences(arg0 string, arg1 model.UserPreferencesPatch) (model0.Preferences, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PatchUserPreferences", arg0, arg1)
ret0, _ := ret[0].(model.Preferences)
ret0, _ := ret[0].(model0.Preferences)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1391,7 +1391,7 @@ func (mr *MockStoreMockRecorder) PostMessage(arg0, arg1, arg2 interface{}) *gomo
}
// RefreshSession mocks base method.
func (m *MockStore) RefreshSession(arg0 *model0.Session) error {
func (m *MockStore) RefreshSession(arg0 *model.Session) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RefreshSession", arg0)
ret0, _ := ret[0].(error)
@@ -1405,7 +1405,7 @@ func (mr *MockStoreMockRecorder) RefreshSession(arg0 interface{}) *gomock.Call {
}
// RemoveDefaultTemplates mocks base method.
func (m *MockStore) RemoveDefaultTemplates(arg0 []*model0.Board) error {
func (m *MockStore) RemoveDefaultTemplates(arg0 []*model.Board) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveDefaultTemplates", arg0)
ret0, _ := ret[0].(error)
@@ -1464,7 +1464,7 @@ func (mr *MockStoreMockRecorder) RunDataRetention(arg0, arg1 interface{}) *gomoc
}
// SaveFileInfo mocks base method.
func (m *MockStore) SaveFileInfo(arg0 *model.FileInfo) error {
func (m *MockStore) SaveFileInfo(arg0 *model0.FileInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveFileInfo", arg0)
ret0, _ := ret[0].(error)
@@ -1478,10 +1478,10 @@ func (mr *MockStoreMockRecorder) SaveFileInfo(arg0 interface{}) *gomock.Call {
}
// SaveMember mocks base method.
func (m *MockStore) SaveMember(arg0 *model0.BoardMember) (*model0.BoardMember, error) {
func (m *MockStore) SaveMember(arg0 *model.BoardMember) (*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveMember", arg0)
ret0, _ := ret[0].(*model0.BoardMember)
ret0, _ := ret[0].(*model.BoardMember)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1493,10 +1493,10 @@ func (mr *MockStoreMockRecorder) SaveMember(arg0 interface{}) *gomock.Call {
}
// SearchBoardsForUser mocks base method.
func (m *MockStore) SearchBoardsForUser(arg0 string, arg1 model0.BoardSearchField, arg2 string, arg3 bool) ([]*model0.Board, error) {
func (m *MockStore) SearchBoardsForUser(arg0 string, arg1 model.BoardSearchField, arg2 string, arg3 bool) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SearchBoardsForUser", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1508,10 +1508,10 @@ func (mr *MockStoreMockRecorder) SearchBoardsForUser(arg0, arg1, arg2, arg3 inte
}
// SearchBoardsForUserInTeam mocks base method.
func (m *MockStore) SearchBoardsForUserInTeam(arg0, arg1, arg2 string) ([]*model0.Board, error) {
func (m *MockStore) SearchBoardsForUserInTeam(arg0, arg1, arg2 string) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SearchBoardsForUserInTeam", arg0, arg1, arg2)
ret0, _ := ret[0].([]*model0.Board)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1523,10 +1523,10 @@ func (mr *MockStoreMockRecorder) SearchBoardsForUserInTeam(arg0, arg1, arg2 inte
}
// SearchUserChannels mocks base method.
func (m *MockStore) SearchUserChannels(arg0, arg1, arg2 string) ([]*model.Channel, error) {
func (m *MockStore) SearchUserChannels(arg0, arg1, arg2 string) ([]*model0.Channel, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SearchUserChannels", arg0, arg1, arg2)
ret0, _ := ret[0].([]*model.Channel)
ret0, _ := ret[0].([]*model0.Channel)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1538,10 +1538,10 @@ func (mr *MockStoreMockRecorder) SearchUserChannels(arg0, arg1, arg2 interface{}
}
// SearchUsersByTeam mocks base method.
func (m *MockStore) SearchUsersByTeam(arg0, arg1, arg2 string, arg3, arg4, arg5 bool) ([]*model0.User, error) {
func (m *MockStore) SearchUsersByTeam(arg0, arg1, arg2 string, arg3, arg4, arg5 bool) ([]*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SearchUsersByTeam", arg0, arg1, arg2, arg3, arg4, arg5)
ret0, _ := ret[0].([]*model0.User)
ret0, _ := ret[0].([]*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1652,7 +1652,7 @@ func (mr *MockStoreMockRecorder) UpdateCardLimitTimestamp(arg0 interface{}) *gom
}
// UpdateCategory mocks base method.
func (m *MockStore) UpdateCategory(arg0 model0.Category) error {
func (m *MockStore) UpdateCategory(arg0 model.Category) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateCategory", arg0)
ret0, _ := ret[0].(error)
@@ -1666,7 +1666,7 @@ func (mr *MockStoreMockRecorder) UpdateCategory(arg0 interface{}) *gomock.Call {
}
// UpdateSession mocks base method.
func (m *MockStore) UpdateSession(arg0 *model0.Session) error {
func (m *MockStore) UpdateSession(arg0 *model.Session) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateSession", arg0)
ret0, _ := ret[0].(error)
@@ -1694,10 +1694,10 @@ func (mr *MockStoreMockRecorder) UpdateSubscribersNotifiedAt(arg0, arg1 interfac
}
// UpdateUser mocks base method.
func (m *MockStore) UpdateUser(arg0 *model0.User) (*model0.User, error) {
func (m *MockStore) UpdateUser(arg0 *model.User) (*model.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateUser", arg0)
ret0, _ := ret[0].(*model0.User)
ret0, _ := ret[0].(*model.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1737,10 +1737,10 @@ func (mr *MockStoreMockRecorder) UpdateUserPasswordByID(arg0, arg1 interface{})
}
// UpsertNotificationHint mocks base method.
func (m *MockStore) UpsertNotificationHint(arg0 *model0.NotificationHint, arg1 time.Duration) (*model0.NotificationHint, error) {
func (m *MockStore) UpsertNotificationHint(arg0 *model.NotificationHint, arg1 time.Duration) (*model.NotificationHint, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertNotificationHint", arg0, arg1)
ret0, _ := ret[0].(*model0.NotificationHint)
ret0, _ := ret[0].(*model.NotificationHint)
ret1, _ := ret[1].(error)
return ret0, ret1
}
@@ -1752,7 +1752,7 @@ func (mr *MockStoreMockRecorder) UpsertNotificationHint(arg0, arg1 interface{})
}
// UpsertSharing mocks base method.
func (m *MockStore) UpsertSharing(arg0 model0.Sharing) error {
func (m *MockStore) UpsertSharing(arg0 model.Sharing) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertSharing", arg0)
ret0, _ := ret[0].(error)
@@ -1766,7 +1766,7 @@ func (mr *MockStoreMockRecorder) UpsertSharing(arg0 interface{}) *gomock.Call {
}
// UpsertTeamSettings mocks base method.
func (m *MockStore) UpsertTeamSettings(arg0 model0.Team) error {
func (m *MockStore) UpsertTeamSettings(arg0 model.Team) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertTeamSettings", arg0)
ret0, _ := ret[0].(error)
@@ -1780,7 +1780,7 @@ func (mr *MockStoreMockRecorder) UpsertTeamSettings(arg0 interface{}) *gomock.Ca
}
// UpsertTeamSignupToken mocks base method.
func (m *MockStore) UpsertTeamSignupToken(arg0 model0.Team) error {
func (m *MockStore) UpsertTeamSignupToken(arg0 model.Team) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertTeamSignupToken", arg0)
ret0, _ := ret[0].(error)

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

@@ -9,14 +9,14 @@ import (
"fmt"
"strings"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
sq "github.com/Masterminds/squirrel"
_ "github.com/lib/pq" // postgres driver
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -12,13 +12,13 @@ import (
"strings"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func boardFields(tableAlias string) []string {

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

@@ -9,13 +9,13 @@ import (
"strings"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
sq "github.com/Masterminds/squirrel"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func (s *SQLStore) getTeamBoardsInsights(db sq.BaseRunner, teamID string, since int64, offset int, limit int, boardIDs []string) (*model.BoardInsightsList, error) {

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

@@ -8,7 +8,7 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
type BlockDoesntBelongToBoardsErr struct {

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

@@ -18,11 +18,11 @@ import (
embedded "github.com/mattermost/morph/sources/embedded"
"github.com/mgdelacroix/foundation"
"github.com/mattermost/mattermost-server/v6/server/channels/db"
mmSqlStore "github.com/mattermost/mattermost-server/v6/server/channels/store/sqlstore"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/db"
mmSqlStore "github.com/mattermost/mattermost-server/server/v8/channels/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
var tablePrefix = "focalboard_"

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

@@ -9,10 +9,10 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const categorySortOrderGap = 10

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

@@ -9,10 +9,10 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func (s *SQLStore) getUserCategoryBoards(db sq.BaseRunner, userID, teamID string) ([]model.CategoryBoards, error) {

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

@@ -10,8 +10,8 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
var ErrInvalidCardLimitValue = errors.New("card limit value is invalid")

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

@@ -8,9 +8,9 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func (s *SQLStore) getBoardsForCompliance(db sq.BaseRunner, opts model.QueryBoardsForComplianceOptions) ([]*model.Board, bool, error) {

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

@@ -12,10 +12,10 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/wiggin77/merror"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -7,10 +7,10 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore/migrationstests"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore/migrationstests"
"github.com/mgdelacroix/foundation"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

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

@@ -12,9 +12,9 @@ import (
sq "github.com/Masterminds/squirrel"
_ "github.com/lib/pq" // postgres driver
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
type RetentionTableDeletionInfo struct {

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

@@ -9,10 +9,10 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func (s *SQLStore) saveFileInfo(db sq.BaseRunner, fileInfo *mm_model.FileInfo) error {

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

@@ -8,13 +8,13 @@ import (
"encoding/json"
"strings"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func legacyBoardFields(prefix string) []string {

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

@@ -16,9 +16,9 @@ import (
sq "github.com/Masterminds/squirrel"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/channels/store/sqlstore"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/store/sqlstore"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
"github.com/mattermost/morph"
drivers "github.com/mattermost/morph/drivers"
@@ -28,7 +28,7 @@ import (
_ "github.com/lib/pq" // postgres driver
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
//go:embed migrations/*.sql

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
)

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -7,7 +7,7 @@ import (
"encoding/json"
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -6,7 +6,7 @@ package migrationstests
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -9,7 +9,7 @@ import (
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
)
func Test33RemoveDeletedCategoryBoards(t *testing.T) {

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

@@ -10,10 +10,10 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
var notificationHintFields = []string{

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

@@ -7,9 +7,9 @@ import (
"database/sql"
"fmt"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
// servicesAPI is the interface required my the Params to interact with the mattermost-server.

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

@@ -16,10 +16,10 @@ import (
"context"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func (s *SQLStore) AddUpdateCategoryBoard(userID string, categoryID string, boardIDs []string) error {

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

@@ -12,9 +12,9 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/morph/models"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
// EnsureSchemaMigrationFormat checks the schema migrations table

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

@@ -8,8 +8,8 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
// GetActiveUserCount returns the number of users with active sessions within N seconds ago.

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

@@ -4,8 +4,8 @@
package sqlstore
import (
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
sq "github.com/Masterminds/squirrel"
)

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

@@ -11,11 +11,11 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
// SQLStore is a SQL database.

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

@@ -6,11 +6,11 @@ package sqlstore
import (
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store/storetests"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/storetests"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
func TestSQLStore(t *testing.T) {

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

@@ -9,9 +9,9 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
var subscriptionFields = []string{

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

@@ -6,7 +6,7 @@ package sqlstore
import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
)
func (s *SQLStore) getSystemSetting(db sq.BaseRunner, key string) (string, error) {

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

@@ -7,10 +7,10 @@ import (
"database/sql"
"encoding/json"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
sq "github.com/Masterminds/squirrel"
)

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

@@ -9,9 +9,9 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
var (

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

@@ -9,10 +9,10 @@ import (
"os"
"testing"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/channels/store/storetest"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
"github.com/mgdelacroix/foundation"
"github.com/stretchr/testify/require"
)

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

@@ -8,15 +8,15 @@ import (
"errors"
"fmt"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/channels/store"
"github.com/mattermost/mattermost-server/server/v8/channels/store"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
var (

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

@@ -10,10 +10,10 @@ import (
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func (s *SQLStore) CloseRows(rows *sql.Rows) {

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

@@ -8,9 +8,9 @@ package store
import (
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
mm_model "github.com/mattermost/mattermost-server/v6/model"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
)
const CardLimitTimestampSystemKey = "card_limit_timestamp"

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

@@ -9,9 +9,9 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

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

@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
const (

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

@@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/stretchr/testify/require"
)

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

@@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/stretchr/testify/require"
)

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

@@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
type testFunc func(t *testing.T, store store.Store)

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

@@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
func StoreTestCategoryBoardsStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -9,10 +9,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
storeservice "github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
storeservice "github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
func StoreTestCloudStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
func StoreTestComplianceHistoryStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -6,9 +6,9 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"github.com/stretchr/testify/require"
)

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

@@ -6,10 +6,10 @@ package storetests
import (
"testing"
mm_model "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
mm_model "github.com/mattermost/mattermost-server/server/v8/model"
"github.com/stretchr/testify/require"
)

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

@@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
func InsertBlocks(t *testing.T, s store.Store, blocks []*model.Block, userID string) {

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

@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
func StoreTestNotificationHintsStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
func StoreTestSessionStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
func StoreTestSharingStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
//nolint:dupl

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

@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
func StoreTestSystemStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -6,14 +6,14 @@ package storetests
import (
"fmt"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
"testing"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
)
func StoreTestTeamStore(t *testing.T, runStoreTests func(*testing.T, func(*testing.T, store.Store))) {

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

@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
//nolint:dupl

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

@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/store"
"github.com/mattermost/mattermost-server/v6/server/boards/utils"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
)
func createTestUsers(t *testing.T, store store.Store, num int) []*model.User {

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

@@ -5,12 +5,12 @@
package mocks
import (
httpservice "github.com/mattermost/mattermost-server/v6/server/platform/services/httpservice"
httpservice "github.com/mattermost/mattermost-server/server/v8/platform/services/httpservice"
mock "github.com/stretchr/testify/mock"
model "github.com/mattermost/mattermost-server/v6/model"
model "github.com/mattermost/mattermost-server/server/v8/model"
plugin "github.com/mattermost/mattermost-server/v6/plugin"
plugin "github.com/mattermost/mattermost-server/server/v8/plugin"
)
// ServerIface is an autogenerated mock type for the ServerIface type

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

@@ -10,10 +10,10 @@ import (
rudder "github.com/rudderlabs/analytics-go"
"github.com/mattermost/mattermost-server/v6/server/boards/services/scheduler"
"github.com/mattermost/mattermost-server/server/v8/boards/services/scheduler"
"github.com/mattermost/mattermost-server/v6/server/channels/utils"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
const (

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

@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
func mockServer() (chan []byte, *httptest.Server) {

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

@@ -9,10 +9,10 @@ import (
"io"
"net/http"
"github.com/mattermost/mattermost-server/v6/server/boards/model"
"github.com/mattermost/mattermost-server/v6/server/boards/services/config"
"github.com/mattermost/mattermost-server/server/v8/boards/model"
"github.com/mattermost/mattermost-server/server/v8/boards/services/config"
"github.com/mattermost/mattermost-server/v6/server/platform/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/platform/shared/mlog"
)
// NotifyUpdate calls webhooks.

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше