Add user list command #427
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#427
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "admin-list-users"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +16,4 @@
Action: func(cmd *cli.Context) error {
// TODO: this is just a stub for all admin actions
// there is no default admin action
return nil
return cli.ShowCommandHelp(cmd, "")
would be a good default behaviour i think@ -0,0 +43,4 @@
return err
}
fields, err := userFieldsFlag.GetValues(cmd)
if you put that before the request, flag validation will fail faster (i.e. before waiting for the request)
@ -0,0 +13,4 @@
)
var cmdAdminUsers = cli.Command{
Name: "user",
users
@ -8,4 +8,5 @@ var (
catSetup = "SETUP"
catEntities = "ENTITIES"
catHelpers = "HELPERS"
catAdmin = "ADMIN"
if we put all admin commands under the
tea admin
namespace, do we need aADMIN
category? the admin command will be the only one in this category.. though I agree it shouldn't be in any of the existing categories.. hm.maybe rename it to a more generic
MISC
?How about add statistics for users and search by name and email keyword? It seems list users is not very useful.
@lunny The API
/admin/users
doesn't provide this functionality. There is/users/search?q=
, but that also just searches in the name field.I'd say such feature requires upstream changes.