Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering accounts by role in API #611

Open
nhoening opened this issue Mar 23, 2023 · 0 comments
Open

Allow filtering accounts by role in API #611

nhoening opened this issue Mar 23, 2023 · 0 comments
Labels

Comments

@nhoening
Copy link
Contributor

A follow-up ticket from the Accounts page issue: allow filtering by account role (e.g. role="<service> subscriber") in the Accounts API (/index). The util function get_accounts already supports passing an account role, so this feature would just require writing data.schemas.account.AccountRoleField using marshmallow.

Originally posted by @Flix6x in #605 (comment)

Addition (NH): I would also enable the account list page to add this filtering. The design question then is how to offer a list of possible account roles to filter for.
Where to get them from: I guess the UI view can get the list of account roles present in the current list of accounts (gotten from /index)
How to show them: A simple dropdown might be okay for now (one option, the default, should be to not filter).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant