diff --git a/public/app/features/admin/UserLdapSyncInfo.tsx b/public/app/features/admin/UserLdapSyncInfo.tsx index 68a09d1856e..3a853758ceb 100644 --- a/public/app/features/admin/UserLdapSyncInfo.tsx +++ b/public/app/features/admin/UserLdapSyncInfo.tsx @@ -21,10 +21,8 @@ export class UserLdapSyncInfo extends PureComponent { render() { const { ldapSyncInfo, user } = this.props; - const prevSyncSuccessful = ldapSyncInfo && ldapSyncInfo.prevSync; const nextSyncSuccessful = ldapSyncInfo && ldapSyncInfo.nextSync; const nextSyncTime = nextSyncSuccessful ? dateTimeFormat(ldapSyncInfo.nextSync, { format }) : ''; - const prevSyncTime = prevSyncSuccessful ? dateTimeFormat(ldapSyncInfo.prevSync!.started, { format }) : ''; const debugLDAPMappingURL = `${debugLDAPMappingBaseURL}?user=${user && user.login}`; return ( @@ -54,17 +52,6 @@ export class UserLdapSyncInfo extends PureComponent { )} - - {prevSyncSuccessful ? ( - <> - Last synchronisation - {prevSyncTime} - Successful - - ) : ( - Last synchronisation - )} - diff --git a/public/app/features/admin/ldap/LdapSyncInfo.tsx b/public/app/features/admin/ldap/LdapSyncInfo.tsx index aaef28e1288..00e65c83804 100644 --- a/public/app/features/admin/ldap/LdapSyncInfo.tsx +++ b/public/app/features/admin/ldap/LdapSyncInfo.tsx @@ -26,8 +26,6 @@ export class LdapSyncInfo extends PureComponent { const { ldapSyncInfo } = this.props; const { isSyncing } = this.state; const nextSyncTime = dateTimeFormat(ldapSyncInfo.nextSync, { format }); - const prevSyncSuccessful = ldapSyncInfo && ldapSyncInfo.prevSync; - const prevSyncTime = prevSyncSuccessful ? dateTimeFormat(ldapSyncInfo.prevSync!.started, { format }) : ''; return ( <> @@ -54,15 +52,6 @@ export class LdapSyncInfo extends PureComponent { Next scheduled synchronisation {nextSyncTime} - - Last synchronisation - {prevSyncSuccessful && ( - <> - {prevSyncTime} - Successful - - )} - diff --git a/public/app/types/ldap.ts b/public/app/types/ldap.ts index 9215cb3628f..55f330064e4 100644 --- a/public/app/types/ldap.ts +++ b/public/app/types/ldap.ts @@ -12,7 +12,6 @@ export interface SyncInfo { enabled: boolean; schedule: string; nextSync: string; - prevSync?: SyncResult; } export interface LdapUserSyncInfo { @@ -21,14 +20,6 @@ export interface LdapUserSyncInfo { status?: string; } -export interface SyncResult { - started: string; - elapsed: string; - UpdatedUserIds: number[]; - MissingUserIds: number[]; - FailedUsers?: FailedUser[]; -} - export interface FailedUser { Login: string; Error: string;