Simon Willison
7261584f04
Display currently selected facets better, refs #255
2018-05-16 19:42:31 -07:00
Simon Willison
96aac7f9e9
Facet documentation tweaks
2018-05-16 13:50:34 -07:00
Simon Willison
9959a9e4de
Added screenshots to facets and full_text_search docs, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
858d79fe93
Typo fix
2018-05-16 08:27:24 -07:00
Simon Willison
566f2d31d6
Clarified relationship between metadata and _facet= facets, updated docs - refs @255
2018-05-16 08:27:24 -07:00
Simon Willison
b263da78e3
Reliable sort order for facets in Python 3.5, fixing test - refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
062303419c
Hide facet button is now a ✖ - refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
62f1d3a6cb
class="suggested-facets"
2018-05-16 08:27:24 -07:00
Simon Willison
91bf5f56bb
Show enabled facets in flexbox columns, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
6d12580ed7
Foreign key facets are now expanded to labels, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
a892f9a0bd
Use escape_sqlite() more consistently
2018-05-16 08:27:24 -07:00
Simon Willison
8a0bd68c39
Undid some slightly weird code formatting by 'black'
2018-05-16 08:27:24 -07:00
Simon Willison
63aac537f2
1,442 format for facet counts, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
f4943ca89b
_facet selections persist through table form, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
514873c629
Fix bug with toggle_url on integer facets
2018-05-16 08:27:24 -07:00
Simon Willison
1dc94f6eaa
Facets can now be toggled off again, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
ba515fc56e
Removed un-used variable
2018-05-16 08:27:24 -07:00
Simon Willison
142a550a99
Facet results now have "truncated" field
...
To indicate if there was more than 20 distinct values. Refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
a82175276c
_sort/_next links now use new path_with_replaced_args method
2018-05-16 08:27:24 -07:00
Simon Willison
2f81552cd2
Never suggest a facet if it only results in on option
2018-05-16 08:27:24 -07:00
Simon Willison
b0d2bb3e43
Facets no longer consider null values
2018-05-16 08:27:24 -07:00
Simon Willison
ddef229850
Initial implementation of suggested facets
...
Causes tests to break at the moment
2018-05-16 08:27:24 -07:00
Simon Willison
8a4ed052a5
path_with_added_args now works with multiple existing args
2018-05-16 08:27:24 -07:00
Simon Willison
f36c9d4b4c
Facet toggling now works for integer columns, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
de05cf21aa
Facet "selected" key and toggle_url now toggles, refs #255
2018-05-16 08:27:24 -07:00
Simon Willison
2b79f2bdeb
path_with_added_args now preserves order in Python 3.5
2018-05-14 00:04:23 -03:00
Simon Willison
eaf715a60a
Extract /-/plugins view into a method
2018-05-14 00:04:23 -03:00
Simon Willison
cf1fe693e5
Used isort to re-order my imports
2018-05-14 00:04:23 -03:00
Simon Willison
3686385551
Ran black source formatting tool against new views/ and app.py
2018-05-14 00:04:23 -03:00
Simon Willison
1f69269fe9
Refactored views into new views/ modules, refs #256
2018-05-14 00:04:23 -03:00
Simon Willison
4301a8f3ac
Case insensitive querystring comparison, fix Python 3.5
2018-05-12 19:49:37 -03:00
Simon Willison
eaaa3ea149
Initial implementation of facets, plus tests and docs
...
Refs #255
2018-05-12 19:29:41 -03:00
Simon Willison
70ff615f1b
utils.path_with_added_args() improvements
...
* Now covered by unit tests
* Preserves original order
* Can handle multiple args of the same name, e.g. ?bar=1&bar=2
2018-05-12 18:44:09 -03:00
Simon Willison
1c815207cc
Update conf.py
2018-05-12 09:08:11 -03:00
Simon Willison
694f845715
Documentation for SQLite full-text search support, closes #253
2018-05-12 09:06:38 -03:00
Simon Willison
04d21ccd08
/-/versions now includes SQLite fts_versions, closes #252
2018-05-11 10:19:25 -03:00
Simon Willison
e10f8e1274
Slight simplification of /-/inspect
2018-05-06 10:05:38 -03:00
Simon Willison
8e0f072847
Added Datasette 0.21 to News
2018-05-05 20:24:55 -03:00
Simon Willison
62c08d0d71
Revert "Travis should now deploy new tags to PyPI if tests pass"
...
This reverts commit d39b2e357e
.
It failed with this error: https://travis-ci.org/simonw/datasette/jobs/375398977
Uploading distributions to https://upload.pypi.org/legacy/
Uploading datasette-0.21-py3-none-any.whl
100% 182k/182k [00:00<00:00, 694kB/s]
HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/
2018-05-05 20:22:21 -03:00
Simon Willison
403211de63
Release Datasette 0.21
2018-05-05 20:15:38 -03:00
Simon Willison
d39b2e357e
Travis should now deploy new tags to PyPI if tests pass
2018-05-05 20:15:05 -03:00
Simon Willison
801381b765
Default tests to using a longer timelimit
...
Every now and then a test will fail in Travis CI on Python 3.5 because it hit
the default 20ms SQL time limit.
Test fixtures now default to a 200ms time limit, and we only use the 20ms time
limit for the specific test that tests query interruption. This should make
our tests on Python 3.5 in Travis much more stable.
2018-05-05 19:44:32 -03:00
Simon Willison
1259b8ac0b
Support _search_COLUMN=text searches, closes #237
2018-05-05 19:33:08 -03:00
Simon Willison
4d6a568d6c
Unit tests for _search= feature, refs #237
2018-05-05 19:01:14 -03:00
Simon Willison
ca290719ed
Show version on /-/plugins page, closes #248
2018-05-04 15:04:33 -03:00
Simon Willison
d4da4c92c8
?_size=max option, closes #249
2018-05-04 15:03:40 -03:00
Simon Willison
bb87cf8730
Added /-/versions and /-/versions.json, closes #244
...
Sample output:
{
"python": {
"version": "3.6.3",
"full": "3.6.3 (default, Oct 4 2017, 06:09:38) \n[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]"
},
"datasette": {
"version": "0.20"
},
"sqlite": {
"version": "3.23.1",
"extensions": {
"json1": null,
"spatialite": "4.3.0a"
}
}
}
2018-05-03 11:09:27 -03:00
Simon Willison
690736436b
Bump up time limit for test_paginate_tables_and_views
...
It was intermittently failing in Travis CI on Python 3.5:
https://travis-ci.org/simonw/datasette/jobs/373713476
2018-05-01 17:20:39 -07:00
Simon Willison
349e262bb1
Renamed ?_sql_time_limit_ms= to ?_timelimit, closes #242
2018-05-01 17:20:39 -07:00
Simon Willison
a4cc5dc813
New ?_shape=array option + tweaks to _shape, closes #245
...
* Default is now ?_shape=arrays (renamed from lists)
* New ?_shape=array returns an array of objects as the root object
* Changed ?_shape=object to return the object as the root
* Updated docs
2018-05-01 17:20:39 -07:00