Skip to content

dbeaver/pro#6505 adds min value for object property info - #4565

Merged
yagudin10 merged 7 commits into
develfrom
6505-cb-fix-the-ability-to-set-a-negative-or-zero-value-for-the-context-window-size
Aug 20, 2026
Merged

dbeaver/pro#6505 adds min value for object property info#4565
yagudin10 merged 7 commits into
develfrom
6505-cb-fix-the-ability-to-set-a-negative-or-zero-value-for-the-context-window-size

Conversation

@sergeyteleshev

Copy link
Copy Markdown
Contributor

@sergeyteleshev sergeyteleshev self-assigned this Aug 17, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

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.

"Default property value"
defaultValue: Object
"Minimum allowed value for numeric properties"
minValue: Int @since(version: "26.2.0")

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.

I think it's better to add a new constraints field. Once we have more constraints, maxValue, minLength for text inputs, etc, the flat list will grow too large, so it's better to keep them all here.

type PropertyConstraints {
    min: Float
    max: Float
    step: Float
    minLength: Int
    maxLength: Int
}

# в ObjectPropertyInfo:
constraints: PropertyConstraints @since(version: "26.2.0")

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.

i personally like the idea and wanted to do so from the start. but decided to start with simple implementation which is required right now. and maybe later extend it with something like you suggest. if backend team don't mind I would implement that

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.

sounds good to me

SychevAndrey
SychevAndrey previously approved these changes Aug 19, 2026
yagudin10
yagudin10 previously approved these changes Aug 19, 2026
@sergeyteleshev
sergeyteleshev dismissed stale reviews from yagudin10 and SychevAndrey via ff70ba2 August 19, 2026 15:07
EvgeniaBzzz and others added 2 commits August 19, 2026 19:47
@yagudin10
yagudin10 merged commit 2650b4d into devel Aug 20, 2026
6 checks passed
@yagudin10
yagudin10 deleted the 6505-cb-fix-the-ability-to-set-a-negative-or-zero-value-for-the-context-window-size branch August 20, 2026 11:01
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.

6 participants