BReg: name `relationship` in the Action input refusal message
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 92/100
Línea de trabajo
Comienza en crates/registry-breg/src/contract.rs en impl Deserialize for ActionInputSource, donde se definen la condición de rechazo y el mensaje Invalid::expected. Actualiza las dos cadenas de member esperado y examina la aserción de crates/registry-breg/tests/field_encryption_contract.rs; añade o ajusta si es necesario un test hermano que cubra un member relationship. Terminado significa que el texto del diagnóstico y del quick fix nombra relationship, que la validación lo sigue rechazando y que los tests relevantes pasan.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
A relationship member on an Action input is refused, which is correct: inputs are ephemeral and
cannot declare an inverse relationship. But the diagnostic and its fix-it list only
validTimeRole, pattern, encrypted and lookup. An author who copied a reference field into
inputs is told to remove four members, none of which is present, and the one that caused the
refusal is never named.
Minimal repro, in a project whose registry.yaml has an Action with a reference input:
actions:
- id: register-facility
# ...
inputs:
- id: operator
type: reference
target: operator
relationship: {inverseName: registeredFacilities}
required: true
classification: internal
bregctl check <project> reports:
error[config.invalid-value] registry.yaml:<line>:<col> /actions/0/inputs/<n>
expected an action input without validTimeRole, pattern, encrypted, or lookup
next: Remove validTimeRole, pattern, encrypted, and lookup from the action input.
Expected:
expected an action input without validTimeRole, pattern, encrypted, lookup, or relationship
next: Remove validTimeRole, pattern, encrypted, lookup, and relationship from the action input.
Likely fix: crates/registry-breg/src/contract.rs, impl Deserialize for ActionInputSource. The
condition already refuses raw.relationship; only the two strings passed to Invalid::expected
need the fifth member. The assertion in crates/registry-breg/tests/field_encryption_contract.rs
(native_proposal_inputs_do_not_accept_persisted_record_encryption_members) matches the current
wording with .contains(...) and needs the same update. A sibling test that sets relationship
on an input would cover the case. Naming only the member actually present would be a better
message still.
The generated authoring schema already refuses relationship on inputs, so this is a
message-only fix.
Seen on main at 2fe7e90b2: the condition and both strings are unchanged.
- Lenguaje dominante
- Rust
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 10 h 32 min
- PR fusionados (30 d)
- 256
Preparar el entorno
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 registrystack/registry-stack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
registrystack/registry-stack#2168 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
registrystack/registry-stack#2162 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
registrystack/registry-stack#2161 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
registrystack/registry-stack#2160 ·
Los mantenedores suelen responder en 1 día
-
area:breg criticality:p2 triage:needs-implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
registrystack/registry-stack#2121 ·
Los mantenedores suelen responder en 1 día
Todos los issues de registrystack/registry-stack
Issues similares
-
area:config area:security bug good first issue platform:linux platform:windows priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rtk-ai/rtk#4651 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vllm-project/agentic-api#463 ·
Los mantenedores suelen responder en 2 días
-
bug good first issue priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Konfirm-xyz/konfirm-contracts#163 ·
Los mantenedores suelen responder en 1 día
-
GL backend reports vendor id 0 for AMD GPUs on Windows (GL_VENDOR is "ATI Technologies Inc.")Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día