Azure / Azure/azure-functions-python-library

Queue messages get their id from body of message.

Abierto
#49 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
179
Forks
79
Merge medio
2 d 8 h
PR fusionados (30 d)
2

Descripción

I am not sure if this is intentional but if a message contains an "Id" field it seems to be used as the `id` property in `QueueMessage`. I assume that this has something to do with how the contents of `trigger_metadata` are set (I am unable to identify the origin of the argument). I assume this because of how it is being extacted in `QueueMessageInConverter` and the fact that my messages arrive with the same `body['Id']` and `msg.id`.

Maybe I am completly wrong but I am curious if this is intentional or aviodable somehow, if not I would like to open a discussion about it.

I personally did not expect this behaviour and it required a ugly workaround.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza rastreando QueueMessageInConverter y el argumento trigger_metadata mencionado en el informe; después, compara el Id del cuerpo del mensaje con QueueMessage.id. Determina si este comportamiento es intencionado y de dónde procede el valor. Se considera terminado cuando el comportamiento está aclarado y, si es incorrecto, cubierto por una prueba de regresión específica.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend, cloud
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.