Projet

Général

Profil

Development #17109

notifications : affichage synchrone

Ajouté par Frédéric Péters il y a presque 7 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
22 juin 2017
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

J'ai relu le ticket où on implémente le système de notifications (#13812) sans trouver de raison au chargement asynchrone de la cellule. Étant donné que c'est entièrement construit à base de données locales, je la rendrais bien synchrone.


Fichiers

Révisions associées

Révision 71f0dd7b (diff)
Ajouté par Frédéric Péters il y a presque 7 ans

notifications: turn notification cell synchronous (#17109)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 7 ans

#2

Mis à jour par Thomas Noël il y a presque 7 ans

l'asynchrone c'est pour avoir le rafraichissement, ça me semble important pour les notifications

#3

Mis à jour par Frédéric Péters il y a presque 7 ans

Le rafraichissement régulier est indépendant, contrôlé par l'attribut ajax_refresh (qui n'est pas posé pour cette cellule).

Ça serait genre :

--- a/combo/apps/notifications/models.py
+++ b/combo/apps/notifications/models.py
@@ -108,6 +108,7 @@ class Notification(models.Model):
 @register_cell_class
 class NotificationsCell(CellBase):
     user_dependant = True
+    ajax_refresh = 10

     class Meta:
         verbose_name = _('User Notifications')

Mais c'est indépendant du rendu initial.

#4

Mis à jour par Thomas Noël il y a presque 7 ans

Donc ack. Ca me va de mettre le «ajax_refresh» dans le même patch, (turn notification cell synchronous but with refresh)

#5

Mis à jour par Frédéric Péters il y a presque 7 ans

#17116 pour le rafraichissement auto.

#6

Mis à jour par Frédéric Péters il y a presque 7 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 71f0dd7b142db2009727a3a41c1eaf21a614acb1
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu Jun 22 14:26:58 2017 +0200

    notifications: turn notification cell synchronous (#17109)
#7

Mis à jour par Frédéric Péters il y a plus de 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF