Skip to content

Commit

Permalink
Merge pull request #466 from DopplerHQ/emily/projects-list-increase
Browse files Browse the repository at this point in the history
Increase cap on projects that can be fetched at once
  • Loading branch information
emily-curry authored Nov 15, 2024
2 parents f959136 + 5571dd2 commit 29387be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func deleteProjects(cmd *cobra.Command, args []string) {
}

if !utils.Silent {
info, err := http.GetProjects(localConfig.APIHost.Value, utils.GetBool(localConfig.VerifyTLS.Value, true), localConfig.Token.Value, 1, 100)
info, err := http.GetProjects(localConfig.APIHost.Value, utils.GetBool(localConfig.VerifyTLS.Value, true), localConfig.Token.Value, 1, 1000)
if !err.IsNil() {
utils.HandleError(err.Unwrap(), err.Message)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func setup(cmd *cobra.Command, args []string) {
break
}

projects, httpErr := http.GetProjects(localConfig.APIHost.Value, utils.GetBool(localConfig.VerifyTLS.Value, true), localConfig.Token.Value, 1, 100)
projects, httpErr := http.GetProjects(localConfig.APIHost.Value, utils.GetBool(localConfig.VerifyTLS.Value, true), localConfig.Token.Value, 1, 1000)
if !httpErr.IsNil() {
utils.HandleError(httpErr.Unwrap(), httpErr.Message)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
func GetProjectIDs(config models.ScopedOptions) ([]string, Error) {
utils.RequireValue("token", config.Token.Value)

info, err := http.GetProjects(config.APIHost.Value, utils.GetBool(config.VerifyTLS.Value, true), config.Token.Value, 1, 100)
info, err := http.GetProjects(config.APIHost.Value, utils.GetBool(config.VerifyTLS.Value, true), config.Token.Value, 1, 1000)
if !err.IsNil() {
return nil, Error{Err: err.Unwrap(), Message: err.Message}
}
Expand Down

0 comments on commit 29387be

Please sign in to comment.