Simon Willison
31d5c4ec05
Contraction - Google and Microsoft styleguides like it
...
I was trying out https://github.com/errata-ai/vale
2023-09-05 19:43:01 -07:00
Simon Willison
fd083e37ec
Docs for plugins that define more plugin hooks, closes #1765
2023-08-31 16:06:30 -07:00
Simon Willison
98ffad9aed
execute-sql now implies can view instance/database, closes #2169
2023-08-31 15:46:26 -07:00
Simon Willison
9cead33fb9
OperationalError: database table is locked fix
...
See also:
- https://til.simonwillison.net/datasette/remember-to-commit
2023-08-31 10:46:07 -07:00
Simon Willison
4c3ef03311
Another ReST fix
2023-08-30 16:19:59 -07:00
Simon Willison
2caa53a52a
ReST fix
2023-08-30 16:19:24 -07:00
Simon Willison
6bfe104d47
DATASETTE_LOAD_PLUGINS environment variable for loading specific plugins
...
Closes #2164
* Load only specified plugins for DATASETTE_LOAD_PLUGINS=datasette-one,datasette-two
* Load no plugins if DATASETTE_LOAD_PLUGINS=''
* Automated tests in a Bash script for DATASETTE_LOAD_PLUGINS
2023-08-30 15:12:24 -07:00
Simon Willison
30b28c8367
Release 1.0a5
...
Refs #2093 , #2102 , #2153 , #2156 , #2157
2023-08-29 10:17:54 -07:00
Simon Willison
bb12229794
Rename core_ to catalog_, closes #2163
2023-08-29 10:01:28 -07:00
Simon Willison
50da908213
Cascade for restricted token view-table/view-database/view-instance operations ( #2154 )
...
Closes #2102
* Permission is now a dataclass, not a namedtuple - refs https://github.com/simonw/datasette/pull/2154/#discussion_r1308087800
* datasette.get_permission() method
2023-08-29 09:32:34 -07:00
Simon Willison
a1f3d75a52
Need to stick to Python 3.9 for gcloud
2023-08-28 20:46:12 -07:00
Alex Garcia
92b8bf38c0
Add new `--internal internal.db` option, deprecate legacy `_internal` database
...
Refs:
- #2157
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2023-08-28 20:24:23 -07:00
dependabot[bot]
d28f12092d
Bump sphinx, furo, blacken-docs dependencies ( #2160 )
...
* Bump the python-packages group with 3 updates
Bumps the python-packages group with 3 updates: [sphinx](https://github.com/sphinx-doc/sphinx ), [furo](https://github.com/pradyunsg/furo ) and [blacken-docs](https://github.com/asottile/blacken-docs ).
Updates `sphinx` from 7.1.2 to 7.2.4
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.1.2...v7.2.4 )
Updates `furo` from 2023.7.26 to 2023.8.19
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.07.26...2023.08.19 )
Updates `blacken-docs` from 1.15.0 to 1.16.0
- [Changelog](https://github.com/adamchainz/blacken-docs/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/asottile/blacken-docs/compare/1.15.0...1.16.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: furo
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: blacken-docs
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
...
Signed-off-by: dependabot[bot] <support@github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Simon Willison <swillison@gmail.com>
2023-08-28 17:38:32 -07:00
Simon Willison
2e2825869f
Test for --get --actor, refs #2153
2023-08-28 13:18:24 -07:00
Simon Willison
d8351b08ed
datasette --get --actor 'JSON' option, closes #2153
...
Refs #2154
2023-08-28 13:15:38 -07:00
Simon Willison
d9aad1fd04
-s/--setting x y gets merged into datasette.yml, refs #2143 , #2156
...
This change updates the `-s/--setting` option to `datasette serve` to allow it to be used to set arbitrarily complex nested settings in a way that is compatible with the new `-c datasette.yml` work happening in:
- #2143
It will enable things like this:
```
datasette data.db --setting plugins.datasette-ripgrep.path "/home/simon/code"
```
For the moment though it just affects [settings](https://docs.datasette.io/en/1.0a4/settings.html ) - so you can do this:
```
datasette data.db --setting settings.sql_time_limit_ms 3500
```
I've also implemented a backwards compatibility mechanism, so if you use it this way (the old way):
```
datasette data.db --setting sql_time_limit_ms 3500
```
It will notice that the setting you passed is one of Datasette's core settings, and will treat that as if you said `settings.sql_time_limit_ms` instead.
2023-08-28 13:06:14 -07:00
Simon Willison
527cec66b0
utils.pairs_to_nested_config(), refs #2156 , #2143
2023-08-24 11:21:15 -07:00
Simon Willison
bdf59eb7db
No more default to 15% on labels, closes #2150
2023-08-23 11:35:42 -07:00
Simon Willison
64fd1d788e
Applied Cog, refs #2143 , #2149
2023-08-22 19:57:46 -07:00
Simon Willison
2ce7872e3b
-c shortcut for --config - refs #2143 , #2149
2023-08-22 19:33:26 -07:00
Alex Garcia
17ec309e14
Start datasette.json, re-add --config, rm settings.json
...
The first step in defining the new `datasette.json/yaml` configuration mechanism.
Refs #2093 , #2143 , #493
2023-08-22 18:26:11 -07:00
Simon Willison
01e0558825
Merge pull request from GHSA-7ch3-7pp7-7cpq
...
* API explorer requires view-instance permission
* Check database/table permissions on /-/api page
* Release notes for 1.0a4
Refs #2119 , #2133 , #2138 , #2140
Refs https://github.com/simonw/datasette/security/advisories/GHSA-7ch3-7pp7-7cpq
2023-08-22 10:10:01 -07:00
Simon Willison
943df09dcc
Remove all remaining "$ " prefixes from docs, closes #2140
...
Also document sqlite-utils create-view
2023-08-11 10:44:34 -07:00
Simon Willison
4535568f2c
Fixed display of database color
...
Closes #2139 , closes #2119
2023-08-10 22:16:19 -07:00
Simon Willison
33251d04e7
Canned query write counters demo, refs #2134
2023-08-09 17:56:27 -07:00
Simon Willison
a3593c9015
on_success_message_sql, closes #2138
2023-08-09 17:32:07 -07:00
Simon Willison
4a42476bb7
datasette plugins --requirements, closes #2133
2023-08-09 15:04:16 -07:00
Simon Willison
19ab4552e2
Release 1.0a3
...
Closes #2135
Refs #262 , #782 , #1153 , #1970 , #2007 , #2079 , #2106 , #2127 , #2130
2023-08-09 12:13:11 -07:00
Simon Willison
90cb9ca58d
JSON changes in release notes, refs #2135
2023-08-09 12:11:16 -07:00
Simon Willison
856ca68d94
Update default JSON representation docs, refs #2135
2023-08-09 12:04:40 -07:00
Simon Willison
e34d09c6ec
Don't include columns in query JSON, refs #2136
2023-08-09 12:01:59 -07:00
Simon Willison
8920d425f4
1.0a3 release notes, smaller changes section - refs #2135
2023-08-09 10:20:58 -07:00
Simon Willison
26be9f0445
Refactored canned query code, replaced old QueryView, closes #2114
2023-08-09 08:26:52 -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
dependabot[bot]
5139c0886a
Bump the python-packages group with 3 updates ( #2128 )
...
Bumps the python-packages group with 3 updates: [sphinx](https://github.com/sphinx-doc/sphinx ), [furo](https://github.com/pradyunsg/furo ) and [blacken-docs](https://github.com/asottile/blacken-docs ).
Updates `sphinx` from 6.1.3 to 7.1.2
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.1.3...v7.1.2 )
Updates `furo` from 2023.3.27 to 2023.7.26
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.03.27...2023.07.26 )
Updates `blacken-docs` from 1.14.0 to 1.15.0
- [Changelog](https://github.com/adamchainz/blacken-docs/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/asottile/blacken-docs/compare/1.14.0...1.15.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: python-packages
- dependency-name: furo
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: blacken-docs
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python-packages
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07 09:19:23 -07:00
Simon Willison
adf54f5c80
Use dependabot grouped updates
2023-08-07 08:45:10 -07:00
Simon Willison
0818182399
Update cli-reference for editable change, refs #2106
2023-07-26 11:52:57 -07:00
Simon Willison
18dd88ee4d
Refactored DatabaseDownload to database_download, closes #2116
2023-07-26 11:43:55 -07:00
Simon Willison
dc5171eb1b
Make editable work with -e '.[test]', refs #2106
2023-07-26 11:28:03 -07:00
Simon Willison
278ac91a4d
datasette install -e option, closes #2106
2023-07-22 11:42:46 -07:00
dependabot[bot]
3a51ca9014
Bump black from 23.3.0 to 23.7.0 ( #2099 )
...
Bumps [black](https://github.com/psf/black ) from 23.3.0 to 23.7.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/23.3.0...23.7.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-21 14:19:24 -07:00
Simon Willison
0f7192b615
One last YAML/JSON change, closes #1153
2023-07-08 13:08:09 -07:00
Simon Willison
42ca574720
Removed accidental test code I added, refs #1153
2023-07-08 12:50:22 -07:00
Simon Willison
2fd871a906
Drop support for Python 3.7, refs #2097
2023-07-08 11:40:19 -07:00
Simon Willison
45e6d370ce
Install docs dependencies for tests, refs #1153
2023-07-08 11:35:15 -07:00
Simon Willison
50a6355c08
Workaround to get sphinx-build working again, refs 1153
2023-07-08 11:22:21 -07:00
Simon Willison
c076fb65e0
Applied sphinx-inline-tabs to remaining examples, refs #1153
2023-07-08 11:00:08 -07:00
Simon Willison
0183e1a72d
Preserve JSON key order in YAML, refs #1153
2023-07-08 10:27:36 -07:00
Simon Willison
38fcc96e67
Removed duplicate imports, refs #1153
2023-07-08 10:09:26 -07:00