versioned: Adjust action arguments
Los mantenedores suelen responder en 1 día
@Techassi ya está trabajando en esto.
Desde el 23/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- developer-experience
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 169
- Forks
- 20
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 22
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de stackabletech/operator-rs
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
stackabletech/operator-rs#1273 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
epic
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
stackabletech/operator-rs#1305 ·
Los mantenedores suelen responder en 1 día
-
Improve label mechanismsAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
stackabletech/operator-rs#1077 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
stackabletech/operator-rs#1063 ·
Los mantenedores suelen responder en 1 día
-
stackable-versioned: Require inner module definitions to have the same visibility as the parentAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
stackabletech/operator-rs#1028 ·
Los mantenedores suelen responder en 1 día
Todos los issues de stackabletech/operator-rs
Issues similares
-
bug llm translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
accounts bug decoding
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
wboayue/rust-ibapi#1088 ·
Los mantenedores suelen responder en 1 día
-
chmod -v: missing 'could not be accessed' line for operands that can't be stat'edPosiblemente ocupada @emirmrkaljevic la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
gtk-rs/gtk-rs-core#2068 ·
Los mantenedores suelen responder en 6 días