Simon Willison
9e41d19f73
pytest.mark.serial on CLI tests, refs #2461
2025-02-04 11:28:16 -08:00
Simon Willison
f57977a08f
/-/permissions?filter=exclude-yours/only-yours - closes #2460
2025-02-04 11:09:44 -08:00
Simon Willison
4dff846271
simple_primary_key now uses integer id, helps close #2458
2025-02-01 21:44:53 -08:00
Simon Willison
b190b87ec6
Detect single unique text column in label_column_for_table, closes #2458
...
Also added new tests for label_column_for_table()
2025-02-01 17:02:49 -08:00
Simon Willison
308c243cfd
datasette.set_actor_cookie() and datasette.delete_actor_cookie(), closes #1690
2025-01-15 17:37:25 -08:00
Simon Willison
37873e02b0
Better breadcrumbs on database and table page, closes #2454
2025-01-09 10:07:03 -08:00
Simon Willison
dce718961c
Async support for magic parameters
...
Closes #2441
2024-11-15 13:17:45 -08:00
Simon Willison
2170269258
New .core CSS class for inputs and buttons
...
* Initial .core input/button classes, refs #2415
* Docs for the new .core CSS class, refs #2415
* Applied .core class everywhere that needs it, closes #2415
2024-09-03 08:37:26 -07:00
Simon Willison
92c4d41ca6
results.dicts() method, closes #2414
2024-09-01 17:20:41 -07:00
Simon Willison
f28ff8e4f0
Consider just 1000 rows for suggest facet, closes #2406
2024-08-21 13:36:42 -07:00
Simon Willison
8a63cdccc7
Tracer now catches errors, closes #2405
2024-08-21 12:19:18 -07:00
Simon Willison
34a6b2ac84
Fixed bug with ?_trace=1 and large responses, closes #2404
2024-08-21 10:58:17 -07:00
Simon Willison
9028d7f805
Support nested JSON in metadata.json, closes #2403
2024-08-21 09:53:52 -07:00
Simon Willison
39dfc7d7d7
Removed units functionality and Pint dependency
...
Closes #2400 , unblocks #2320
2024-08-20 19:03:33 -07:00
Alex Garcia
0dd41efce6
skip over "queries" blocks when processing database-level metadata items ( #2386 )
2024-08-15 21:48:07 -07:00
Simon Willison
53a8ae1871
Applied Black, refs #2327 , #2326
2024-08-15 17:16:47 -07:00
Seb Bacon
9cb5700d60
bugfix: correctly detect json1 in versions.json ( #2327 )
...
Fixes #2326
2024-08-15 13:20:26 -07:00
Alex Garcia
6d91d082e0
Hide shadow tables, don't hide virtual tables
...
Closes #2296
2024-08-15 13:19:22 -07:00
Simon Willison
05dfd34fd0
Use text/html for CSRF error page, refs #2390
2024-08-15 08:48:47 -07:00
Simon Willison
492378c2a0
Test for application/json; charset=utf-8
...
Refs #2384 , #2392
2024-08-14 21:37:40 -07:00
Simon Willison
06d4ffb92e
Custom error on CSRF failures, closes #2390
...
Uses https://github.com/simonw/asgi-csrf/issues/28
2024-08-14 21:29:16 -07:00
Simon Willison
93067668fe
/-/ alternative URL for homepage, closes #2393
2024-08-14 17:57:13 -07:00
Simon Willison
bf953628bb
Fix bug where -s could reset settings to defaults, closes #2389
2024-08-14 14:28:48 -07:00
Simon Willison
81b68a143a
/-/auth-token as root redirects to /, closes #2375
2024-07-26 14:09:20 -07:00
Alex Garcia
a23c2aee00
Introduce new `/$DB/-/query` endpoint, soft replaces `/$DB?sql=...` ( #2363 )
...
* Introduce new default /$DB/-/query endpoint
* Fix a lot of tests
* Update pyodide test to use query endpoint
* Link to /fixtures/-/query in a few places
* Documentation for QueryView
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2024-07-15 10:33:51 -07:00
Simon Willison
7316dd4ac6
Fix for TableNotFound, refs #2359
2024-06-21 16:09:20 -07:00
Simon Willison
62686114ee
Do not show database name in Database Not Found error, refs #2359
2024-06-21 16:02:15 -07:00
Simon Willison
93534fd3d0
Show response.text on test_upsert failure, refs #2356
2024-06-13 10:19:26 -07:00
Simon Willison
45c27603d2
xfail two flaky tests, #2355 , #2356
2024-06-13 10:15:38 -07:00
Alex Garcia
8f86d2af6a
Test against multiple SQLite versions ( #2352 )
...
* Use sqlite-versions action for testing multiple versions
2024-06-13 10:09:45 -07:00
Simon Willison
d118d5c5bb
named_parameters(sql) sync function, refs #2354
...
Also refs #2353 and #2352
2024-06-12 16:51:07 -07:00
Simon Willison
7437d40e5d
<html lang="en">, closes #2348
2024-06-11 10:17:02 -07:00
Alex Garcia
e1bfab3fca
Move Metadata to `--internal` database
...
Refs:
- https://github.com/simonw/datasette/pull/2343
- https://github.com/simonw/datasette/issues/2341
2024-06-11 09:33:23 -07:00
Agustin Bacigalup
67e66f36c1
Add ETag header for static responses ( #2306 )
...
* add etag to static responses
* fix RuntimeError related to static headers
* Remove unnecessary import
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2024-03-17 12:18:40 -07:00
Simon Willison
feddd61789
Fix tests I broke in #2302
2024-03-12 17:01:51 -07:00
Simon Willison
b8711988b9
row_actions() plugin hook, closes #2299
2024-03-12 16:16:05 -07:00
Simon Willison
06281a0b8e
Test for labels on Table/View action buttons, refs #2297
2024-03-12 14:32:48 -07:00
Simon Willison
909c85cd2b
view_actions plugin hook, closes #2297
2024-03-12 14:25:28 -07:00
Simon Willison
daf5ca02ca
homepage_actions() plugin hook, closes #2298
2024-03-12 13:46:06 -07:00
Simon Willison
7818e8b9d1
Hide tables starting with an _, refs #2104
2024-03-07 00:03:42 -05:00
Simon Willison
090dff542b
Action menu descriptions
...
* Refactor tests to extract get_actions_links() helper
* Table, database and query action menu items now support optional descriptions
Closes #2294
2024-03-06 22:54:06 -05:00
Simon Willison
4d24bf6b34
Don't explain an explain even in the demo, refs #2293
2024-03-05 18:14:55 -08:00
Simon Willison
5de6797d4a
Better demo plugin for query_actions, refs #2293
2024-03-05 18:06:38 -08:00
Simon Willison
6ec0081f5d
`query_actions` plugin hook
...
* New query_actions plugin hook, closes #2283
2024-02-27 21:55:16 -08:00
Simon Willison
f99c2f5f8c
?column_notcontains= table filter, closes #2287
2024-02-27 16:07:41 -08:00
Jeroen Van Goey
103b4decbd
fix (typo): Corrected spelling of 'environments' ( #2268 )
...
* fix (typo): Corrected spelling of 'environments'
* ci: add test folder to codespell workflow
2024-02-19 14:41:32 -08:00
Simon Willison
28bf3a933f
Applied Black, refs #2278
2024-02-19 14:22:59 -08:00
Simon Willison
26300738e3
Fixes for permissions debug page, closes #2278
2024-02-19 14:17:37 -08:00
Simon Willison
b36a2d8f4b
Require update-row to use insert replace, closes #2279
2024-02-19 12:55:51 -08:00
Simon Willison
3856a8cb24
Consistent Permission denied:, refs #2279
2024-02-19 12:51:14 -08:00