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:
2026-08-28 23:35:36 -07:00
parent 9fb9b3bcf9
commit 8feb24ea1f
1563 changed files with 4598 additions and 4569 deletions
+3 -3
View File
@@ -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.
+3 -3
View File
@@ -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"
)
+2 -2
View File
@@ -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"
)
+4 -4
View File
@@ -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 {
+12 -12
View File
@@ -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 {
+1 -1
View File
@@ -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"
)
+1 -1
View File
@@ -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() {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+4 -4
View File
@@ -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
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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() {
+7 -7
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+3 -3
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+5 -5
View File
@@ -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 (
+4 -4
View File
@@ -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() {
+3 -3
View File
@@ -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) {
+3 -3
View File
@@ -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"
)
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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() {
+3 -3
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+4 -4
View File
@@ -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 (
+4 -4
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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"
)
+5 -5
View File
@@ -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 (
+4 -4
View File
@@ -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 = ""
+5 -5
View File
@@ -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() {
+1 -1
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+4 -4
View File
@@ -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
+2 -2
View 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 {
+4 -4
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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 {
+3 -3
View File
@@ -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-----
+4 -4
View File
@@ -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() {
+2 -2
View 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) InitLicenseLocal() {
+5 -5
View File
@@ -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"
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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() {
+6 -6
View File
@@ -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"
)
+2 -2
View File
@@ -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() {
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+4 -4
View File
@@ -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 (
+1 -1
View File
@@ -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() {
+6 -6
View File
@@ -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) {
+5 -5
View File
@@ -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() {
+1 -1
View File
@@ -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"
)
+2 -2
View File
@@ -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() {
+8 -8
View File
@@ -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
+3 -3
View File
@@ -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) {
+1 -1
View File
@@ -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"
)
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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) {
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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) {
+3 -3
View File
@@ -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) {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -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) {
+3 -3
View File
@@ -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