mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Serviceaccounts: refactor list using server admin page (#44122)
* refactor: use server admin listing serviceaccounts Co-authored-by: Jguer <joao.guerreiro@grafana.com> * setup route for specifc service account * add routes to index * main issue with spelling mistakes * feat: make routes /serviceacconts/id for navModel Co-authored-by: Jguer <joao.guerreiro@grafana.com> Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com> * Update pkg/services/serviceaccounts/manager/service.go Co-authored-by: Jguer <joao.guerreiro@grafana.com> Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { OrgRole, Unit } from '.';
|
||||
import { WithAccessControlMetadata } from '@grafana/data';
|
||||
import { OrgRole } from '.';
|
||||
|
||||
export interface OrgServiceAccount {
|
||||
serviceAccountId: number;
|
||||
@@ -23,26 +24,25 @@ export interface ServiceAccount {
|
||||
orgId?: number;
|
||||
}
|
||||
|
||||
export interface ServiceAccountDTO {
|
||||
id: number;
|
||||
login: string;
|
||||
export interface ServiceAccountDTO extends WithAccessControlMetadata {
|
||||
orgId: number;
|
||||
userId: number;
|
||||
email: string;
|
||||
name: string;
|
||||
isGrafanaAdmin: boolean;
|
||||
isDisabled: boolean;
|
||||
isAdmin?: boolean;
|
||||
updatedAt?: string;
|
||||
authLabels?: string[];
|
||||
avatarUrl?: string;
|
||||
orgId?: number;
|
||||
licensedRole?: string;
|
||||
permissions?: string[];
|
||||
teams?: Unit[];
|
||||
orgs?: Unit[];
|
||||
login: string;
|
||||
role: string;
|
||||
lastSeenAt: string;
|
||||
lastSeenAtAge: string;
|
||||
}
|
||||
|
||||
export interface ServiceAccountProfileState {
|
||||
serviceAccount: ServiceAccountDTO;
|
||||
isLoading: boolean;
|
||||
}
|
||||
|
||||
export interface ServiceAccountsState {
|
||||
serviceAccounts: OrgServiceAccount[];
|
||||
serviceAccounts: ServiceAccountDTO[];
|
||||
searchQuery: string;
|
||||
searchPage: number;
|
||||
isLoading: boolean;
|
||||
|
||||
Reference in New Issue
Block a user