Orders results of the GetAll remote clusters store method (#27548)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e5a3dd7fea
Коммит
b596430920
@@ -14,8 +14,6 @@ import (
|
||||
)
|
||||
|
||||
func TestGetRemoteClusters(t *testing.T) {
|
||||
t.Skip("MM-59324")
|
||||
|
||||
t.Run("Should not work if the remote cluster service is not enabled", func(t *testing.T) {
|
||||
th := Setup(t)
|
||||
defer th.TearDown()
|
||||
|
||||
@@ -172,7 +172,8 @@ func (s sqlRemoteClusterStore) GetAll(offset, limit int, filter model.RemoteClus
|
||||
|
||||
query := s.getQueryBuilder().
|
||||
Select(remoteClusterFields("rc")...).
|
||||
From("RemoteClusters rc")
|
||||
From("RemoteClusters rc").
|
||||
OrderBy("rc.DisplayName, rc.Name")
|
||||
|
||||
if filter.InChannel != "" {
|
||||
query = query.Where("rc.RemoteId IN (SELECT scr.RemoteId FROM SharedChannelRemotes scr WHERE scr.ChannelId = ?)", filter.InChannel)
|
||||
|
||||
Ссылка в новой задаче
Block a user