Simon Willison
d579fcf4f7
Applied some fixes suggested by @withshubh in #1260
2021-03-28 17:20:55 -07:00
Campbell Allen
f92d823766
ensure immutable databses when starting in configuration directory mode with ( #1229 )
...
* check if immutables is empty list of None
* update docs on how to create the inspect-data.json
2021-03-28 17:17:31 -07:00
Bob Whitelock
e72397d65b
Add styling to lists within table cells ( fixes #1141 ) ( #1252 )
...
This overrides the Datasette reset (see
d0fd833b8c/datasette/static/app.css (L35-L38)
),
to add back the default styling of list items displayed within Datasette
table cells.
2021-03-28 17:14:04 -07:00
vincent d warmerdam
c96a3826cf
Added `--app` to fly install command. ( #1279 )
2021-03-28 17:11:55 -07:00
Simon Willison
48d5e0e6ac
Fix for no such table: pragma_database_list, refs #1276
2021-03-28 16:44:29 -07:00
Simon Willison
3fcfc85134
Fix links in SpatiaLite tutorial, closes #1278
2021-03-27 09:16:45 -07:00
Simon Willison
8ebdcc916d
Remove obsolete note about building SpatiaLite from source, refs #1249
2021-03-26 21:33:15 -07:00
Simon Willison
5fd0289065
Build Dockerfile with SpatiaLite 5, refs #1249
2021-03-26 21:27:40 -07:00
Simon Willison
6ad544df5e
Fixed master -> main in a bunch of places, mainly docs
2021-03-23 09:19:41 -07:00
Simon Willison
c4f1ec7f33
Documentation for Response.asgi_send(), closes #1266
2021-03-20 14:32:23 -07:00
Konstantin Baikov
8e18c79431
Use context manager instead of plain open ( #1211 )
...
Context manager with open closes the files after usage.
When the object is already a pathlib.Path i used read_text
write_text functions
In some cases pathlib.Path.open were used in context manager,
it is basically the same as builtin open.
Thanks, Konstantin Baikov!
2021-03-11 08:15:49 -08:00
Jean-Baptiste Pressac
a1bcd2fbe5
Minor typo in IP adress ( #1256 )
...
127.0.01 replaced by 127.0.0.1
2021-03-10 10:26:39 -08:00
Bob Whitelock
d0fd833b8c
Add compile option to Dockerfile to fix failing test ( fixes #696 ) ( #1223 )
...
This test was failing when run inside the Docker container:
`test_searchable[/fixtures/searchable.json?_search=te*+AND+do*&_searchmode=raw-expected_rows3]`,
with this error:
```
def test_searchable(app_client, path, expected_rows):
response = app_client.get(path)
> assert expected_rows == response.json["rows"]
E AssertionError: assert [[1, 'barry c...sel', 'puma']] == []
E Left contains 2 more items, first extra item: [1, 'barry cat', 'terry dog', 'panther']
E Full diff:
E + []
E - [[1, 'barry cat', 'terry dog', 'panther'],
E - [2, 'terry dog', 'sara weasel', 'puma']]
```
The issue was that the version of sqlite3 built inside the Docker
container was built with FTS3 and FTS4 enabled, but without the
`SQLITE_ENABLE_FTS3_PARENTHESIS` compile option passed, which adds
support for using `AND` and `NOT` within `match` expressions (see
https://sqlite.org/fts3.html#compiling_and_enabling_fts3_and_fts4 and
https://www.sqlite.org/compile.html ).
Without this, the `AND` used in the search in this test was being
interpreted as a literal string, and so no matches were found. Adding
this compile option fixes this.
Thanks, @bobwhitelock
2021-03-06 23:41:17 -08:00
David Boucha
4f9a2f1f47
Fix small typo ( #1243 )
...
Thanks, @UtahDave
2021-03-03 21:46:10 -08:00
Simon Willison
7c87532acc
New .add_memory_database() method, closes #1247
2021-02-28 20:02:18 -08:00
Simon Willison
47eb885cc2
JSON faceting now suggested even if column has blank strings, closes #1246
2021-02-28 19:44:04 -08:00
Simon Willison
cc6774cbaa
Upgrade httpx and remove xfail from tests, refs #1005
2021-02-28 14:34:44 -08:00
Simon Willison
afed51b1e3
Note about where to find plugin examples, closes #1244
2021-02-26 09:27:09 -08:00
Simon Willison
726f781c50
Fix for arraycontains bug, closes #1239
2021-02-22 16:22:47 -08:00
Simon Willison
42caabf7e9
Fixed typo
2021-02-22 09:35:41 -08:00
Simon Willison
1f9cca33b4
Resizable SQL editor using cm-resize, refs #1236
2021-02-19 15:47:52 -08:00
Simon Willison
cb8a293bd7
Release 0.55
...
Refs #1205 , #1207 , #1214 , #1221 , #1226 , #1227 , #1232 , #1235
2021-02-18 18:01:06 -08:00
Simon Willison
a4239309b1
Bump Dockerfile to using Python 3.7.10, closes #1235
2021-02-18 17:48:20 -08:00
Simon Willison
73bed17563
Corrected documentation for datasette.urls.static_plugins
2021-02-18 15:25:01 -08:00
Simon Willison
6f41c8a2be
--crossdb option for joining across databases ( #1232 )
...
* Test for cross-database join, refs #283
* Warn if --crossdb used with more than 10 DBs, refs #283
* latest.datasette.io demo of --crossdb joins, refs #283
* Show attached databases on /_memory page, refs #283
* Documentation for cross-database queries, refs #283
2021-02-18 14:09:12 -08:00
Simon Willison
4df548e766
Update documentation, refs #1226
2021-02-18 10:32:04 -08:00
Simon Willison
5af2b99111
Create FUNDING.yml
2021-02-18 10:22:01 -08:00
Simon Willison
36a44bffbf
Validation for --port, closes #1226
2021-02-18 10:05:27 -08:00
Simon Willison
d2d53a5559
New :issue: Sphinx macro, closes #1227
2021-02-17 17:20:15 -08:00
Simon Willison
9603d893b9
Tests for --ssl-keyfile and --ssl-certfile, refs #1221
2021-02-11 16:53:20 -08:00
Simon Willison
eda652cf6e
--ssl-keyfile and --ssl-certfile options to "datasette serve"
...
Closes #1221
2021-02-11 16:52:16 -08:00
Simon Willison
aa1fe0692c
Updated demo and video links
2021-02-07 19:27:02 -08:00
Simon Willison
3a3de76009
Release 0.54.1
...
Refs #1214
2021-02-02 13:24:05 -08:00
Simon Willison
7a2ed9f8a1
Fixed bug with ?_sort= and ?_search=, closes #1214
2021-02-02 13:21:03 -08:00
Simon Willison
beb98bf454
Fixed typo in code example
2021-01-31 00:49:09 -08:00
Simon Willison
dde3c500c7
Using pdb for errors thrown inside Datasette
...
Closes #1207
2021-01-28 18:12:32 -08:00
Simon Willison
1600d2a3ec
Renamed /:memory: to /_memory, with redirects - closes #1205
2021-01-28 14:48:56 -08:00
Simon Willison
382e9ecd1d
Removed a rogue full-stop
2021-01-25 09:35:06 -08:00
Simon Willison
0b9ac1b2e9
Release 0.54
...
Refs #509 , #1091 , #1150 , #1151 , #1166 , #1167 , #1178 , #1181 , #1182 , #1184 , #1185 , #1186 , #1187 , #1194 , #1198
2021-01-25 09:33:29 -08:00
Simon Willison
a5ede3cdd4
Fixed bug loading database called 'test-database (1).sqlite'
...
Closes #1181 .
Also now ensures that database URLs have special characters URL-quoted.
2021-01-24 21:13:05 -08:00
Simon Willison
07e1635615
All ?_ parameters now copied to hidden form fields, closes #1194
2021-01-24 19:10:10 -08:00
Simon Willison
f3a1555318
Contributing docs for Black and Prettier, closes #1167
...
Refs #1203
2021-01-24 17:58:15 -08:00
Simon Willison
ffff3a4c53
Easier way to run Prettier locally ( #1203 )
...
Thanks, Ben Pickles - refs #1167
2021-01-24 17:41:46 -08:00
Simon Willison
b6a7b58fa0
Initial docs for _internal database, closes #1154
2021-01-24 16:08:29 -08:00
Simon Willison
f78e956eca
Plugin testing documentation on using pytest-httpx
...
Closes #1198
2021-01-24 12:38:29 -08:00
Simon Willison
25c2933667
publish heroku now uses python-3.8.7
2021-01-22 16:46:25 -08:00
Simon Willison
5378f02352
Better tool for extracting issue numbers
2021-01-19 12:50:12 -08:00
Simon Willison
57f4d7b82f
Release 0.54a0
...
Refs #1091 , #1145 , #1151 , #1156 , #1157 , #1158 , #1166 , #1170 , #1178 , #1182 , #1184 , #1185 , #1186 , #1187
2021-01-19 12:47:30 -08:00
Simon Willison
7e3cfd9cf7
Clarify the name of plugin used in /-/static-plugins/
2021-01-19 12:27:45 -08:00
Simon Willison
c38c42948c
extra_body_script module support, closes #1187
2021-01-13 18:14:33 -08:00