From bc227e497a52551de70b98e95ba86f3ffb9eccfd Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Tue, 14 Mar 2023 04:40:38 -0400 Subject: [PATCH] DXCDT-405: Fix incorrect number rendered in header for `auth0 apps list` (#674) Co-authored-by: Will Vedder Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> --- internal/cli/apps.go | 1 + internal/display/apps.go | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/cli/apps.go b/internal/cli/apps.go index 963b4a342..7e4fcdf5d 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -225,6 +225,7 @@ func listAppsCmd(cli *cli) *cobra.Command { cmd.Context(), inputs.Number, func(opts ...management.RequestOption) (result []interface{}, hasNext bool, err error) { + opts = append(opts, management.Parameter("is_global", "false")) res, apiErr := cli.api.Client.List(opts...) if apiErr != nil { return nil, false, apiErr diff --git a/internal/display/apps.go b/internal/display/apps.go index 93ef427d9..eef7dc8a5 100644 --- a/internal/display/apps.go +++ b/internal/display/apps.go @@ -116,10 +116,6 @@ func (r *Renderer) ApplicationList(clients []*management.Client, revealSecrets b var res []View for _, c := range clients { - if auth0.StringValue(c.Name) == deprecatedAppName { - continue - } - if !revealSecrets { c.ClientSecret = auth0.String("") } @@ -185,9 +181,6 @@ func makeApplicationView(client *management.Client, revealSecrets bool) *applica } } -// TODO(cyx): determine if there's a better way to filter this out. -const deprecatedAppName = "All Applications" - func FriendlyAppType(appType string) string { switch { case appType == "":