datasette/datasette/templates
Claude 3a0ea58557
Unify page-size parameters on _size with table semantics
The stored query lists silently clamped out-of-range ?_size= values
(a request for 5000 quietly returned 1000) and did not accept the max
keyword. They now share the table view semantics via a new
parse_size_limit() helper: blank means default, "max" means the
maximum (max_returned_rows for query lists), negative or non-integer
values are a 400, and values over the maximum are a 400 instead of
being silently clamped.

The /-/allowed and /-/rules debug endpoints renamed their bare
page/page_size parameters to _page/_size, matching the underscore
grammar used by every other system parameter, with the same validation
(400 instead of silently capping page_size at 200). Their HTML debug
pages and next_url/previous_url builders use the new names.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
2026-07-04 17:54:03 +00:00
..
_action_menu.html Support for <button> items in action menus 2026-06-14 15:58:37 -07:00
_close_open_menus.html Keyboard navigation and ARIA attributes for actions menus (#2727) 2026-05-24 14:11:04 -07:00
_codemirror.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
_codemirror_foot.html Use DOMContentLoaded instead of load event for CodeMirror initialization. Closes #1894 (#1898) 2022-11-17 23:29:00 -08:00
_crumbs.html Refactor breadcrumbs to respect permissions, refs #1831 2022-10-13 14:42:52 -07:00
_debug_common_functions.html Simplified the code for the permission debug pages 2025-10-30 10:28:04 -07:00
_description_source_license.html ?_extra= support and TableView refactor to table_view 2023-03-22 15:49:39 -07:00
_execute_write_analysis_scripts.html Major redesign of create saved query UI 2026-05-26 13:48:40 -07:00
_execute_write_analysis_styles.html Major redesign of create saved query UI 2026-05-26 13:48:40 -07:00
_facet_results.html Stop facet counts from wrapping (#2754) 2026-06-10 23:43:32 -07:00
_footer.html Queries took rather than query took, closes #1572 2021-12-18 20:03:21 -08:00
_permission_ui_styles.html New allowed_resources_sql plugin hook and debug tools (#2505) 2025-10-08 14:27:51 -07:00
_permissions_debug_tabs.html Permission tabs include allow debug page 2025-10-30 17:54:07 -07:00
_query_form_styles.html Web UI to edit and delete stored queries (#2764) 2026-06-08 20:19:47 -07:00
_query_results.html Fixes for SQL write with RETURNING (#2763) 2026-05-31 16:15:34 -07:00
_sql_parameter_scripts.html Fix write query failing when a named parameter is called :sql (#2765) 2026-06-10 20:15:03 -07:00
_sql_parameter_styles.html Refactor to share JS/HTML between execute and execute-write 2026-05-25 12:45:42 -07:00
_sql_parameters.html Fix write query failing when a named parameter is called :sql (#2765) 2026-06-10 20:15:03 -07:00
_suggested_facets.html ?_extra= support and TableView refactor to table_view 2023-03-22 15:49:39 -07:00
_table.html Use column label, if available in edit/delete dialog 2026-06-13 21:43:48 -07:00
allow_debug.html Permission tabs include allow debug page 2025-10-30 17:54:07 -07:00
api_explorer.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
base.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
create_token.html Replace token-based CSRF with Sec-Fetch-Site header protection (#2689) 2026-04-14 17:11:36 -07:00
csrf_error.html Replace token-based CSRF with Sec-Fetch-Site header protection (#2689) 2026-04-14 17:11:36 -07:00
database.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
debug_actions.html Convert /-/actions.json from top-level array to object 2026-07-04 13:46:26 +00:00
debug_allowed.html Unify page-size parameters on _size with table semantics 2026-07-04 17:54:03 +00:00
debug_autocomplete.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
debug_check.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
debug_permissions_playground.html Replace token-based CSRF with Sec-Fetch-Site header protection (#2689) 2026-04-14 17:11:36 -07:00
debug_rules.html Unify page-size parameters on _size with table semantics 2026-07-04 17:54:03 +00:00
error.html Refactor breadcrumbs to respect permissions, refs #1831 2022-10-13 14:42:52 -07:00
execute_write.html Better way of setting min height on CodeMirror 2026-06-19 22:40:37 -07:00
index.html Fix for spacing on index page, closes #2399 2024-08-20 09:36:02 -07:00
logout.html Replace token-based CSRF with Sec-Fetch-Site header protection (#2689) 2026-04-14 17:11:36 -07:00
messages_debug.html Replace token-based CSRF with Sec-Fetch-Site header protection (#2689) 2026-04-14 17:11:36 -07:00
patterns.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
query.html Fixes for SQL write with RETURNING (#2763) 2026-05-31 16:15:34 -07:00
query_create.html Web UI to edit and delete stored queries (#2764) 2026-06-08 20:19:47 -07:00
query_delete.html Web UI to edit and delete stored queries (#2764) 2026-06-08 20:19:47 -07:00
query_edit.html Web UI to edit and delete stored queries (#2764) 2026-06-08 20:19:47 -07:00
query_list.html Web UI to edit and delete stored queries (#2764) 2026-06-08 20:19:47 -07:00
row.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00
schema.html /-/schema and /db/-/schema and /db/table/-/schema pages (plus .json/.md) 2025-11-07 12:01:23 -08:00
show_json.html Refactor breadcrumbs to respect permissions, refs #1831 2022-10-13 14:42:52 -07:00
table.html Add cache-busted static asset helper (#2804) 2026-06-23 13:44:58 -07:00