versioned: Adjust action arguments
Maintainer thường phản hồi trong vòng 1 ngày
@Techassi đang làm issue này rồi.
Từ ngày 23/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
Start by reading the crate that parses and applies the versioned attribute arguments, then check its tests and examples for since and from_ usage. The issue proposes renaming these to in and prev_ or previous_, but leaves the preferred prefix open. Done means the argument names are updated consistently and the proposed prev_docs use for deprecated actions is supported.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current state
Currently, all actions use the since argument to specify since which version a particular change was introduced. Additionally, all arguments describing previous facts, like the item name, the item type, and the item docs use the from_ prefix.
struct Foo {
#[versioned(changed(
since = "...",
from_name = "...",
from_type = "...",
from_docs = "..."
))]
bar: bool,
}
Initially, this made sense to use both these terms, because e.g. a field's name changed from foo to bar. As such, the argument name from_name makes sense. We recently noticed that both terms are not ideal, especially the combination #[versioned(changed(since = "...", from_docs = "..."))].
Suggestion
I suggest renaming these arguments in the following fashion:
since->in. This maps well for all actions and in which version a particular change happened:- "added in ..."
- "changed in ..."
- "deprecated in ..."
from_->prev_orprevious_. This better expresses what the fact's value was previously:- "the previous name was ..."
- "the previous type was ..."
- "the previous docs were ..."
struct Foo {
#[versioned(changed(
in = "...",
prev_name = "...",
prev_type = "...",
prev_docs = "..."
))]
bar: bool,
}
This change also enables us to add support for from_docs/prev_docs to deprecated action for example. prev_docs just makes way more sense in this context.
- Ngôn ngữ chính
- Rust
- Star
- 169
- Fork
- 20
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 25
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 stackabletech/operator-rs
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
stackabletech/operator-rs#1273 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
epic
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
stackabletech/operator-rs#1305 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve label mechanismsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
stackabletech/operator-rs#1077 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
stackabletech/operator-rs#1063 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
stackable-versioned: Require inner module definitions to have the same visibility as the parentĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
stackabletech/operator-rs#1028 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stackabletech/operator-rs
Issue tương tự
-
bug: workspace access hint suggests a --subject command that fails for hyphen-leading OIDC subjectsĐang mở
Độ 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
-
type: bug
Độ 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
-
`last_error_thread_local_then_global` fails when it runs beside the `lumen_event_detail` testĐang mởA-FFI C-Testing D-Straightforward S-Ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs priority:P3 size:XS
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Appimage ConventionsĐang mởenhancement
Độ 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