Simon Willison
afd0480d3f
Tidy up README, reducing duplication with docs
...
Refs #451
2019-05-19 14:31:03 -07:00
Simon Willison
17243fc355
Release notes for 0.28 - closes #463
2019-05-19 14:24:12 -07:00
Simon Willison
a9d138702c
Docs for facet-by-JSON-array, closes #477
2019-05-19 14:19:35 -07:00
Simon Willison
f4eefdf193
Do not allow downloads of mutable databases - closes #474
2019-05-19 13:41:09 -07:00
Simon Willison
88976d6cd6
Source, license and about docs - closes #475
2019-05-19 13:13:27 -07:00
Simon Willison
503fee891b
Removed 'datasette skeleton', closes #476
2019-05-19 13:05:38 -07:00
Simon Willison
2600858388
Fixed some links
2019-05-19 11:17:35 -07:00
Simon Willison
870f6dd55f
Replaced a straggling 'datasette publish now' reference
2019-05-19 11:12:53 -07:00
Simon Willison
7d8573d672
Rename "datasette publish now" to "datasette publish nowv1"
...
Also added an alias so "datasette publish now" continues to work.
Closes #472
2019-05-19 11:06:51 -07:00
Simon Willison
81ba98a509
New performance documentation, closes #421
2019-05-18 22:31:03 -07:00
Simon Willison
db9dbfb816
?_hash=1 no longer respected for mutable databases
...
Closes #471 , refs #419
2019-05-16 08:10:25 -07:00
Simon Willison
cccea85be6
/-/databases sorts alphabetically
...
Should fix test failure in Python 3.5
2019-05-16 07:56:13 -07:00
Simon Willison
0dad111d24
New introspection endpoint: /-/databases - closes #470
...
Refs #419 and #465
2019-05-16 07:49:34 -07:00
Simon Willison
21b57cdf9a
serve --inspect-file=X now populates cached table counts
...
Closes #462
2019-05-16 07:30:32 -07:00
Simon Willison
909e66dfdb
Removed .inspect() and /-/inspect.json
...
Refs #462
/-/inspect.json may return in some shape in #465
2019-05-16 07:15:24 -07:00
Simon Willison
1937026766
Removed accidental R
2019-05-16 06:27:08 -07:00
Simon Willison
f31b9fe5ca
Another link to Glitch
2019-05-16 06:26:46 -07:00
Simon Willison
7c79eb974b
It's 2019 now
2019-05-16 03:20:08 -07:00
Simon Willison
a464594475
Added inline contents for installation page
2019-05-16 03:15:03 -07:00
Simon Willison
a88b599cce
Improved introduction copy on Plugins docs page
2019-05-15 22:18:02 -07:00
Simon Willison
725b5b6a69
Re-ordered documentation index page
2019-05-15 22:14:33 -07:00
Simon Willison
12350e8b8a
Fixed broken link to global-power-plants demo
2019-05-15 22:12:36 -07:00
Simon Willison
8461b930d5
Wording tweaks
2019-05-15 22:09:06 -07:00
Simon Willison
8d639dd096
Docs on how to use sphinx-autobuild
2019-05-15 22:03:37 -07:00
Simon Willison
623c552ff4
'Try Datasette without installing anything using Glitch'
...
Also new 'Play with a live demo' section, both at the top of the Getting
Started documentation page.
https://datasette.readthedocs.io/en/latest/getting_started.html
Closes #464
2019-05-15 21:57:36 -07:00
Simon Willison
666c37415a
publish heroku now uses Python 3.6.8
...
Also refactored temporary_heroku_directory out of utils.py
2019-05-15 21:32:23 -07:00
Simon Willison
2ad9d15cd6
Table counts now handles SQL Logic Error too
...
I tried running Datasette against 22 database files at once and ran into
a weird error where the table counts broke with an SQL Logic Error
exception. Easy fix: catch that exception too and treat it the same as a
regular Interrupted error.
2019-05-15 20:55:28 -07:00
Simon Willison
b7fe722f05
Removed rogue print()
2019-05-15 20:25:51 -07:00
Simon Willison
faf33515b2
Sometimes sort tables by number of relationships, closes #460
2019-05-15 20:23:33 -07:00
Simon Willison
689cf9c139
Index page only shows row counts for smaller databases
...
The index page now only shows row counts for immutable databases OR for
databases with less than 30 tables provided it could get a count for
each of those tables in less than 10ms.
Closes #467 , Refs #460
2019-05-15 20:02:33 -07:00
Simon Willison
79303163b2
Row count fix + sort index page databases alphabetically
...
Sorting alphabetically should fix a test failure in Python 3.5
Refs #460
2019-05-15 17:40:10 -07:00
Simon Willison
5d6b2c30f1
Include views on homepage, fix table counts
...
If we have less than 5 tables we now also show one or more views in the
summary on the homepage.
Also corrected the logic for the row counts - we now count hidden and
visible tables separately.
Closes #373 , Refs #460
2019-05-15 17:28:07 -07:00
Simon Willison
e04511410f
Don't show hidden tables on index page, closes #455
...
Refs #460 . Also bulked out HTML index page unit tests.
2019-05-14 08:46:57 -07:00
Simon Willison
24bf79d2f0
Run sanity checks, not .inspect(), on startup
...
Also fixes tests that did NOT like a call to run_until_complete in the Datasette() constructor.
2019-05-11 16:22:55 -07:00
Simon Willison
da0b3ce2b7
New run_sanity_checks mechanism, for SpatiLite
...
Moved VirtualSpatialIndex check into a new mechanism that should allow
us to add further sanity checks in the future.
To test this I've had to commit a binary sample SpatiaLite database to
the repository. I included a build script for creating that database.
Closes #466
2019-05-11 15:55:30 -07:00
Simon Willison
c692cd2911
Fix test ordering
2019-05-11 15:03:52 -07:00
Simon Willison
a187c81e0c
Black + fix broken test
2019-05-11 14:45:59 -07:00
Simon Willison
c0d1b4c322
"datasette inspect foo.db" now just calculates table counts
...
Refs #462
* inspect command now just outputs table counts
* test_inspect.py is now only tests for that CLI command
* Updated some relevant documentation
* Removed docs for /-/inspect since that is about to change
2019-05-11 14:36:57 -07:00
Simon Willison
ce09e5d2d3
Fixed tests relating to #459
2019-05-11 13:58:22 -07:00
Simon Willison
05cabaebd9
Pass --token to now alias, refs #459
2019-05-11 13:35:34 -07:00
Simon Willison
09ef305c68
Fixed "datasette publish now ... --alias=x"
...
The --alias argument can now be passed more than once.
Also updated our Travis configuration to use this.
Fixes #459
2019-05-11 13:20:36 -07:00
Simon Willison
a0d444837f
Finished implementation of ?_trace=1 debug tool
...
I redesigned the JSON output and added a handy "traceback" key showing
three relevant lines of the current traceback for each logged query.
Closes #435
2019-05-11 12:06:22 -07:00
Simon Willison
37adf32290
Changelog for 0.27.1
2019-05-11 11:34:13 -07:00
Simon Willison
e7b31ae8c1
Use now --target production instead of now alias
...
Fix for this error:
$ now alias --token=$NOW_TOKEN
> WARN! The `now alias` command (no arguments) was deprecated in favour of `now --target production`.
> Error! Couldn't find a deployment to alias. Please provide one as an argument.
The command "now alias --token=$NOW_TOKEN" exited with 1.
https://travis-ci.org/simonw/datasette/jobs/530597261
2019-05-11 10:06:23 -07:00
Simon Willison
de005b9b7d
Fixed 500 error on homepage
2019-05-09 22:28:16 -07:00
Simon Willison
ad789eaaea
Added some things to .gitignore
2019-05-09 22:28:16 -07:00
Veit Heller
9f8d9fe262
setup: add tests to package exclusion ( #458 )
2019-05-09 18:54:50 -07:00
Simon Willison
f825e20121
Run black and update docs for #457
2019-05-09 09:48:13 -07:00
Simon Willison
b80b03ac9a
datasette publish cloudrun --service=x, closes #457
2019-05-09 09:45:01 -07:00
Simon Willison
2db977d8f3
tests/fixtures.py can now write out plugins too
...
This command:
python tests/fixtures.py \
fixtures.db \
metadata.json \
fixtures-plugins/
Will now create the fixtures.db and metadata.json files, AND create
a folder called fixtures-plugins/ containing two test plugins.
You can then run it like this:
datasette fixtures.db \
-m metadata.json --plugins-dir=fixtures-plugins/
2019-05-09 09:44:21 -07:00