Conversation
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
SummaryThis PR adds connection grouping functionality with collapsible folders, drag-and-drop support, and group management. While the grid view was fully updated to support groups, the list view was not updated and will not display the group structure. Issue Details (click to expand)WARNING
Other Observations (not in diff)
Files Reviewed (11 files)
|
|
@fandujar For example, if you move connections between groups, you’ll notice that after moving them some connections stop working and show a “Connection not found” error. This does not happen on the main branch. I also noticed some issues with the split screen in the lateral sidebar. You can reproduce them by selecting multiple connections with Ctrl + click and then splitting the screen after the selection. By the way, the feature is very interesting, and it would be great if these issues could be fixed. I would also suggest removing the “Remove from Group” option when the group is “Ungrouped.” |
|
@debba, I think I managed to fix all issues. Let me know if you find something else. |
There was a problem hiding this comment.
I analyzed the PR and found a performance issue in the persistence module: load_connections_file reads the keychain for all saved connections every time it is called. Since this function is invoked on every DB operation (connect, query, schema, tables...) via find_connection_by_id, this generates N keychain reads per single operation, where N is the number of saved connections.
The suggestion proposes making load_connections_file a raw function (JSON parsing only, no keychain access). find_connection_by_id already fetches the password only for the specific connection it finds, so no logic is lost.
|
@fandujar yes it's working now, but I suggested you some changes to do, because now for each operation unlock password to all connections. |
|
Hi @debba Thanks for finding this issue and fixing it. Can you check my PR again, please? |
|
Merged. Thanks a lot for your contribution. |
PR Description
Feature: Add connections group
Screenhots:
