Development #60857
ChartNgCell.DoesNotExist: ChartNgCell matching query does not exist.
Début:
20 janvier 2022
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/54319/
ChartNgCell.DoesNotExist: ChartNgCell matching query does not exist. File "combo/utils/spooler.py", line 70, in spooler_func func(*args, **kwargs) File "combo/utils/spooler.py", line 100, in refresh_statistics_data cell = ChartNgCell.objects.get(pk=cell_pk) File "django/db/models/manager.py", line 82, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "django/db/models/query.py", line 408, in get self.model._meta.object_name spooler: exception during refresh_statistics_data([], {"cell_pk":20})
Fichiers
Historique
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- Fichier 0001-dataviz-avoid-crash-in-spooler-if-cell-was-deleted-6.patch 0001-dataviz-avoid-crash-in-spooler-if-cell-was-deleted-6.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Il s'agit de la suppression d'une cellule alors que la tâche de rafraîchissement est encore dans la queue du spooler, on doit juste ne pas crasher.
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- Fichier 0001-dataviz-avoid-crash-in-spooler-if-cell-was-deleted-6.patch 0001-dataviz-avoid-crash-in-spooler-if-cell-was-deleted-6.patch ajouté
J'ai pensé bêtement que spooler = pas de test mais en fait y a pas de raison !
Mis à jour par Lauréline Guérin il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit d2f084e60915d09ffda9b6e8b7efd435fbf2d539 Author: Valentin Deniaud <vdeniaud@entrouvert.com> Date: Thu Jan 20 10:30:39 2022 +0100 dataviz: avoid crash in spooler if cell was deleted (#60857)
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- % réalisé changé de 0 à 100
Appliqué par commit 9a41a5dc760f14f2f61bdbb51ac1d5acb5e8f54b.
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
dataviz: avoid crash in spooler if cell was deleted (#60857)