Simon Willison
721a8d3cd4
Hopeful fix for publish problem in #1396
2021-07-14 18:51:36 -07:00
Simon Willison
084cfe1e00
Removed out-of-date datasette serve help from README
2021-07-14 18:00:39 -07:00
Simon Willison
e27dd7c12c
Release 0.58
...
Refs #1365 , #1371 , #1377 , #1384 , #1387 , #1388 , #1389 , #1394
2021-07-14 17:33:04 -07:00
Simon Willison
7ea678db22
Warn about potential changes to get_metadata hook, refs #1384
2021-07-14 17:19:31 -07:00
Simon Willison
a6c8e7fa4c
Big performance boost for faceting, closes #1394
2021-07-14 17:05:43 -07:00
Simon Willison
ba11ef27ed
Clarify when to use systemd restart
2021-07-13 22:43:13 -07:00
Simon Willison
2c4cd7141a
Consistently use /my-datasette in examples
2021-07-13 16:15:48 -07:00
Simon Willison
7f4c854db1
rST fix
2021-07-13 11:45:32 -07:00
Aslak Raanes
d71cac4981
How to configure Unix domain sockets with Apache
...
Example on how to use Unix domain socket option on Apache. Not testet.
(Usually I would have used [`ProxyPassReverse`](https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypassreverse ) in combination with `ProxyPass` , i.e.
```apache
ProxyPass /my-datasette/ http://127.0.0.1:8009/my-datasette/
ProxyPassReverse /my-datasette/ http://127.0.0.1:8009/my-datasette/
```
and
```apache
ProxyPass /my-datasette/ unix:/tmp/datasette.sock|http://localhost/my-datasette/
ProxyPassReverse /my-datasette/ unix:/tmp/datasette.sock|http://localhost/my-datasette/
```
2021-07-13 11:32:49 -07:00
Aslak Raanes
4054e96a39
Update deploying.rst ( #1392 )
...
Use same base url for Apache as in the example
2021-07-13 10:42:27 -07:00
dependabot[bot]
f83c84fd51
Update asgiref requirement from <3.4.0,>=3.2.10 to >=3.2.10,<3.5.0 ( #1386 )
...
Updates the requirements on [asgiref](https://github.com/django/asgiref ) to permit the latest version.
- [Release notes](https://github.com/django/asgiref/releases )
- [Changelog](https://github.com/django/asgiref/blob/main/CHANGELOG.txt )
- [Commits](https://github.com/django/asgiref/commits )
---
updated-dependencies:
- dependency-name: asgiref
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-10 18:36:18 -07:00
Simon Willison
d792fc7cf5
Simplified nginx config examples
2021-07-10 17:29:42 -07:00
Simon Willison
de2a106328
Ran Black, refs #1388
2021-07-10 16:46:49 -07:00
Simon Willison
180c7a5328
--uds option for binding to Unix domain socket, closes #1388
2021-07-10 16:37:30 -07:00
Simon Willison
e0064ba7b0
Fixes for test_generated_columns_are_visible_in_datasette, refs #1391
2021-07-10 12:14:14 -07:00
Simon Willison
2e8d924cdc
Refactored generated_columns test, no longer in fixtures.db - refs #1391
2021-07-10 12:03:19 -07:00
Simon Willison
83f6799a96
searchmode: raw table metadata property, closes #1389
2021-07-10 11:33:08 -07:00
Simon Willison
c8feaf0b62
systemctl restart datasette.service, closes #1390
2021-07-09 09:32:32 -07:00
Simon Willison
dbc61a1fd3
Documented ProxyPreserveHost On for Apache, closes #1387
2021-07-02 10:33:03 -07:00
Simon Willison
ea627baccf
Removed fallback parameter from get_metadata, refs #1384
2021-06-26 17:02:42 -07:00
Simon Willison
0d339a4897
Removed text about executing SQL, refs #1384
2021-06-26 16:04:39 -07:00
Simon Willison
089278b8db
rST fix, refs #1384
2021-06-26 15:49:07 -07:00
Simon Willison
05a312caf3
Applied Black, refs #1368
2021-06-26 15:25:28 -07:00
Brandon Roberts
baf986c871
New get_metadata() plugin hook for dynamic metadata
...
The following hook is added:
get_metadata(
datasette=self, key=key, database=database, table=table,
fallback=fallback
)
This gets called when we're building our metdata for the rest
of the system to use. We merge whatever the plugins return
with any local metadata (from metadata.yml/yaml/json) allowing
for a live-editable dynamic Datasette.
As a security precation, local meta is *not* overwritable by
plugin hooks. The workflow for transitioning to live-meta would
be to load the plugin with the full metadata.yaml and save.
Then remove the parts of the metadata that you want to be able
to change from the file.
* Avoid race condition: don't mutate databases list
This avoids the nasty "RuntimeError: OrderedDict mutated during
iteration" error that randomly happens when a plugin adds a
new database to Datasette, using `add_database`. This change
makes the add and remove database functions more expensive, but
it prevents the random explosion race conditions that make for
confusing user experience when importing live databases.
Thanks, @brandonrobertz
2021-06-26 15:24:54 -07:00
Simon Willison
953a64467d
Only publish stable docs on non-preview release
...
Refs https://github.com/simonw/datasette.io/issues/67
2021-06-24 09:42:02 -07:00
Simon Willison
ff17970ed4
Release 0.58a1
...
Refs #1365 , #1377
2021-06-24 09:24:59 -07:00
Simon Willison
02b19c7a9a
Removed rogue pdb=True, refs #1377
2021-06-23 15:50:48 -07:00
Simon Willison
b1fd24ac9f
skip_csrf(datasette, scope) plugin hook, refs #1377
2021-06-23 15:40:09 -07:00
Simon Willison
4a3e8561ab
Default 405 for POST, plus tests
2021-06-23 15:40:09 -07:00
Simon Willison
3a50015566
datasette-publish-now is now called datasette-publish-vercel
2021-06-23 12:51:19 -07:00
Simon Willison
403e370e5a
Fixed reference to default publish implementation
2021-06-23 12:50:19 -07:00
Simon Willison
7bc85b26d6
Deploy stable-docs.datasette.io on publish
...
Refs https://github.com/simonw/datasette.io/issues/67
2021-06-23 12:30:03 -07:00
Chris Amico
a6c55afe8c
Ensure db.path is a string before trying to insert into internal database ( #1370 )
...
Thanks, @eyeseast
2021-06-21 08:57:38 -07:00
dependabot[bot]
5335f360f4
Update pytest-xdist requirement from <2.3,>=2.2.1 to >=2.2.1,<2.4 ( #1378 )
...
Updates the requirements on [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.2.1...v2.3.0 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-19 17:17:06 -07:00
dependabot[bot]
83e9c8bc75
Update trustme requirement from <0.8,>=0.7 to >=0.7,<0.9 ( #1373 )
...
Updates the requirements on [trustme](https://github.com/python-trio/trustme ) to permit the latest version.
- [Release notes](https://github.com/python-trio/trustme/releases )
- [Commits](https://github.com/python-trio/trustme/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: trustme
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-13 08:38:47 -07:00
dependabot[bot]
e797565765
Bump black from 21.5b2 to 21.6b0 ( #1374 )
...
Bumps [black](https://github.com/psf/black ) from 21.5b2 to 21.6b0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-13 08:33:22 -07:00
Simon Willison
cd7678fde6
Release 0.58a0
...
Refs #1371
2021-06-09 21:51:14 -07:00
Simon Willison
d23a267138
Make request available to menu plugin hooks, closes #1371
2021-06-09 21:45:24 -07:00
Simon Willison
a3faf37883
Release 0.57.1
...
Refs #1364 , #1367
2021-06-08 09:26:45 -07:00
Simon Willison
f4c5777c7e
Fix visual glitch in nav menu, closes #1367
2021-06-07 11:24:14 -07:00
Simon Willison
03ec71193b
Don't truncate list of columns on /db page, closes #1364
2021-06-06 15:07:45 -07:00
Simon Willison
030deb4b25
Try to handle intermittent FileNotFoundError in tests
...
Refs #1361
2021-06-05 16:02:03 -07:00
Simon Willison
0dfb924171
Temporarily reverting buildx support
...
I need to push a container for 0.57 using this action, and I'm not ready to ship other architecture builds until we have tested them in #1344 .
2021-06-05 15:55:07 -07:00
Simon Willison
58746d3c51
Release 0.57
...
Refs #263 , #615 , #619 , #1238 , #1257 , #1305 , #1308 , #1320 , #1332 , #1337 , #1349 , #1353 , #1359 , #1360
2021-06-05 15:06:55 -07:00
Simon Willison
8f311d6c1d
Correctly escape output of ?_trace, refs #1360
2021-06-05 15:03:38 -07:00
Simon Willison
ff29dd55fa
?_trace=1 now depends on trace_debug setting, closes #1359
2021-06-05 13:18:37 -07:00
louispotok
368aa5f1b1
Update docs: explain allow_download setting ( #1291 )
...
* Update docs: explain allow_download setting
This fixes one possible source of confusion seen in #502 and clarifies
when database downloads will be shown and allowed.
2021-06-05 12:48:51 -07:00
Simon Willison
a634121525
Make custom pages compatible with base_url setting
...
Closes #1238
- base_url no longer causes custom page routing to fail
- new route_path key in request.scope storing the path that was used for routing with the base_url prefix stripped
- TestClient used by tests now avoids accidentally double processing of the base_url prefix
2021-06-05 11:59:54 -07:00
Simon Willison
6e9b07be92
More inclusive language
2021-06-02 21:45:03 -07:00
Simon Willison
f78ebdc045
Better "uploading and publishing your own CSV data" link
2021-06-02 10:00:30 -07:00