[Bug] Typed search attributes inside schedule actions are not printed correctly in text mode
Los mantenedores suelen responder en 1 día
@NasitSony ya está trabajando en esto.
Desde el 30/5/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 64/100
Línea de trabajo
Comienza en temporalcli/internal/printer/printer.go, comparando la ruta de proto.Message alrededor de la línea 253 con la ruta normal de objeto JSON alrededor de la línea 260. Reproduce el problema con un Schedule de Temporal Server 1.24.1 que contenga un atributo de búsqueda tipado y, después, ejecuta schedule describe en los modos de texto y JSON. La tarea estará terminada cuando el modo de texto muestre los atributos de búsqueda tipados en lugar de mostrar un objeto TypedSearchAttributes vacío, mientras que la salida JSON siga siendo correcta.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What are you really trying to do?
As the description says.
This may apply in other situations, too—any situation in which we wrap typed search attributes inside another object in the CLI code would be impacted. Also, this is worse with server 1.24 because that server now returns schedule search attributes as typed search attributes. So search attributes that would have been returned from 1.23 and earlier are now missing from CLI output.
This can be worked around by using JSON output instead (-o json), which prints the attributes correctly.
Describe the bug
Typed search attributes are printed correctly when they are printed as part of a proto.Message, but incorrectly when printed as part of a normal JSON object. This is likely because there is no Marshaler implementation for SearchAttributes in the Go SDK.
We don't necessarily want to add one, either, as this might be unnecessary for most people, so we should try to come up with a workaround for this in the CLI instead.
Minimal Reproduction
Launch a 1.24.1 server (a CLI which uses 1.24.1 can be built from #584):
./temporal server start-dev
Then create a search attribute and schedule which uses the search attribute:
❯ ./temporal operator search-attribute create --name CustomKeywordField --type Keyword
Search attributes have been added
❯ ./temporal schedule create -s foo --task-queue foo --type foo --workflow-id asdf --interval 10d --search-attribute CustomKeywordField=\"schedule-string-val\"
When describing the schedule in text mode, notice the Action's TypedSearchAttributes field is empty:
❯ ./temporal schedule describe -s foo
ScheduleId foo
Action {"ID":"asdf","Workflow":"foo","Args":[],"TaskQueue":"foo","WorkflowExecutionTimeout":0,"WorkflowRunTimeout":0,"WorkflowTaskTimeout":10000000000,"RetryPolicy":null,"Memo":{},"TypedSearchAttributes":{},"UntypedSearchAttributes":{}}
Spec [{"every":"10d 0h 0m 0s"}]
Jitter 0s
OverlapPolicy Skip
CatchupWindow 365d 0h 0m 0s
PauseOnFailure false
Paused false
NextRunTime 1 week from now
LastRunTime
RunningWorkflows []
CreatedAt 1 minute ago
LastUpdateAt a long while ago
ActionCounts {"Total":0,"MissedCatchupWindow":0,"SkippedOverlap":0}
However, the schedule prints correctly in JSON mode:
❯ ./temporal schedule describe -s foo -o json
{
"schedule": {
...
"action": {
"startWorkflow": {
"workflowId": "asdf",
"workflowType": {
"name": "foo"
},
"taskQueue": {
"name": "foo",
"kind": "TASK_QUEUE_KIND_NORMAL"
},
"input": {},
"workflowExecutionTimeout": "0s",
"workflowRunTimeout": "0s",
"workflowTaskTimeout": "10s",
"searchAttributes": {
"indexedFields": {
"CustomKeywordField": {
"metadata": {
"encoding": "anNvbi9wbGFpbg==",
"type": "S2V5d29yZA=="
},
"data": "InNjaGVkdWxlLXN0cmluZy12YWwi"
}
}
},
"header": {}
}
},
"policies": {
"overlapPolicy": "SCHEDULE_OVERLAP_POLICY_SKIP",
"catchupWindow": "31536000s"
},
"state": {}
},
...
}
Environment/Versions
- OS and processor: any
- Temporal Version: CLI 0.12 and Server 1.24
- Are you using Docker or Kubernetes or building Temporal from source? source, as above
Additional context
- Lenguaje dominante
- Go
- Estrellas
- 390
- Forks
- 123
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un 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 temporalio/cli
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
temporalio/cli#776 ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Option to disable metrics in server start-devPosiblemente ocupada @shafiktanbir la tomó hace 11 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
temporalio/cli#1274 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
temporalio/cli#1249 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Decode workflow histories concurrently with remote codec serversPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 65/100
temporalio/cli#1193 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
temporalio/cli#1178 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de temporalio/cli
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
seriousm4x/UpSnap#1786 ·
-
bug feedback ui/ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
peasant-labs/peasant#1307 ·
Los mantenedores suelen responder en 1 día
-
Reformat test names for single-protocol tests to start with Protocol/, i.e. gRPC/ or Websocket/Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
connectrpc/conformance#1211 ·
Los mantenedores suelen responder en 1 día
-
bug effort:s impact:med raised-by:desk risk:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
medici-finance/assay#8342 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
hardening
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
inference-sim/inference-sim#2821 ·
Los mantenedores suelen responder en 1 día