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 ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6d1d38b27
Коммит
efaa6264cc
@@ -4,7 +4,7 @@
|
||||
package audit
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package audit
|
||||
|
||||
import "github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
import "github.com/mattermost/mattermost/server/public/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/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
// Service prometheus to run the server.
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package notifylogger
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
package notifymentions
|
||||
|
||||
import "github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
import "github.com/mattermost/mattermost/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/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
var atMentionRegexp = regexp.MustCompile(`\B@[[:alnum:]][[:alnum:]\.\-_:]*`)
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
func Test_extractMentions(t *testing.T) {
|
||||
|
||||
@@ -6,7 +6,7 @@ package notifysubscriptions
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
type AppAPI interface {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package notifysubscriptions
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -6,7 +6,7 @@ package notifysubscriptions
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
func getBoardDescription(board *model.Block) string {
|
||||
|
||||
@@ -6,10 +6,10 @@ package plugindelivery
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package plugindelivery
|
||||
|
||||
import (
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
type servicesAPI interface {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -6,9 +6,9 @@ package plugindelivery
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
type Action string
|
||||
|
||||
@@ -6,11 +6,11 @@ package localpermissions
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
permissionsMocks "github.com/mattermost/mattermost-server/server/v8/boards/services/permissions/mocks"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
permissionsMocks "github.com/mattermost/mattermost/server/v8/boards/services/permissions/mocks"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
package localpermissions
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"database/sql"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -6,12 +6,12 @@ package mmpermissions
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"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"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
mmpermissionsMocks "github.com/mattermost/mattermost/server/v8/boards/services/permissions/mmpermissions/mocks"
|
||||
permissionsMocks "github.com/mattermost/mattermost/server/v8/boards/services/permissions/mocks"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
package mmpermissions
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/public/plugin API
|
||||
//go:generate mockgen -copyright_file=../../../../copyright.txt -destination=mocks/mockpluginapi.go -package mocks github.com/mattermost/mattermost/server/public/plugin API
|
||||
package mmpermissions
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/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/server/public/plugin (interfaces: API)
|
||||
// Source: github.com/mattermost/mattermost/server/public/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/server/public/model"
|
||||
model "github.com/mattermost/mattermost/server/public/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/server/v8/boards/services/permissions (interfaces: Store)
|
||||
// Source: github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
model "github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
// MockStore is a mock of Store interface.
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
package permissions
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
type PermissionsService interface {
|
||||
|
||||
@@ -16,10 +16,10 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
{{range $index, $element := .Methods}}
|
||||
|
||||
@@ -11,15 +11,15 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
var boardsBotID string
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/golang/mock/gomock"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/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/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
mockservicesapi "github.com/mattermost/mattermost/server/v8/boards/model/mocks"
|
||||
|
||||
"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/server/v8/boards/services/store (interfaces: Store)
|
||||
// Source: github.com/mattermost/mattermost/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/server/public/model"
|
||||
model0 "github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
model "github.com/mattermost/mattermost/server/public/model"
|
||||
model0 "github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
// MockStore is a mock of Store interface.
|
||||
|
||||
@@ -9,14 +9,14 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
_ "github.com/lib/pq" // postgres driver
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -12,13 +12,13 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func boardFields(tableAlias string) []string {
|
||||
|
||||
@@ -9,13 +9,13 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/public/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/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/db"
|
||||
mmSqlStore "github.com/mattermost/mattermost/server/v8/channels/store/sqlstore"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
var tablePrefix = "focalboard_"
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const categorySortOrderGap = 10
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore/migrationstests"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store/sqlstore/migrationstests"
|
||||
"github.com/mgdelacroix/foundation"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
type RetentionTableDeletionInfo struct {
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func legacyBoardFields(prefix string) []string {
|
||||
|
||||
@@ -16,9 +16,9 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
mm_model "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/sqlstore"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/store/sqlstore"
|
||||
|
||||
"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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
//go:embed migrations/*.sql
|
||||
|
||||
@@ -6,7 +6,7 @@ package migrationstests
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mgdelacroix/foundation"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ package migrationstests
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/services/store/sqlstore"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
var notificationHintFields = []string{
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
// EnsureSchemaMigrationFormat checks the schema migrations table
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
)
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
// SQLStore is a SQL database.
|
||||
|
||||
@@ -6,11 +6,11 @@ package sqlstore
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store/storetests"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store/storetests"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
func TestSQLStore(t *testing.T) {
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
var subscriptionFields = []string{
|
||||
|
||||
@@ -6,7 +6,7 @@ package sqlstore
|
||||
import (
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
)
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/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/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/store/storetest"
|
||||
"github.com/mgdelacroix/foundation"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -8,15 +8,15 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/channels/store"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/store"
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -10,10 +10,10 @@ import (
|
||||
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (s *SQLStore) CloseRows(rows *sql.Rows) {
|
||||
|
||||
@@ -8,9 +8,9 @@ package store
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
const CardLimitTimestampSystemKey = "card_limit_timestamp"
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
storeservice "github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -6,10 +6,10 @@ package storetests
|
||||
import (
|
||||
"testing"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"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/public/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
)
|
||||
|
||||
//nolint:dupl
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/store"
|
||||
"github.com/mattermost/mattermost/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/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"
|
||||
)
|
||||
|
||||
// ServerIface is an autogenerated mock type for the ServerIface type
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
|
||||
rudder "github.com/rudderlabs/analytics-go"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/scheduler"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/scheduler"
|
||||
|
||||
"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/utils"
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func mockServer() (chan []byte, *httptest.Server) {
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/config"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/config"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
// NotifyUpdate calls webhooks.
|
||||
|
||||
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Ссылка в новой задаче
Block a user