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-5839 fix: resource blocking #3199

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open

Conversation

Wroud
Copy link
Member

@Wroud Wroud commented Jan 20, 2025

No description provided.

@Wroud Wroud self-assigned this Jan 20, 2025
@sergeyteleshev
Copy link
Contributor

The case:

  • Connect to MySQL
  • Wait 7-10 minutes
  • Go to Postgres (or another base)
  • Pick any table
  • Go to table preferences
  • See the infinite loader
2025-01-21.15.04.36.mov

Comment on lines 296 to 301
if (!nodeId.startsWith('database://')) {
return;
}

const indexOfConnectionPart = nodeId.indexOf('/', 11);
const connectionId = nodeId.slice(11, indexOfConnectionPart > -1 ? indexOfConnectionPart : nodeId.length);
Copy link
Contributor

Choose a reason for hiding this comment

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

lets remove magic numbers and move the key database:// to something like NodeManagerUtils.DatabaseNodeBase
cloudbeaver/webapp/packages/core-navigation-tree/src/NodesManager/NodeManagerUtils.ts

and replace this 11 with its length

Copy link
Member Author

Choose a reason for hiding this comment

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

refactored

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.

4 participants