Skip to content

Commit

Permalink
Increase default page amount to 100 results per page
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Christenson II committed Dec 8, 2023
1 parent 5265f19 commit 987e898
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/cli/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func listActionsCmd(cli *cli) *cobra.Command {
var list *management.ActionList

if err := ansi.Waiting(func() (err error) {
list, err = cli.api.Action.List(cmd.Context(), management.PerPage(100))
list, err = cli.api.Action.List(cmd.Context(), management.PerPage(defaultPageSize))
return err
}); err != nil {
return fmt.Errorf("failed to retrieve actions: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
appTypeRegularWeb = "regular_web"
appTypeNonInteractive = "non_interactive"
appDefaultURL = "http://localhost:3000"
defaultPageSize = 50
defaultPageSize = 100
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/custom_domains.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func listCustomDomainsCmd(cli *cli) *cobra.Command {

if err := ansi.Waiting(func() error {
var err error
list, err = cli.api.CustomDomain.List(cmd.Context())
list, err = cli.api.CustomDomain.List(cmd.Context(), management.PerPage(defaultPageSize))
return err
}); err != nil {
return fmt.Errorf("An unexpected error occurred: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/log_streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func listLogStreamsCmd(cli *cli) *cobra.Command {

if err := ansi.Waiting(func() error {
var err error
list, err = cli.api.LogStream.List(cmd.Context())
list, err = cli.api.LogStream.List(cmd.Context(), management.PerPage(defaultPageSize))
return err
}); err != nil {
return fmt.Errorf("An unexpected error occurred: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func listLogsCmd(cli *cli) *cobra.Command {
}

logsFilter.RegisterString(cmd, &inputs.Filter, "")
logsNum.RegisterInt(cmd, &inputs.Num, 100)
logsNum.RegisterInt(cmd, &inputs.Num, defaultPageSize)

cmd.Flags().BoolVar(&cli.json, "json", false, "Output in json format.")

Expand Down

0 comments on commit 987e898

Please sign in to comment.