Projet

Général

Profil

Development #15622

api: augmenter la taille des pages pour la pagination à 100 utilisateurs

Ajouté par Benjamin Dauvergne il y a environ 7 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
24 mars 2017
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Avec le ticket #15620 la pagination devient obligatoire, il faut augmenter la taille des pages par défaut, 10 c'est trop peu.


Fichiers

Révisions associées

Révision 7f8df78b (diff)
Ajouté par Benjamin Dauvergne il y a environ 7 ans

api: augment default pagination page size to 100 (fixes #15622)

Pagination was made mandatory by issue #15620, and page size was 10 which is too
small.

Historique

#2

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

Ok. Ça pourrait être bien aussi d'ajouter page_size_query_param et max_page_size, pour permettre au client de demander plus d'utilisateurs, non ?

#3

Mis à jour par Benjamin Dauvergne il y a environ 7 ans

J'aurai bien voulu mais la pagination par curseur ne le permet pas, et une taille de 100 ça me parait correct.

https://github.com/encode/django-rest-framework/blob/master/rest_framework/pagination.py#L568

#4

Mis à jour par Benjamin Dauvergne il y a environ 7 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#5

Mis à jour par Benjamin Dauvergne il y a plus de 6 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF