versioned: Adjust action arguments
I maintainer di solito rispondono entro 1 giorno
@Techassi ci sta già lavorando.
Dal 23/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- developer-experience
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 169
- Fork
- 20
- Merge medio
- 1g 2h
- PR unite (30g)
- 25
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stackabletech/operator-rs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
stackabletech/operator-rs#1273 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
epic
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
stackabletech/operator-rs#1305 ·
I maintainer di solito rispondono entro 1 giorno
-
Improve label mechanismsAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
stackabletech/operator-rs#1077 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
stackabletech/operator-rs#1063 ·
I maintainer di solito rispondono entro 1 giorno
-
stackable-versioned: Require inner module definitions to have the same visibility as the parentAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
stackabletech/operator-rs#1028 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stackabletech/operator-rs
Issue simili
-
checkpoint/verify/rebuild_indexes on a thread holding a WriteTransaction deadlock instead of INT-001Apertabug known-issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
project-minigraf/minigraf#734 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
bug CLI documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
openai/codex#56630 · 3 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
DayuanJiang/PecoFence#139 ·
I maintainer di solito rispondono entro 1 giorno