Simon Willison
4dff846271
simple_primary_key now uses integer id, helps close #2458
2025-02-01 21:44:53 -08:00
Simon Willison
37873e02b0
Better breadcrumbs on database and table page, closes #2454
2025-01-09 10:07:03 -08: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
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
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
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
60c6692f68
table_config instead of table_metadata ( #2257 )
...
Table configuration that was incorrectly placed in metadata is now treated as if it was in config.
New await datasette.table_config() method.
Closes #2247
2024-02-06 21:57:09 -08:00
Alex Garcia
35deaabcb1
Move non-metadata configuration from metadata.yaml to datasette.yaml
...
* Allow and permission blocks moved to datasette.yaml
* Documentation updates, initial framework for configuration reference
2023-10-12 09:16:37 -07:00
Simon Willison
4535568f2c
Fixed display of database color
...
Closes #2139 , closes #2119
2023-08-10 22:16:19 -07:00
Simon Willison
cd57b0f712
Brought back parameter fields, closes #2132
2023-08-08 06:45:04 -07:00
Simon Willison
1377a290cd
New JSON design for query views ( #2118 )
...
* Refs #2111 , closes #2110
* New Context dataclass/subclass mechanism, refs #2127
* Define QueryContext and extract get_tables() method, refs #2127
* Fix OPTIONS bug by porting DaatbaseView to be a View subclass
* Expose async_view_for_class.view_class for test_routes test
* Error/truncated aruments for renderers, closes #2130
2023-08-07 18:47:39 -07:00
Simon Willison
9c43b4164d
Removed @pytest.mark.ds_client mark - refs #1959
...
I don't need it - can run 'pytest -k ds_client' instead.
See https://github.com/simonw/datasette/pull/1960#issuecomment-1355685828
2022-12-17 13:47:55 -08:00
Simon Willison
42a66c2f04
A bunch of remaining ds_client conversions, refs #1959
2022-12-17 13:47:55 -08:00
Simon Willison
95900b9d02
Port app_client to ds_client for most of test_html.py, refs #1959
2022-12-17 13:47:55 -08:00
Simon Willison
4c18730e71
Update tests to export 200 for OPTIONS calls, refs #1922
2022-11-30 10:29:48 -08:00
Simon Willison
8d9a957c63
Fix for redirects ignoring base_url, refs #1883
2022-11-10 22:49:54 -08:00
Simon Willison
bbaab3b38e
Test form actions use prefix, refs #1883
2022-11-10 22:20:40 -08:00
Simon Willison
2ec5583629
Show interrupted query in resizing textarea, closes #1876
2022-11-01 10:22:26 -07:00
Simon Willison
79aa0de083
Test that breadcrumbs respect permissions, closes #1831
2022-10-13 14:51:59 -07:00
Simon Willison
5f9f567acb
Show SQL query when reporting time limit error, closes #1819
2022-09-26 16:06:01 -07:00
Simon Willison
5aa359b869
Apply cell truncation on query page too, refs #1805
2022-09-06 16:58:30 -07:00
Simon Willison
ba35105eee
Test `--load-extension` in GitHub Actions ( #1792 )
...
* Run the --load-extension test, refs #1789
* Ran cog, refs #1789
2022-08-23 17:11:45 -07:00
Simon Willison
a3e6f1b167
Increase height of non-JS textarea to fit query
...
Closes #1786
2022-08-18 09:06:02 -07:00
Simon Willison
280ff372ab
ETag support for .db downloads, closes #1739
2022-05-03 07:59:46 -07:00
Simon Willison
90d1be9952
Tilde encoding now encodes space as plus, closes #1701
...
Refs #1657
2022-04-06 08:55:01 -07:00
Simon Willison
d4f60c2388
Remove hashed URL mode
...
Also simplified how view class routing works.
Refs #1661
2022-03-18 17:12:03 -07:00
Simon Willison
a35393b29c
Tilde encoding ( #1659 )
...
Closes #1657
Refs #1439
2022-03-15 11:01:57 -07:00
Simon Willison
77e718c3ff
Revert "Fix bug with percentage redirects, close #1650"
...
This reverts commit c85d669de3
.
Refs #1658
2022-03-15 08:37:31 -07:00
Simon Willison
c85d669de3
Fix bug with percentage redirects, close #1650
2022-03-07 11:26:08 -08:00
Simon Willison
020effe47b
Preserve query string in % to - redirects, refs #1650
2022-03-07 08:18:07 -08:00
Simon Willison
644d25d1de
Redirect old % URLs to new - encoded URLs, closes #1650
...
Refs #1439
2022-03-07 08:01:42 -08:00
Simon Willison
1baa030eca
Switch to dash encoding for table/database/row-pk in paths
...
* Dash encoding functions, tests and docs, refs #1439
* dash encoding is now like percent encoding but with dashes
* Use dash-encoding for row PKs and ?_next=, refs #1439
* Use dash encoding for table names, refs #1439
* Use dash encoding for database names, too, refs #1439
See also https://simonwillison.net/2022/Mar/5/dash-encoding/
2022-03-07 07:38:29 -08:00
Simon Willison
23a09b0f6a
Remove JSON rel=alternate from some pages, closes #1623
2022-02-02 13:48:52 -08:00
Simon Willison
8d5779acf0
Refactored alternate_url_json mechanism, refs #1620 , #1533
2022-02-02 13:32:47 -08:00
Simon Willison
b72b2423c7
rel=alternate JSON for queries and database pages, closes #1620
2022-02-02 13:22:45 -08:00
Simon Willison
68cc1e2dbb
Move queries to top of database page, refs #1612
2022-01-25 10:28:15 -08:00
Simon Willison
7c67483f5e
Make test_favicon flexible to changing icon sizes, refs #1603
2022-01-19 21:57:14 -08:00
Simon Willison
0467723ee5
New, improved favicon - refs #1603
2022-01-19 21:46:03 -08:00
Simon Willison
ab7d6a7179
Updated settings help URL to avoid redirect
2022-01-13 16:38:16 -08:00
Simon Willison
1876975e3b
Refactor table view HTML tests to test_table_html.py
...
Refs #1518
2021-12-11 19:06:45 -08:00
Simon Willison
a37ee74891
Correct link to _ prefix on row page, closes #1525
2021-11-29 22:34:31 -08:00
Simon Willison
69244a617b
Rename city_id to _city_id in fixtures, refs #1525
2021-11-29 22:20:42 -08:00
Simon Willison
06762776f7
Fix for incorrect hidden for fields for _columns, refs #1527
2021-11-29 19:04:35 -08:00
Simon Willison
08947fa764
Fix more broken base_url links
...
Refs #1519 , #838
2021-11-20 11:03:08 -08:00
Simon Willison
fe687fd020
Fixed a whole bunch of broken base_url links
...
Refs #1519 , #838
2021-11-19 16:53:11 -08:00
Simon Willison
1c13e1af06
Ensure query columns are included too, ref #1503
2021-11-13 21:08:33 -08:00