mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
One name for this fork, and it is ours
The server module named github.com/hanzoai/team/server/v8 — a path that resolves to the retired workspace's repository, not this one — while server/public still published github.com/mattermost/mattermost/server/public. Both are github.com/hanzoteam/server/... now, which is where this code actually lives. That second half is what made the binary unbootable. Upstream's public path stayed claimed by upstream, mattermost-plugin-ai imported it, and the build linked public/model twice; public/plugin's gob.Register then ran twice under one name and panicked at init, before main. Reverting the rename traded the brand for a working binary. Rebranding the plugin alongside it needs no such trade: the agents fork is github.com/hanzoteam/agents/v2 against our public module, so no module named mattermost/mattermost is in the graph at all. Measured: `go list -deps ./cmd/mattermost` names exactly one public/model, and it is ours.
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
// shouldRedactExpressions reports whether raw CEL expressions should be masked for this caller.
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"slices"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitAgents() {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitAIBridgeTestHelper() {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
app "github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
app "github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
_ "github.com/mattermost/go-i18n/i18n"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/manualtesting"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/manualtesting"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
)
|
||||
|
||||
type Routes struct {
|
||||
|
||||
@@ -26,18 +26,18 @@ import (
|
||||
"github.com/minio/minio-go/v7/pkg/credentials"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/request"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/store"
|
||||
"github.com/hanzoai/team/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoai/team/server/v8/channels/testlib"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoai/team/server/v8/channels/wsapi"
|
||||
"github.com/hanzoai/team/server/v8/config"
|
||||
"github.com/hanzoai/team/server/v8/platform/services/searchengine"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/shared/request"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoteam/server/server/v8/channels/testlib"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/v8/channels/wsapi"
|
||||
"github.com/hanzoteam/server/server/v8/config"
|
||||
"github.com/hanzoteam/server/server/v8/platform/services/searchengine"
|
||||
)
|
||||
|
||||
type TestHelper struct {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func (api *API) InitAuditLogging() {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitBoard() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func setupBoardTest(t *testing.T) *TestHelper {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitBot() {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestCreateBot(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitBrand() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
)
|
||||
|
||||
func TestGetBrandImage(t *testing.T) {
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/i18n"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/i18n"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
const maxListSize = 1000
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func rejectExternallyManagedBookmarkWrite(op string) *model.AppError {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func getCategoriesForTeamForUser(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestCreateCategoryForTeamForUser(t *testing.T) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
// initChannelJoinRequestRoutes registers the discoverable-private-channel
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
// setupDiscoverableTH spins up an api4 fixture with the discoverable channels
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
func (api *API) InitChannelLocal() {
|
||||
|
||||
@@ -13,17 +13,17 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
einterfacesmocks "github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
einterfacesmocks "github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
)
|
||||
|
||||
func TestCreateChannel(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitCluster() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestGetClusterStatus(t *testing.T) {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitCommand() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestHelpCommand(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitCommandLocal() {
|
||||
|
||||
@@ -16,9 +16,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/testlib"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/testlib"
|
||||
)
|
||||
|
||||
func TestCreateCommand(t *testing.T) {
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
_ "github.com/hanzoai/team/server/v8/channels/app/slashcommands"
|
||||
_ "github.com/hanzoteam/server/server/v8/channels/app/slashcommands"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestEchoCommand(t *testing.T) {
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/avct/uasurfer"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitCompliance() {
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/i18n"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoai/team/server/v8/config"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/i18n"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/config"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoai/team/server/v8/config"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/config"
|
||||
)
|
||||
|
||||
func (api *API) InitConfigLocal() {
|
||||
|
||||
@@ -16,9 +16,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/config"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/config"
|
||||
)
|
||||
|
||||
func TestGetConfig(t *testing.T) {
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitContentFlagging() {
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func generateFlaggedPostReport(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/goccy/go-yaml"
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store/storetest/mocks"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
func (api *API) InitCustomProfileAttributes() {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/request"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/request"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitDataRetention() {
|
||||
|
||||
@@ -8,13 +8,13 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
)
|
||||
|
||||
func TestDataRetentionGetPolicy(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitDrafts() {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
)
|
||||
|
||||
func TestUpsertDraft(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitElasticsearch() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestElasticsearchTest(t *testing.T) {
|
||||
|
||||
@@ -8,10 +8,10 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -15,10 +15,10 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/fileutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/fileutils"
|
||||
)
|
||||
|
||||
func TestCreateEmoji(t *testing.T) {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitExport() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -14,11 +14,11 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoai/team/server/v8/platform/shared/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/platform/shared/web"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -28,10 +28,10 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/fileutils"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/fileutils"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
)
|
||||
|
||||
var testDir = ""
|
||||
|
||||
@@ -12,11 +12,11 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/store"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
)
|
||||
|
||||
func (api *API) InitGroup() {
|
||||
|
||||
@@ -6,7 +6,7 @@ package api4
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitGroupLocal() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestGetGroup(t *testing.T) {
|
||||
|
||||
@@ -8,10 +8,10 @@ import (
|
||||
|
||||
"github.com/klauspost/compress/gzhttp"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
)
|
||||
|
||||
type Context = web.Context
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func handlerForGzip(t *testing.T) func(*Context, http.ResponseWriter, *http.Request) {
|
||||
|
||||
@@ -6,7 +6,7 @@ package api4
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
// APIs for self-hosted workspaces to communicate with the backing customer & payments system.
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func (api *API) InitImage() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestGetImage(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitImport() {
|
||||
|
||||
@@ -13,10 +13,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/fileutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/fileutils"
|
||||
)
|
||||
|
||||
// Helper function to upload a new import file
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitAction() {
|
||||
|
||||
@@ -17,9 +17,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/testlib"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/testlib"
|
||||
)
|
||||
|
||||
type testHandler struct {
|
||||
|
||||
@@ -12,11 +12,11 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/platform/shared/filestore"
|
||||
"github.com/hanzoteam/server/server/v8/platform/shared/filestore"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/platform/shared/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/platform/shared/web"
|
||||
)
|
||||
|
||||
func (api *API) InitJob() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestCreateJob(t *testing.T) {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
type mixedUnlinkedGroup struct {
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
)
|
||||
|
||||
var spPrivateKey = `-----BEGIN PRIVATE KEY-----
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
"math"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
func (api *API) InitLicense() {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitLicenseLocal() {
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
mocks2 "github.com/hanzoai/team/server/v8/channels/utils/mocks"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
mocks2 "github.com/hanzoteam/server/server/v8/channels/utils/mocks"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/testlib"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/testlib"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func (api *API) InitClientPerformanceMetrics() {
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/app/platform"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app/platform"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitOAuth() {
|
||||
|
||||
@@ -17,8 +17,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
func TestCreateOAuthApp(t *testing.T) {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"strconv"
|
||||
|
||||
"github.com/mattermost/logr/v2"
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoai/team/server/v8/einterfaces/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/v8/einterfaces/mocks"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitPermissions() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestGetAncillaryPermissions(t *testing.T) {
|
||||
|
||||
@@ -13,10 +13,10 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/store"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/fileutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/fileutils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func (api *API) InitPluginLocal() {
|
||||
|
||||
@@ -23,12 +23,12 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/utils"
|
||||
"github.com/hanzoai/team/server/v8"
|
||||
"github.com/hanzoai/team/server/v8/channels/testlib"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/fileutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin"
|
||||
"github.com/hanzoteam/server/server/public/plugin/utils"
|
||||
"github.com/hanzoteam/server/server/v8"
|
||||
"github.com/hanzoteam/server/server/v8/channels/testlib"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/fileutils"
|
||||
)
|
||||
|
||||
func TestPlugin(t *testing.T) {
|
||||
|
||||
@@ -14,11 +14,11 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/store/sqlstore"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store/sqlstore"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
)
|
||||
|
||||
func (api *API) InitPost() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package api4
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
func (api *API) InitPostLocal() {
|
||||
|
||||
@@ -24,14 +24,14 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/plugin/plugintest/mock"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoai/team/server/v8/channels/testlib"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils/testutils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/plugin/plugintest/mock"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoteam/server/server/v8/channels/testlib"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils/testutils"
|
||||
)
|
||||
|
||||
// Helper to enable feature with license
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package api4
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
)
|
||||
|
||||
func userCreatePostPermissionCheckWithContext(c *Context, channelId string) {
|
||||
|
||||
@@ -6,7 +6,7 @@ package api4
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hanzoai/team/server/v8/channels/utils"
|
||||
"github.com/hanzoteam/server/server/v8/channels/utils"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const maxUpdatePreferences = 100
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestGetPreferences(t *testing.T) {
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoai/team/server/v8/channels/web"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/v8/channels/web"
|
||||
)
|
||||
|
||||
const maxPropertyValuePatchItems = 50
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestSessionAttributesFieldEditing(t *testing.T) {
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
storemocks "github.com/hanzoai/team/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
storemocks "github.com/hanzoteam/server/server/v8/channels/store/storetest/mocks"
|
||||
)
|
||||
|
||||
func TestRateLimitingMiddleware(t *testing.T) {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitReaction() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
)
|
||||
|
||||
func TestSaveReaction(t *testing.T) {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
"github.com/hanzoai/team/server/v8/channels/app"
|
||||
"github.com/hanzoteam/server/server/public/model"
|
||||
"github.com/hanzoteam/server/server/public/shared/mlog"
|
||||
"github.com/hanzoteam/server/server/v8/channels/app"
|
||||
)
|
||||
|
||||
func (api *API) InitRecap() {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user