mirror of
https://github.com/directus/directus.git
synced 2026-01-23 17:38:25 -05:00
* Adding a maximum for query limit * fixed bad env check * using the getEnv function to make it better testable * updated sanitize-query tests * added tests for the validate query function * Added DEFAULT_QUERY_LIMIT as fallback instead * make the linter happy * accept infinity as max_query_limit * fixed merge conflicts * added missing import * moved docs PR into main repo * added missing import * renamed vars * basic page size limiting * Update app/src/layouts/cards/cards.vue * Update app/src/layouts/map/map.vue * Update app/src/layouts/tabular/tabular.vue * Update app/src/layouts/tabular/tabular.vue * Create paginate util * extracted page size logic to composable and implemented default usage in app * updated paginate utility * using the new fetch-all utility * removed limit: -1 for api calls that do not support it * fix linter * removed console log * making the linter happy * Create loud-flowers-yawn.md * Add tests for no / unlimited limit * Cover all cases for max limit in sanitizeQuery * Get rid of non-null assertion * added test for composable * Update var names in documentation * replace hardcoded limit default with env var * update default page size behavior * fixed test * update server info api reference * include queryLimit in graphql server info * use configured max limit in calendar layout * use configured max limit in kanban layout * account for max query limit in use-revisions --------- Co-authored-by: ian <licitdev@gmail.com> Co-authored-by: rijkvanzanten <rijkvanzanten@me.com> Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>