Skip to content

dbeaver/pro#6150 sync options part #3577

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

Merged
merged 3 commits into from
Jul 9, 2025

Conversation

devnaumov
Copy link
Member

@devnaumov devnaumov commented Jul 8, 2025

closes 6150

Two additional bugs were fixed as part of this ticket:

If custom properties were defined and any changes were made to the connection options without visiting the Properties tab, all custom properties were deleted.

If custom properties were created and the driver was changed, the properties remained persistent across drivers.

@devnaumov devnaumov requested review from Wroud and sergeyteleshev July 8, 2025 17:40
Comment on lines +52 to +58
useExecutor({
executor: optionsPart.onDriverIdChange,
handlers: [
function handleDriverChange() {
state.reset();
},
],
Copy link
Member

Choose a reason for hiding this comment

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

This may not work if the component is unmounted (when the options tab is active)

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree, seems like it is better to do it inside the part

Copy link
Member Author

@devnaumov devnaumov Jul 9, 2025

Choose a reason for hiding this comment

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

We dont have access to this state in part, it exists only on the component level, because of this we dont want to run it if the component is ummounted

@Wroud Wroud merged commit dd4691c into devel Jul 9, 2025
10 checks passed
@Wroud Wroud deleted the dbeaver/pro#6150-driver-properties-delete branch July 9, 2025 19:08
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