Initiate action should/could be specified in URL
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza rastreando el flujo del cliente desde GET /api/travel-request/ hasta la URL POST y, después, inspecciona cómo se gestiona la acción initiate al construir esa URL. Confirma el comportamiento previsto con la discusión del issue antes de cambiar nada. Se considera terminado cuando las solicitudes POST incluyen el action slug de forma coherente, incluida la iniciación, y el envío del formulario de action resultante funciona.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The way the client is designed, it gets the workflow definition from GET /api/travel-request/. If there's an id property, it renders the data and the events. If there's multiple state.actions, it renders action buttons. If there's only 1 state.actions, it renders the form for it. If there's more than 1 state.actions, it waits until you select one of the action buttons, and renders that form. On submission, the form posts to POST /api/travel-request/<case-id?>/<action-slug>?token=xx.
At the moment, this fails on the initiate action, I think because by design we expected clients to not include the action on the initiate POST. But it's actually pretty simple to do that since (a) we're providing the name of the action in the response to their GET request, and (b) they're already using part of that response for their POST request (the template).
My guess is you probably added extra logic to identify what the default action was. Perhaps this isn't necessary, and we can just expect clients to include the action name in every POST request.
Thoughts @mjumbewu ?
- Lenguaje dominante
- Python
- Estrellas
- 22
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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 CodeForPhilly/stately
-
Related app: Docassemble Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
CodeForPhilly/stately#60 ·
-
Investigate using BPML Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
CodeForPhilly/stately#59 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
CodeForPhilly/stately#58 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
CodeForPhilly/stately#57 ·
-
Search case list Abiertoapi ui
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
CodeForPhilly/stately#55 ·
Todos los issues de CodeForPhilly/stately
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
modelscope/FunASR#3728 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
open-compass/opencompass#2655 ·