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:
Eric Leijonmarck
2022-02-08 14:31:34 +01:00
committed by GitHub
parent 788f77b7da
commit 79340c087f
12 changed files with 99 additions and 49 deletions

View File

@@ -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 {