Skip to content

Commit

Permalink
DXCDT-405: Fix incorrect number rendered in header for `auth0 apps li…
Browse files Browse the repository at this point in the history
…st` (#674)

Co-authored-by: Will Vedder <[email protected]>
Co-authored-by: Sergiu Ghitea <[email protected]>
  • Loading branch information
3 people authored Mar 14, 2023
1 parent 0ff550a commit bc227e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions internal/cli/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions internal/display/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
}
Expand Down Expand Up @@ -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 == "":
Expand Down

0 comments on commit bc227e4

Please sign in to comment.