Skip to content

dbeaver/pro#9522 integrate profile selector to connection form#4440

Open
sergeyteleshev wants to merge 10 commits into
develfrom
9522-cb-network-profiles---add-to-connection-settings
Open

dbeaver/pro#9522 integrate profile selector to connection form#4440
sergeyteleshev wants to merge 10 commits into
develfrom
9522-cb-network-profiles---add-to-connection-settings

Conversation

@sergeyteleshev

@sergeyteleshev sergeyteleshev commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 8 complexity

Metric Results
Complexity 8

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

SychevAndrey
SychevAndrey previously approved these changes Jul 1, 2026

@SychevAndrey SychevAndrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍🏻


.dbv-kit-select__item {
display: block;
display: flex;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

have you checked ellipsis after this fix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

all cool
Screenshot 2026-07-02 at 18 04 24

* When true for an item, it acts as a group boundary — items are split into
* SelectGroup chunks separated by a CSS border. Separator items are not rendered.
*/
isSeparator?: PropertyGetter<ItemType, boolean>;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please use SelectSeparator as separator

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2026-07-02 at 17 53 19

const getDefaultState = (): INetworkHandlerConfig => SSH_DEFAULT_HANDLER_CONFIG() as INetworkHandlerConfig;

export class ConnectionFormSSHPart extends FormPart<INetworkHandlerConfig, IConnectionFormState> {
networkProfileConfig: INetworkHandlerConfig | null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should not keep this state on the part level, add networkProfileId to the state of the part and use it, please do not declare separate field and methods to this part, part should operate only on its own state

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed it completely

secureProperties: schema.record(schema.string(), schema.any()).optional(),
userName: schema.string().optional(),
authType: schema.preprocess(nullToUndefined, schema.nativeEnum(NetworkHandlerAuthType).optional()),
enabled: schema.preprocess(nullToUndefined, schema.boolean().optional()),

@devnaumov devnaumov Jul 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do we need this changes? it might break the whole process of saving the network handlers and how backend treats this config

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

some fields from backend comes as null which is unexpected for the SSH form validation
and during saving it shows wrong validation
this is backend relative issue which i fixed with mapping nulls to undefined during validation process. it works fine but we agreed to try to fix it on backend side

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