mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add number of tokens to the service accounts view (#44919)
* feat: add serviceaccountDTO * WIP * feat: listing number of tokens for a given service account * nit: removed fmt * Update pkg/services/serviceaccounts/database/database.go * Update public/app/features/serviceaccounts/ServiceAccountsListPage.tsx * fixes * align DTOProfile data to the frontend * reviewed myself fixes * fix: tests fix
This commit is contained in:
@@ -25,15 +25,13 @@ export interface ServiceAccount {
|
||||
}
|
||||
|
||||
export interface ServiceAccountDTO extends WithAccessControlMetadata {
|
||||
id: number;
|
||||
orgId: number;
|
||||
userId: number;
|
||||
email: string;
|
||||
tokens: number;
|
||||
name: string;
|
||||
avatarUrl?: string;
|
||||
login: string;
|
||||
avatarUrl?: string;
|
||||
role: string;
|
||||
lastSeenAt: string;
|
||||
lastSeenAtAge: string;
|
||||
}
|
||||
|
||||
export interface ServiceAccountProfileState {
|
||||
|
||||
Reference in New Issue
Block a user