Bug #15644
crash des "Statistiques globales" quand il n'y a encore aucun formulaire
0%
Description
Parce que wcs_all_forms n'existe pas
ProgrammingError: relation "wcs_all_forms" does not exist LINE 1: ...C('month', receipt_time) AS month, COUNT(*) FROM wcs_all_fo... ^ (10 additional frame(s) were not displayed) ... File "quixote/directory.py", line 67, in _q_traverse return obj() File "wcs/backoffice/management.py", line 648, in statistics criterias=[NotEqual('status', 'draft')]) File "wcs/backoffice/management.py", line 2100, in do_graphs_section monthly_totals = sql.get_monthly_totals(period_start, period_end, criterias)[-12:] File "wcs/sql.py", line 300, in f return func(*args, **kwargs) File "wcs/sql.py", line 1801, in get_monthly_totals cur.execute(statement, parameters)
Même traitement que #12568
Fichiers
Révisions associées
tests: adapt empty statistics page for python 3 (#15644)
Historique
Mis à jour par Thomas Noël il y a environ 7 ans
- Fichier 0001-backoffice-display-message-on-global-statistics-when.patch 0001-backoffice-display-message-on-global-statistics-when.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 7 ans
Faut faire ça après le html_top et le breadcrumb.append.
Mis à jour par Thomas Noël il y a environ 7 ans
- Fichier 0001-backoffice-display-message-on-global-statistics-when.patch 0001-backoffice-display-message-on-global-statistics-when.patch ajouté
Of course.
Mis à jour par Frédéric Péters il y a environ 7 ans
À voir; créer une fonction "empty_site", qui serait également appelée dans le _q_index. Comme ça on évite aussi totalement la barre latérale avec le lien vers le "Statistiques globales" et la recherche par code de suivi.
Mis à jour par Frédéric Péters il y a presque 5 ans
- Statut changé de En cours à Solution validée
Pas testé mais j'imagine que ça s'applique encore, ou au moins que ça se rebase très facilement.
Mis à jour par Thomas Noël il y a presque 5 ans
- Fichier 0001-backoffice-display-message-on-global-statistics-when.patch 0001-backoffice-display-message-on-global-statistics-when.patch ajouté
- Statut changé de Solution validée à Solution proposée
Rebasé. J'attends la semaine prochaine pour pousser, aucun enjeu : le lien "Global statistics" n'est de toute façon plus affiché quand le site est vide (d'où adaptation du test pour aller directement vers la page des stats).
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
Ça doit sans doute à nouveau pouvoir se rebaser.
Mis à jour par Thomas Noël il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 7b7620cbdc6540a1468221631f0e72f4dfb66f58 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Mon Mar 27 15:34:06 2017 +0200 backoffice: display message on global statistics when there are no formdefs (#15644)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
backoffice: display message on global statistics when there are no formdefs (#15644)