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,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