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

Skip update selection in task assignment if change is processing

Aperta
#1,486 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
120
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.