MM-18357: Adds pagination to team search. (#12910)

* MM-18357: Adds pagination to team search.

* MM-18357: Adds new client method for paginated requests.

* MM-18357: Adds feedback about non-supported pagination-permissions combo.

* MM-18357: Removes unnecessary conversion.

* MM-18357: Removes paginate parameter and uses nil on page and perpage instead.
Этот коммит содержится в:
Martin Kraft
2019-11-28 08:11:02 -05:00
коммит произвёл GitHub
родитель 955f8c4e8e
Коммит 14bcd1f0a1
11 изменённых файлов: 187 добавлений и 7 удалений

Просмотреть файл

@@ -310,7 +310,7 @@ func searchTeamCmdF(command *cobra.Command, args []string) error {
var teams []*model.Team
for _, searchTerm := range args {
foundTeams, err := a.SearchAllTeams(searchTerm)
foundTeams, _, err := a.SearchAllTeams(&model.TeamSearch{Term: searchTerm})
if err != nil {
return err
}