Development #81100
api: permettre la modification du nombre limite de users retournés
Start date:
12 September 2023
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
CursorPagination de DRF limite le nombre maximum des résultats paginés:
# The offset in the cursor is used in situations where we have a # nearly-unique index. (Eg millisecond precision creation timestamps) # We guard against malicious users attempting to cause expensive database # queries, by having a hard cap on the maximum possible size of the offset. offset_cutoff = 1000
Or il y a des situations où le nombre des comptes usagers est supérieur à 1000 et le curseur bloque l'avancement.
On pourrait rendre le paramètre paramétrable via un setting.
Associated revisions
History
Updated by Robot Gitea 16 days ago
- Status changed from Nouveau to En cours
- Assignee set to Serghei Mihai
Serghei Mihai (smihai) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/authentic/pulls/124
- Titre : WIP: api: make users pagination offset as a setting (#81100)
- Modifications : https://git.entrouvert.org/entrouvert/authentic/pulls/124/files
Updated by Robot Gitea 16 days ago
Thomas NOËL (tnoel) a relu et demandé des modifications sur une pull request sur Gitea concernant cette demande :
Updated by Robot Gitea 8 days ago
- Status changed from Solution proposée to Solution validée
Paul Marillonnet (pmarillonnet) a approuvé une pull request sur Gitea concernant cette demande :
Updated by Robot Gitea 8 days ago
- Status changed from Solution validée to Résolu (à déployer)
Serghei Mihai (smihai) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/authentic/pulls/124
- Titre : api: make users pagination offset as a setting (#81100)
- Modifications : https://git.entrouvert.org/entrouvert/authentic/pulls/124/files
Updated by Transition automatique 7 days ago
- Status changed from Résolu (à déployer) to Solution déployée
api: make users pagination offset as a setting (#81100)