Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update displayed account balance after order confirmation #110

Open
aripot007 opened this issue Oct 2, 2024 · 3 comments · May be fixed by #134
Open

Update displayed account balance after order confirmation #110

aripot007 opened this issue Oct 2, 2024 · 3 comments · May be fixed by #134
Assignees
Labels
bug Something isn't working

Comments

@aripot007
Copy link
Contributor

Décriver l'incident
Quand on valide une commande sur l'interface client, le solde du compte restant n'est pas mis à jour, on doit manuellement actualiser la page

Etapes pour reproduire l'erreur \

  • Aller sur /client/commande
  • Commander un produit
  • Valider la commande
  • Le solde du compte affiché reste le même qu'avant la commande

Comportement attendu
Le solde affiché est mis à jour avec le nouveau solde du compte.

@aripot007 aripot007 added the bug Something isn't working label Oct 2, 2024
@aripot007 aripot007 self-assigned this Oct 2, 2024
@Ciflire
Copy link
Contributor

Ciflire commented Oct 2, 2024

Image
Image
Image

Je n'arrive pas à reproduire, je suis bien sur client/commande

@BaptTF
Copy link
Member

BaptTF commented Oct 8, 2024

Je viens d'essayer de reproduire le bug en local et impossible de le refaire

@BaptTF
Copy link
Member

BaptTF commented Oct 24, 2024

ok donc le bug vient du faite que https://bar.telecomnancy.net/api/account/watch est une très longue requête qui attend une réponse et qui finit par se faire timeout
Solution à la place de faire un watch quand on finit une commande on fait une requête pour get_account pour mettre à jour l'argent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants