From 96cb02bf421293236848647427ebb778c7601245 Mon Sep 17 00:00:00 2001 From: Michael Christenson II Date: Wed, 13 Dec 2023 10:18:56 -0500 Subject: [PATCH] Dxcdt 578 increase results amount in lists (#940) * Bump github.com/auth0/go-auth0 from 1.2.0 to 1.3.0 (#908) Bumps [github.com/auth0/go-auth0](https://github.com/auth0/go-auth0) from 1.2.0 to 1.3.0. - [Release notes](https://github.com/auth0/go-auth0/releases) - [Changelog](https://github.com/auth0/go-auth0/blob/main/CHANGELOG.md) - [Commits](https://github.com/auth0/go-auth0/compare/v1.2.0...v1.3.0) --- updated-dependencies: - dependency-name: github.com/auth0/go-auth0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * dxcdt-615-goreleaser-upgrade (#909) * Fix: Remove or replace deprecations for GoReleaser config Remove deprecated replacements Replace deprecated brews tap Replace deprecated scoop entries Fix name_template to reflect exact current naming conventions * DXCDT-582: Convert audience into a drop down in interactive mode in test token cmd (#906) Convert audience into a drop down in interactive mode in test token cmd * Bump github.com/auth0/go-auth0 from 1.2.0 to 1.3.0 (#908) Bumps [github.com/auth0/go-auth0](https://github.com/auth0/go-auth0) from 1.2.0 to 1.3.0. - [Release notes](https://github.com/auth0/go-auth0/releases) - [Changelog](https://github.com/auth0/go-auth0/blob/main/CHANGELOG.md) - [Commits](https://github.com/auth0/go-auth0/compare/v1.2.0...v1.3.0) --- updated-dependencies: - dependency-name: github.com/auth0/go-auth0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * DXCDT-582: Convert audience into a drop down in interactive mode in test token cmd (#906) Convert audience into a drop down in interactive mode in test token cmd Title Os for final release name fit * Bump goreleaser version * Increase default page amount to 100 results per page * Updated docs for defalut list limit --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> --- docs/auth0_apis_list.md | 2 +- docs/auth0_apps_list.md | 2 +- docs/auth0_orgs_list.md | 2 +- docs/auth0_orgs_members_list.md | 2 +- docs/auth0_orgs_roles_list.md | 2 +- docs/auth0_orgs_roles_members_list.md | 2 +- docs/auth0_roles_list.md | 2 +- docs/auth0_roles_permissions_list.md | 2 +- docs/auth0_users_roles_show.md | 2 +- docs/auth0_users_search.md | 2 +- internal/cli/actions.go | 2 +- internal/cli/apps.go | 2 +- internal/cli/custom_domains.go | 2 +- internal/cli/log_streams.go | 2 +- internal/cli/logs.go | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/auth0_apis_list.md b/docs/auth0_apis_list.md index 1c3d3c02c..3c45f3d15 100644 --- a/docs/auth0_apis_list.md +++ b/docs/auth0_apis_list.md @@ -26,7 +26,7 @@ auth0 apis list [flags] ``` --json Output in json format. - -n, --number int Number of APIs to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of APIs to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_apps_list.md b/docs/auth0_apps_list.md index 66af74c64..c5e89203e 100644 --- a/docs/auth0_apps_list.md +++ b/docs/auth0_apps_list.md @@ -27,7 +27,7 @@ auth0 apps list [flags] ``` --json Output in json format. - -n, --number int Number of apps to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of apps to retrieve. Minimum 1, maximum 1000. (default 100) -r, --reveal-secrets Display the application secrets ('signing_keys', 'client_secret') as part of the command output. ``` diff --git a/docs/auth0_orgs_list.md b/docs/auth0_orgs_list.md index c35b08953..fb165f5af 100644 --- a/docs/auth0_orgs_list.md +++ b/docs/auth0_orgs_list.md @@ -26,7 +26,7 @@ auth0 orgs list [flags] ``` --json Output in json format. - -n, --number int Number of organizations to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of organizations to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_orgs_members_list.md b/docs/auth0_orgs_members_list.md index 442bccaad..12058e087 100644 --- a/docs/auth0_orgs_members_list.md +++ b/docs/auth0_orgs_members_list.md @@ -26,7 +26,7 @@ auth0 orgs members list [flags] ``` --json Output in json format. - -n, --number int Number of organization members to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of organization members to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_orgs_roles_list.md b/docs/auth0_orgs_roles_list.md index fce9eef2b..d437b17c5 100644 --- a/docs/auth0_orgs_roles_list.md +++ b/docs/auth0_orgs_roles_list.md @@ -26,7 +26,7 @@ auth0 orgs roles list [flags] ``` --json Output in json format. - -n, --number int Number of organization roles to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of organization roles to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_orgs_roles_members_list.md b/docs/auth0_orgs_roles_members_list.md index 7c423f8e7..da59a7ced 100644 --- a/docs/auth0_orgs_roles_members_list.md +++ b/docs/auth0_orgs_roles_members_list.md @@ -28,7 +28,7 @@ auth0 orgs roles members list [flags] ``` --json Output in json format. - -n, --number int Number of members to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of members to retrieve. Minimum 1, maximum 1000. (default 100) -r, --role-id string Role Identifier. ``` diff --git a/docs/auth0_roles_list.md b/docs/auth0_roles_list.md index 6f67a5bf6..cbcc5ba02 100644 --- a/docs/auth0_roles_list.md +++ b/docs/auth0_roles_list.md @@ -26,7 +26,7 @@ auth0 roles list [flags] ``` --json Output in json format. - -n, --number int Number of roles to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of roles to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_roles_permissions_list.md b/docs/auth0_roles_permissions_list.md index 3a4657680..289bff008 100644 --- a/docs/auth0_roles_permissions_list.md +++ b/docs/auth0_roles_permissions_list.md @@ -26,7 +26,7 @@ auth0 roles permissions list [flags] ``` --json Output in json format. - -n, --number int Number of permissions to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of permissions to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_users_roles_show.md b/docs/auth0_users_roles_show.md index 1f5fc76f6..513c03b52 100644 --- a/docs/auth0_users_roles_show.md +++ b/docs/auth0_users_roles_show.md @@ -26,7 +26,7 @@ auth0 users roles show [flags] ``` --json Output in json format. - -n, --number int Number of user roles to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of user roles to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_users_search.md b/docs/auth0_users_search.md index f24111285..66825bb15 100644 --- a/docs/auth0_users_search.md +++ b/docs/auth0_users_search.md @@ -27,7 +27,7 @@ auth0 users search [flags] ``` --json Output in json format. - -n, --number int Number of users, that match the search criteria, to retrieve. Minimum 1, maximum 1000. If limit is hit, refine the search query. (default 50) + -n, --number int Number of users, that match the search criteria, to retrieve. Minimum 1, maximum 1000. If limit is hit, refine the search query. (default 100) -q, --query email:"user123@*.com" OR (user_id:"user-id-123" AND name:"Bob") Search query in Lucene query syntax. For example: email:"user123@*.com" OR (user_id:"user-id-123" AND name:"Bob") diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 5885c11ff..1efe9485b 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -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) diff --git a/internal/cli/apps.go b/internal/cli/apps.go index 010eae98f..72c35847b 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -25,7 +25,7 @@ const ( appTypeRegularWeb = "regular_web" appTypeNonInteractive = "non_interactive" appDefaultURL = "http://localhost:3000" - defaultPageSize = 50 + defaultPageSize = 100 ) var ( diff --git a/internal/cli/custom_domains.go b/internal/cli/custom_domains.go index e36e234cc..576b4e9f2 100644 --- a/internal/cli/custom_domains.go +++ b/internal/cli/custom_domains.go @@ -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) diff --git a/internal/cli/log_streams.go b/internal/cli/log_streams.go index d33e92247..3873649b9 100644 --- a/internal/cli/log_streams.go +++ b/internal/cli/log_streams.go @@ -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) diff --git a/internal/cli/logs.go b/internal/cli/logs.go index 7792f95c8..89f778f1a 100644 --- a/internal/cli/logs.go +++ b/internal/cli/logs.go @@ -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.")