Merge pull request #1051 from dbeaver/fix/CB-2410-new-connections

fix(core-connections, plugin-connections-administration): CB-2410 Show new connections on the top of the list
This commit is contained in:
Konstantin Vasilev
2022-08-18 12:12:44 +03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -177,7 +177,7 @@ export class ConnectionInfoResource extends CachedMapResource<IConnectionInfoPar
...this.getIncludesMap(key),
});
return this.add(connection);
return this.add(connection, true);
}
async searchDatabases(hosts: string[]): Promise<AdminConnectionSearchInfo[]> {
@@ -64,6 +64,7 @@ export class ConnectionsAdministrationController {
this.isProcessing = true;
try {
await this.connectionInfoResource.refresh(CachedMapAllKey);
this.connectionInfoResource.cleanNewFlags();
this.notificationService.logSuccess({ title: 'connections_administration_tools_refresh_success' });
} catch (exception: any) {
this.notificationService.logException(exception, 'connections_administration_tools_refresh_fail');