mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Orders results of the GetAll remote clusters store method (#27548)
This commit is contained in:
parent
e5a3dd7fea
commit
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)
|
||||
|
Loading…
Reference in New Issue
Block a user