Skip to content

Fix missing REST API validations misc.#7220

Merged
timvisee merged 3 commits intodevfrom
fix-missing-REST-api-validations-misc
Sep 8, 2025
Merged

Fix missing REST API validations misc.#7220
timvisee merged 3 commits intodevfrom
fix-missing-REST-api-validations-misc

Conversation

@agourlay
Copy link
Member

@agourlay agourlay commented Sep 8, 2025

Various missing API validations.

Backported from #7216

/// This operation is blocking, it will only proceed once all current optimizations are complete
#[serde(alias = "optimizer_config")]
#[validate(nested)]
pub optimizers_config: Option<OptimizersConfigDiff>, // TODO: Allow updates for other configuration params as well
Copy link
Member

Choose a reason for hiding this comment

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

We should likely add another validation rule on OptimizersConfigDiff.

Candidate:

  • deleted_threshold: [0.0, 1.0]

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call, it is already present in gRPC 👍

I took the liberty then to backport vacuum_min_vector_number as well from gRPC.

coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai bot Sep 8, 2025
coderabbitai[bot]

This comment was marked as resolved.

@agourlay agourlay requested a review from timvisee September 8, 2025 10:42
@qdrant qdrant deleted a comment from coderabbitai bot Sep 8, 2025
@timvisee timvisee merged commit a458975 into dev Sep 8, 2025
16 checks passed
@timvisee timvisee deleted the fix-missing-REST-api-validations-misc branch September 8, 2025 10:48
timvisee pushed a commit that referenced this pull request Sep 29, 2025
* Fix missing REST API validations misc.

* add validation for deleted_threshold

* backport vacuum_min_vector_number validation from gRPC
@timvisee timvisee mentioned this pull request Sep 29, 2025
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.

2 participants