List serviceaccounts (#43672)

* Serviceaccounts: feat - tabview for serviceaccounts

* WIP

* feat: listing all service accounts

* refactor: needed to remove showInvitees as not present in serviceaccounts

* add token column in the list

* add token to orgserviceaccount

* Update pkg/services/serviceaccounts/api/api.go
This commit is contained in:
Eric Leijonmarck
2022-01-12 13:23:00 +01:00
committed by GitHub
parent c1a9a36bd2
commit 6409e761b5
9 changed files with 41 additions and 41 deletions

View File

@@ -1,16 +1,15 @@
import { OrgRole, Unit } from '.';
import { SelectableValue } from '@grafana/data';
export interface OrgServiceAccount {
serviceAccountId: number;
avatarUrl: string;
email: string;
lastSeenAt: string;
lastSeenAtAge: string;
login: string;
name: string;
displayName: string;
orgId: number;
role: OrgRole;
serviceAccountId: number;
tokens: number[];
}
export interface ServiceAccount {
@@ -20,6 +19,7 @@ export interface ServiceAccount {
login: string;
email: string;
name: string;
displayName: string;
orgId?: number;
}
@@ -35,7 +35,6 @@ export interface ServiceAccountDTO {
authLabels?: string[];
avatarUrl?: string;
orgId?: number;
lastSeenAtAge?: string;
licensedRole?: string;
permissions?: string[];
teams?: Unit[];
@@ -48,29 +47,3 @@ export interface ServiceAccountsState {
searchPage: number;
isLoading: boolean;
}
export interface ServiceAccountSession {
id: number;
createdAt: string;
clientIp: string;
isActive: boolean;
seenAt: string;
}
export interface ServiceAccountOrg {
name: string;
orgId: number;
role: OrgRole;
}
export type ServiceAccountFilter = Record<string, string | boolean | SelectableValue[]>;
export interface ServiceaccountListAdminState {
serviceaccounts: ServiceAccountDTO[];
query: string;
perPage: number;
page: number;
totalPages: number;
showPaging: boolean;
filters: ServiceAccountFilter[];
isLoading: boolean;
}