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

Merged
merged 35 commits into from
Mar 27, 2025
Merged

CB-5839 fix: resource blocking #3199

merged 35 commits into from
Mar 27, 2025

Conversation

Wroud
Copy link
Member

@Wroud Wroud commented Jan 20, 2025

No description provided.

@Wroud Wroud self-assigned this Jan 20, 2025
SychevAndrey
SychevAndrey previously approved these changes 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

devnaumov
devnaumov previously approved these changes Jan 22, 2025
@sergeyteleshev
Copy link
Contributor

Also have found this case

2025-01-22.13.46.55.mov

sergeyteleshev
sergeyteleshev previously approved these changes Jan 27, 2025
@Wroud Wroud dismissed stale reviews from sergeyteleshev and devnaumov via fbce66e February 19, 2025 09:55
sergeyteleshev
sergeyteleshev previously approved these changes Feb 19, 2025
sergeyteleshev
sergeyteleshev previously approved these changes Feb 19, 2025
@SychevAndrey SychevAndrey self-requested a review February 19, 2025 15:48
SychevAndrey
SychevAndrey previously approved these changes Feb 19, 2025
devnaumov
devnaumov previously approved these changes Feb 19, 2025
@Wroud Wroud merged commit e961d7c into devel Mar 27, 2025
4 of 5 checks passed
@Wroud Wroud deleted the fix/cb-5839/resource-blocking branch March 27, 2025 12:03
dupen01 pushed a commit to dupen01/cloudbeaver that referenced this pull request Mar 28, 2025
* CB-5839 fix: resource blocking

* CB-5839 fix: unlock nav resources

* fix: connections loading

* feat: select new folder or connection

* chore: localization

* chore: revert improvements

* fix: load connections list for connection selector

* fix: error

* fix: wrong action handler

* CB-5839 fix: resources tree validation

* fix: reaction concurrency

* CB-5839 fixes build for new CellFormatter (ObjectMenuCell) after merge conflicts

* СB-5839 changes delay for menu item loaders

* CB-5839 fix: keys intersection detection in resources

* CB-5839 fix: keys intersection detection in resources

---------

Co-authored-by: mr-anton-t <[email protected]>
Co-authored-by: Daria Marutkina <[email protected]>
Co-authored-by: sergeyteleshev <[email protected]>
Co-authored-by: Evgenia <[email protected]>
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.

7 participants