Simon Willison
f626983fdb
Fix BeautifulSoup deprecation warnings in tests
...
Fixes findNext → find_next and nextSibling → next_sibling
Refs 9becb04e
2025-11-05 09:49:10 -08:00
Simon Willison
9becb04e1b
Fix for BeautifulSoup findAll warnings
2025-11-05 09:39:49 -08:00
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
ef8e75db78
Backported CliRunner fix from e3eb356a
...
Removed obsolete mix_stderr=False arguments from CliRunner() calls
which are not supported in Click 8.3.0.
2025-11-04 17:41:25 -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
c07e9946e5
Vendor Pint, support Python 3.13, drop 3.8
...
Refs #2434
2024-10-07 10:22:07 -07:00
Simon Willison
10dae61213
Applied latest Black
2024-06-21 16:28:25 -07:00
Simon Willison
7aa4bf9506
Backport of #2359 for 0.64.x
2024-06-21 16:18:38 -07:00
Simon Willison
324090919d
Backport of CSV labels fix from #2214
2023-12-22 15:12:50 -08:00
Simon Willison
4b01cec374
Applied latest Black
2023-09-21 12:23:48 -07:00
Simon Willison
c0227ac7c7
Fix for flaky test_hidden_sqlite_stat1_table, refs #2179
2023-09-21 12:21:24 -07:00
Simon Willison
917272c864
Fix for Python httpx test failure, refs #2066
2023-04-27 07:55:25 -07: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
b7df546a45
Raise ValueError if Datasette(files=) is a string, refs #1985
2023-01-11 10:12:53 -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
0bd3eaa2dd
Move HTTPS test to a bash script
...
See https://github.com/simonw/datasette/issues/1955#issuecomment-1356627931
2022-12-17 18:51:17 -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
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
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
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
d2ca13b699
Add test for /* multi line */ comment, refs #1860
2022-10-27 11:50:54 -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
c7dd76c262
Poll until servers start, refs #1854
2022-10-25 12:42:45 -07:00
Simon Willison
9676b2deb0
Upgrade Docker images to Python 3.11, closes #1853
2022-10-25 12:04:53 -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
6887c12ea3
Workaround for 'too many open files' error, refs #1843
2022-10-23 15:17:33 -07:00
Simon Willison
79aa0de083
Test that breadcrumbs respect permissions, closes #1831
2022-10-13 14:51:59 -07:00
Simon Willison
1a5e5f2aa9
Refactor breadcrumbs to respect permissions, refs #1831
2022-10-13 14:42:52 -07:00
Simon Willison
b7fec7f902
.sqlite/.sqlite3 extensions for config directory mode
...
Closes #1646
2022-10-07 16:03:30 -07:00
Simon Willison
bbf33a7635
Test for bool(results), closes #1832
2022-10-04 21:32:29 -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
cb1e093fd3
Fixed error message, closes #1816
2022-09-19 18:15:40 -07:00
Simon Willison
df851c117d
Validate settings.json keys on startup, closes #1816
...
Refs #1814
2022-09-19 16:46:39 -07:00
Simon Willison
ddc999ad12
Async support for prepare_jinja2_environment, closes #1809
2022-09-16 20:38:24 -07:00
Simon Willison
b40872f5e5
prepare_jinja2_environment(datasette) argument, refs #1809
2022-09-14 14:31:54 -07:00
Simon Willison
fb7e70d5e7
Database(is_mutable=) now defaults to True, closes #1808
...
Refs https://github.com/simonw/datasette-upload-dbs/issues/6
2022-09-09 09:19:20 -07:00
Simon Willison
5aa359b869
Apply cell truncation on query page too, refs #1805
2022-09-06 16:58:30 -07:00
Simon Willison
d0737e4de5
truncate_cells_html now affects URLs too, refs #1805
2022-09-06 16:50:43 -07:00
Simon Willison
8430c3bc7d
table facet_size in metadata, refs #1804
2022-09-06 08:59:19 -07:00
Simon Willison
64288d827f
Workaround for test failure: RuntimeError: There is no current event loop ( #1803 )
...
* Remove ensure_eventloop hack
* Hack to recover from intermittent RuntimeError calling asyncio.Lock()
2022-09-05 17:40:19 -07:00
Simon Willison
b2b901e8c4
Skip SpatiaLite test if no conn.enable_load_extension()
...
Ran into this problem while working on #1802
2022-09-05 17:09:57 -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
Alex Garcia
1d64c9a8da
Add new entrypoint option to --load-extensions. ( #1789 )
...
Thanks, @asg017
2022-08-23 11:34:30 -07:00