Skip to content

Commit

Permalink
Increase cap on projects that can be fetched at once
Browse files Browse the repository at this point in the history
For some usages (doppler setup, completions) 100 was not enough. It has
been raised to 1000.
  • Loading branch information
emily-curry committed Nov 14, 2024
1 parent f959136 commit 5571dd2
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 5571dd2

Please sign in to comment.