Escalate the 1.19 storage-flag deprecations: warn in 1.20, opt-in in 1.21, remove in 1.22
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- rust
- Lĩnh vực
- api, documentation, release
Hướng nghiên cứu
Bắt đầu bằng cách grep Deprecated since 1.19.0 trong src/builders/ và xem xét 18 setter cùng các caller build_inner của chúng. Sau đó kiểm tra các file release notes và CONTRIBUTING.md; xác định giá trị since và quyết định về BinaryQuantizationBuilder::new trước khi triển khai checklist theo từng giai đoạn. Được xem là hoàn tất khi release stage đã chọn, các test và CI -D warnings được bao quát, đồng thời hướng dẫn migration và ngày loại bỏ trong 1.22 được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
#288 (1.19 upgrade) supersedes the boolean storage flags with the new Memory enum and PayloadStorageParams:
on_disk→memoryalways_ram→memoryon_disk_payload→payload
Those 18 builder setters shipped in 1.19 carrying only a doc-comment note, not a #[deprecated] attribute. That was deliberate: #[deprecated] is a hard error for any downstream crate that builds with #![deny(warnings)] or -D warnings (as this repo's own CI does), so attaching it in 1.19 would have made the 1.18 → 1.19 bump source-breaking for ordinary builder-based code. Measured at the time by compiling the 1.18 release's own snippet suite against the branch: 18 errors with the attribute, 0 without.
The intent was always to escalate rather than leave them soft forever. This issue tracks that.
Constraint worth stating up front
A library cannot escalate the deprecated lint from warn to deny — that is the consumer's choice. So each rung below increases visibility and then withdraws the escape hatch; none of them turns the warning into an error from our side.
Schedule
| Release | Rung | Consumer impact |
|---|---|---|
| 1.19 ✅ | Doc-comment note pointing at the replacement | none |
| 1.20 | Add #[deprecated(since = "1.19.0", note = "…")] |
warning; error only for -D warnings builds |
| 1.21 | Move the setters behind an opt-in cargo feature, deprecated-api, default off |
hard break, recoverable with one line in Cargo.toml |
| 1.22 | Delete | hard break, no escape hatch |
Removal lands in 1.22. That should be stated in the 1.20 release notes, so the first warning a user sees already names the release that takes the methods away.
Inventory
18 setters, all in src/builders/:
on_disk → memory (12)
VectorParamsBuilder, VectorParamsDiffBuilder, HnswConfigDiffBuilder, SparseIndexConfigBuilder, KeywordIndexParamsBuilder, IntegerIndexParamsBuilder, FloatIndexParamsBuilder, BoolIndexParamsBuilder, GeoIndexParamsBuilder, DatetimeIndexParamsBuilder, UuidIndexParamsBuilder, TextIndexParamsBuilder
always_ram → memory (4)
ScalarQuantizationBuilder, ProductQuantizationBuilder, BinaryQuantizationBuilder, TurboQuantizationBuilder
on_disk_payload → payload (2)
CreateCollectionBuilder, CollectionParamsDiffBuilder
Each already carries a /// Deprecated since 1.19.0, use […](Self::…) instead. note, so the 1.20 change is mechanical — the sites are greppable with grep -rn "Deprecated since 1.19.0" src/builders/.
Loose end: BinaryQuantizationBuilder::new(always_ram: bool)
Its only parameter is the superseded flag. 1.19 added a Default impl so BinaryQuantizationBuilder::default().memory(..) works without it, but new itself still needs a decision by 1.22 — drop it, or change it to take no arguments (breaking either way).
Out of scope: generated proto fields
The 1.16-era deprecations (Vector::data / indices / vectors_count, same on VectorOutput) live in generated code and carry prost's #[deprecated] because the proto marks them [deprecated = true]. The client cannot retire those independently — that has to come from the server proto. Only the hand-written surface is ours to schedule.
Open question
since value. These became deprecated in 1.19 but the attribute lands in 1.20. since = "1.19.0" is semantically accurate and is what the table above assumes; since = "1.20.0" would instead match when users first see a warning. Minor either way.
Checklists
1.20
-
#[deprecated(since, note)]on all 18 setters -
#[allow(deprecated)]on the correspondingbuild_innerfns (they still populate the old proto fields) — already present from #288 - Repo's own usages migrated so CI stays green under
-D warnings - Migration table in the release notes, naming 1.22 as the removal release
-
CONTRIBUTING.mdrecords the ladder, so future upgrades follow it by default instead of re-deciding each time
1.21
-
deprecated-apifeature added, default off, gating the 18 setters - Release notes repeat the 1.22 removal date
1.22
- Setters deleted, feature removed
-
BinaryQuantizationBuilder::newresolved
- Ngôn ngữ chính
- Rust
- Star
- 425
- Fork
- 89
- Merge trung bình
- 2 giờ 48 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của qdrant/rust-client
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryCó thể làm lại được @NullSense đã nhận 7 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
qdrant/rust-client#316 · 3 bình luận ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)Có thể làm lại được @inamdarmihir đã nhận 36 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
qdrant/rust-client#306 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
qdrant/rust-client#272 · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
qdrant/rust-client#267 · 1 bình luận · 2 reaction ·
Tất cả issue của qdrant/rust-client
Issue tương tự
-
app bug session
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS autosubmit enable passes unsupported --wait to launchctl bootoutCó thể đã có người làm @iqdoctor đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
junhoyeo/tokscale#1713 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày