code-corps / code-corps/code-corps-ember

Skip update selection in task assignment if change is processing

Abierto
#1,486 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
120
Forks
75
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

# Problem

Right now, this code below, found in `components/task-assignment`, updates the user selection when it changes.

```didReceiveAttrs() {
let { taskUserId, users } = getProperties(this, 'taskUserId', 'users');
if (users) {
set(this, 'selectedOption', users.findBy('id', taskUserId));
}
},```

However, this updates while the change is still processing, and rolls back if it fails. It'd be preferred if for the update to be skipped if the change is processing. It also fails to roll back when reassignment fails.

## References
#1435

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.