Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-4841 fix: doesn't show database auth login popup when filters enabled #2510

Conversation

sergeyteleshev
Copy link
Contributor

No description provided.

@sergeyteleshev sergeyteleshev self-assigned this Mar 27, 2024
Comment on lines 505 to 510
runInAction(() => {
this.userData.filter = value;
this.userData.filter = value;

runInAction(() => {
for (const nodeState of this.state.values()) {
nodeState.showInFilter = false;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like case fix but not fix of the problem
actual problem is here:

const expanded = elementsTree.isNodeExpanded(child, true);

explanation:
loadTree triggered concurrently with user change
userData updated but it state isn't applied yet

@sergeyteleshev sergeyteleshev requested a review from Wroud March 28, 2024 20:42
@@ -56,12 +56,10 @@ export class ConnectionAuthService extends Dependency {
return null;
}

let connection = this.connectionInfoResource.get(key);
const connection = await this.connectionInfoResource.load(key, ['includeAuthNeeded', 'includeNetworkHandlersConfig', 'includeCredentialsSaved']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to load the ['includeAuthNeeded', 'includeNetworkHandlersConfig', 'includeCredentialsSaved'] includes only if the function is near the network handlers initialization. This would avoid loading useless data, for example, if we are already connected and the function merely returns the connection.

@devnaumov devnaumov requested a review from Wroud April 4, 2024 20:47
…can-hardly-be-closed-after-relogin-with-an-applied-navigator-filter
@sergeyteleshev sergeyteleshev requested a review from devnaumov April 5, 2024 13:12
Copy link
Member

@Wroud Wroud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current fix seems too complicated

@Wroud Wroud closed this Apr 10, 2024
@serge-rider serge-rider deleted the CB-4841-connection-auth-dialog-appears-and-can-hardly-be-closed-after-relogin-with-an-applied-navigator-filter branch April 29, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants