Simon Willison
13c338c8f1
Get publish cloudrun working with latest Cloud Run ( #2581 )
...
Refs:
- #2511
Filter out bad services, refs:
- https://github.com/simonw/datasette/pull/2581#issuecomment-3492243400
2025-11-05 09:33:47 -08:00
Simon Willison
0e2d9ccd99
Backported Python 3.14 asyncio fix from dee0b942
...
Python 3.14 deprecated asyncio.get_event_loop() when there is no running
event loop. This backports the run_sync() helper function and its usage
from main branch to fix compatibility.
Refs #2506
2025-11-04 17:36:16 -08:00
Simon Willison
0403a04da6
Move open redirect fix to asgi_send_redirect, refs #2429
...
See https://github.com/simonw/datasette/pull/2500#issuecomment-3488632278
2025-11-04 17:10:25 -08:00
James Jefferies
c1dd2c1dfb
Fix for open redirect - identified in Issue 2429 ( #2500 )
...
* Issue 2429 indicates the possiblity of an open redirect
The 404 processing ends up redirecting a request with multiple path
slashes to that site, i.e.
https://my-site//shedcode.co.uk will redirect to https://shedcode.co.uk
This commit uses a regular expression to remove the multiple leading
slashes before redirecting.
2025-11-04 17:10:19 -08:00
Simon Willison
b9bcd6b6ae
Release 0.65.1
...
Refs #2443
2024-11-28 17:11:46 -08:00
Simon Willison
bd818aef62
Backport new DatasetteClient implementation, refs #2443
2024-11-28 17:01:57 -08:00
Simon Willison
753ddc9028
Release 0.65
...
Refs #2434
2024-10-07 10:33:20 -07:00
Simon Willison
c07e9946e5
Vendor Pint, support Python 3.13, drop 3.8
...
Refs #2434
2024-10-07 10:22:07 -07:00
Simon Willison
0af9a89460
Release 0.64.8
...
Refs #2353 , #2359
2024-06-21 16:31:32 -07:00
Simon Willison
10dae61213
Applied latest Black
2024-06-21 16:28:25 -07:00
Simon Willison
2e62282170
Backport derive_named_parameters fix to 0.64.x
...
Refs #2354
2024-06-21 16:24:48 -07:00
Simon Willison
7aa4bf9506
Backport of #2359 for 0.64.x
2024-06-21 16:18:38 -07:00
Simon Willison
b7c44de56d
Release 0.64.7
...
Refs #2353
2024-06-12 15:45:40 -07:00
Simon Willison
47333e43c6
Workaround for #2353
2024-06-12 15:39:11 -07:00
Simon Willison
c4571c4f17
Release 0.64.6
...
Refs #2214
2023-12-22 15:14:50 -08:00
Simon Willison
324090919d
Backport of CSV labels fix from #2214
2023-12-22 15:12:50 -08:00
Simon Willison
5800eaeb5b
Release 0.64.5
...
Refs #2197
2023-10-08 09:03:37 -07:00
Simon Willison
d61687cbeb
Release 0.64.4
...
Refs #2189
2023-09-21 12:25:52 -07:00
Simon Willison
4b01cec374
Applied latest Black
2023-09-21 12:23:48 -07:00
Simon Willison
c0d58a71b9
Stop running queries in parallel, refs #2189
2023-09-21 12:23:17 -07:00
Simon Willison
0746e785fc
Release 0.64.3
...
Refs #2065
2023-04-27 07:53:33 -07:00
Simon Willison
2a0a94fe97
Release 0.64.2
...
Refs #2036
2023-03-08 12:41:13 -08:00
Simon Willison
cb9fa71878
Use service-specific image ID for Cloud Run deploys, refs #2036
2023-03-08 12:27:15 -08:00
Simon Willison
2e064641ac
Release 0.64.1
...
Refs #1985 , #1987
2023-01-11 10:21:37 -08:00
Simon Willison
b7df546a45
Raise ValueError if Datasette(files=) is a string, refs #1985
2023-01-11 10:12:53 -08:00
Simon Willison
0084daa50a
Release 0.64, with a warning against arbitrary SQL with SpatiaLite
...
Refs #1409 , #1771 , #1979
Refs https://github.com/simonw/datasette.io/issues/132
2023-01-09 08:37:21 -08:00
Simon Willison
fdb4d975a1
Better error for --load-extensions, refs #1979
2023-01-07 15:58:30 -08:00
Simon Willison
1ec9c9995c
Backported default_allow_sql for 0.63.x, closes #1409
2023-01-05 09:21:07 -08:00
Simon Willison
7402294018
.select-wrapper:focus-within for accessibility, closes #1771
2023-01-04 16:53:16 -08:00
Simon Willison
a9ffcbd42e
Release 0.63.3
...
Refs #1955 , #1958 , #1963
2022-12-17 19:06:03 -08:00
Simon Willison
5649e547ef
Put AsgiLifestyle back so server starts up again, refs #1955
2022-12-17 18:51:17 -08:00
Simon Willison
96b3a86d7f
Replace AsgiLifespan with AsgiRunOnFirstRequest, refs #1955
2022-12-17 18:51:17 -08:00
Simon Willison
4ba8d57bb1
Try click.echo() instead
...
This ensures the URL is output correctly when running under Docker.
Closes #1958
2022-12-15 16:57:45 -08:00
Simon Willison
d67f812b73
Release 0.63.2
...
Refs #1904 , #1905
2022-11-18 16:53:05 -08:00
Simon Willison
a93ccc63c7
Upgrade to Python 3.11 on Heroku, refs #1905
2022-11-18 16:49:08 -08:00
Simon Willison
9cca381033
--generate-dir option to publish heroku, refs #1905
2022-11-18 16:49:02 -08:00
Simon Willison
9f54f00a50
Release 0.63.1
...
Refs ##1843, #1876 , #1883
2022-11-10 23:01:20 -08:00
Simon Willison
8d9a957c63
Fix for redirects ignoring base_url, refs #1883
2022-11-10 22:49:54 -08:00
Simon Willison
867e0abd34
Tests now close SQLite database connections and files explicitly, refs #1843
...
Also added a db.close() method to the Database class.
2022-11-03 13:37:26 -07:00
Simon Willison
2ec5583629
Show interrupted query in resizing textarea, closes #1876
2022-11-01 10:22:26 -07:00
Simon Willison
bf00b0b59b
Release 0.63
...
Refs #1646 , #1786 , #1787 , #1789 , #1794 , #1800 , #1804 , #1805 , #1808 , #1809 , #1816 , #1819 , #1825 , #1829 , #1831 , #1834 , #1844 , #1853 , #1860
Closes #1869
2022-10-27 15:11:26 -07:00
Forest Gregg
b912d92b65
Make hash and size a lazy property ( #1837 )
...
* use inspect data for hash and file size
* make hash and cached_size lazy properties
* move hash property near size
2022-10-27 13:51:20 -07:00
Simon Willison
5f6be3c48b
Better comment handling in SQL regex, refs #1860
2022-10-27 11:47:48 -07:00
Simon Willison
55a709c480
Allow leading comments on SQL queries, refs #1860
2022-10-26 14:34:33 -07:00
Simon Willison
df7bf0b2fc
Fix bug with breadcrumbs and request=None, closes #1849
2022-10-26 14:13:31 -07:00
Simon Willison
9676b2deb0
Upgrade Docker images to Python 3.11, closes #1853
2022-10-25 12:04:53 -07:00
Simon Willison
602c0888ce
Release 0.63a1
...
Refs #1646 , #1819 , #1825 , #1829 , #1831 , #1832 , #1834 , #1844 , #1848
2022-10-23 20:07:09 -07:00
Simon Willison
5be86d48b2
Fix display of padlocks on database page, closes #1848
2022-10-23 19:42:30 -07:00
Simon Willison
78dad236df
check_visibility can now take multiple permissions into account
...
Closes #1829
2022-10-23 19:11:33 -07:00
Simon Willison
1a5e5f2aa9
Refactor breadcrumbs to respect permissions, refs #1831
2022-10-13 14:42:52 -07:00