Simon Willison
5ee954e34b
Link to annotated release notes for 1.0a2
2022-12-15 17:03:37 -08:00
Simon Willison
0b68996cc5
Revert "Replace AsgiLifespan with AsgiRunOnFirstRequest, refs #1955"
...
This reverts commit dc18f62089
.
2022-12-15 13:06:45 -08:00
Simon Willison
dc18f62089
Replace AsgiLifespan with AsgiRunOnFirstRequest, refs #1955
2022-12-15 09:34:07 -08:00
Simon Willison
e054704fb6
Added missing rST label
2022-12-14 21:38:28 -08:00
Simon Willison
6e1e815c78
It's an update-or-insert
2022-12-14 18:41:30 -08:00
Simon Willison
8b9d7fdbd8
Fixed typo in release notes, refs #1953
2022-12-14 18:02:42 -08:00
Simon Willison
8cac6ff301
Release 1.0a2
...
Refs #1636 , #1855 , #1878 , #1927 , #1937 , #1940 , #1947 , #1951
Closes #1953
2022-12-14 18:01:02 -08:00
Simon Willison
9ad76d279e
Applied blacken-docs, refs #1937
2022-12-14 14:49:13 -08:00
Simon Willison
c094dde3ff
Extra permission rules for /-/create, closes #1937
2022-12-14 12:21:18 -08:00
Simon Willison
6e5ab9e7b3
Note in docs about new /-/create-token features, refs #1947
2022-12-13 21:07:03 -08:00
Simon Willison
fdf7c27b54
datasette.create_token() method, closes #1951
2022-12-13 18:42:01 -08:00
Simon Willison
d4cc1374f4
Improved --help for create-token, refs #1947
2022-12-13 14:28:59 -08:00
Simon Willison
2aa2adaa8b
Docs for new create-token options, refs #1855
2022-12-12 20:56:40 -08:00
Simon Willison
c13dada2f8
datasette --get --token option, closes #1946 , refs #1855
2022-12-12 20:36:42 -08:00
Simon Willison
14f1cc4984
Update CLI reference help, refs #1855
2022-12-12 20:21:48 -08:00
Simon Willison
98eff2cde9
Ignore spelling of alls, refs #1855
2022-12-12 20:19:17 -08:00
Simon Willison
8bf06a76b5
register_permissions() plugin hook ( #1940 )
...
* Docs for permissions: in metadata, refs #1636
* Refactor default_permissions.py to help with implementation of #1636
* register_permissions() plugin hook, closes #1939 - also refs #1938
* Tests for register_permissions() hook, refs #1939
* Documentation for datasette.permissions, refs #1939
* permission_allowed() falls back on Permission.default, refs #1939
* Raise StartupError on duplicate permissions
* Allow dupe permisisons if exact matches
2022-12-12 18:05:54 -08:00
David Larlet
e539c1c024
Typo in JSON API `Updating a row` documentation ( #1930 )
2022-12-08 13:12:34 -08:00
Simon Willison
05daa15aac
Documentation for /-/create ignore/replace, closes #1927
2022-12-07 17:42:54 -08:00
Simon Willison
272982e8a6
/db/table/-/upsert API
...
Close #1878
Also made a few tweaks to how _r works in tokens and actors,
refs #1855 - I needed that mechanism for the tests.
2022-12-07 17:12:15 -08:00
Simon Willison
cab5b60e09
datasette-auth-passwords is another actor_from_request example
2022-12-02 08:39:52 -08:00
Simon Willison
692fbfc40a
Release 1.0a1
...
Refs #1922 , #1917 , #1915 , #1916 , #1918 , #1924
2022-12-01 13:30:39 -08:00
Simon Willison
99da46f725
Docs for insert API ignore/replace - closes #1924
2022-11-30 18:07:48 -08:00
Simon Willison
7fde34cfcb
Documentation and test for UNIQUE constraint failed, refs #1924
2022-11-30 18:05:29 -08:00
Simon Willison
f0fadc28dd
Access-Control-Allow-Headers: Authorization, Content-Type - refs #1922
2022-11-30 15:11:18 -08:00
Simon Willison
6bfd71f5c6
Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS - refs #1922
2022-11-30 12:25:12 -08:00
Simon Willison
b8fc8e2cd7
Merge branch 'main' into 1.0-dev
2022-11-29 11:34:39 -08:00
Simon Willison
4d49a5a397
Release 1.0a0
...
Refs #1850 , #1851 , #1852 , #1856 , #1858 , #1863 , #1864 , #1871 , #1874 , #1882
Closes #1891
2022-11-29 11:22:54 -08:00
Simon Willison
1154048f79
Compound primary key support for /db/-/create - closes #1911
...
Needed for tests in #1864
2022-11-29 10:47:48 -08:00
Simon Willison
484bef0d3b
/db/table/pk/-/update endpoint, closes #1863
2022-11-29 10:06:19 -08:00
Simon Willison
21f8aab531
Release 0.63.2
...
Refs #1904 , #1905
2022-11-18 16:59:05 -08:00
Simon Willison
72ac9bf82f
--generate-dir option to publish heroku, refs #1905
2022-11-18 16:34:33 -08:00
Simon Willison
ee64130fa8
Refactor to use new resolve_database/table/row methods, refs #1896
2022-11-18 14:46:25 -08:00
Simon Willison
c588a89f26
db.view_exists() method, needed by #1896
2022-11-18 14:16:38 -08:00
Brian Grinstead
710be684b8
Upgrade to CodeMirror 6, add SQL autocomplete ( #1893 )
...
* Upgrade to CodeMirror 6
* Update contributing docs
* Change how resizing works
* Define a custom SQLite autocomplete dialect
* Add meta-enter to submit
* Add fixture schema for testing
2022-11-17 17:23:35 -08:00
Brian Grinstead
ae11fa5887
Upgrade to CodeMirror 6, add SQL autocomplete ( #1893 )
...
* Upgrade to CodeMirror 6
* Update contributing docs
* Change how resizing works
* Define a custom SQLite autocomplete dialect
* Add meta-enter to submit
* Add fixture schema for testing
2022-11-16 15:49:06 -08:00
Simon Willison
187d91d686
/db/-/create API endpoint, closes #1882
2022-11-14 21:57:28 -08:00
Simon Willison
264d0ab471
Renamed return_rows to return in insert API
...
Refs https://github.com/simonw/datasette/issues/1866#issuecomment-1313128913
2022-11-13 21:49:23 -08:00
Simon Willison
65521f03db
Error for drop against immutable database, closes #1874
2022-11-13 21:40:10 -08:00
Simon Willison
612da8eae6
confirm: true mechanism for drop table API, closes #1887
2022-11-13 21:17:18 -08:00
Simon Willison
f832435b88
Release 0.63.1
...
Refs ##1843, #1876 , #1883
2022-11-12 12:29:59 -08:00
Simon Willison
9f54f00a50
Release 0.63.1
...
Refs ##1843, #1876 , #1883
2022-11-10 23:01:20 -08:00
Simon Willison
aacf25cf19
Improvements to API token docs, refs #1852
2022-11-05 23:54:32 -07: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
2355067ef5
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:36:11 -07:00
Simon Willison
9bec7c38eb
ignore and replace options for bulk inserts, refs #1873
...
Also removed the rule that you cannot include primary keys in the rows you insert.
And added validation that catches invalid parameters in the incoming JSON.
And renamed "inserted" to "rows" in the returned JSON for return_rows: true
2022-11-01 11:08:17 -07:00
Simon Willison
00632ded30
Initial attempt at /db/table/row/-/delete, refs #1864
2022-10-30 16:16:00 -07:00
Simon Willison
2865d3956f
/db/table/-/drop API, closes #1874
2022-10-30 15:17:21 -07:00
Simon Willison
4f16e14d7a
Update cog
2022-10-30 14:53:33 -07:00
Simon Willison
c35859ae3d
API for bulk inserts, closes #1866
2022-10-29 23:03:45 -07:00