Skip to content

Commit 43ae15c

Browse files
committed
Releasing v0.18 - support for units!
Refs simonw#203
1 parent 932e0a3 commit 43ae15c

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

datasette/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version_info__ = (0, 17)
1+
__version_info__ = (0, 18)
22
__version__ = '.'.join(map(str, __version_info__))

docs/changelog.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
11
Changelog
22
=========
33

4+
0.18 (2018-04-14)
5+
-----------------
6+
7+
This release introduces `support for units <http://datasette.readthedocs.io/en/latest/metadata.html#specifying-units-for-a-column>`_,
8+
contributed by Russ Garrett (`#203 <https://github.com/simonw/datasette/issues/203>`_).
9+
You can now optionally specify the units for specific columns using ``metadata.json``.
10+
Once specified, units will be displayed in the HTML view of your table. They also become
11+
available for use in filters - if a column is configured with a unit of distance, you can
12+
request all rows where that column is less than 50 meters or more than 20 feet for example.
13+
14+
- Link foreign keys which don't have labels. [Russ Garrett]
15+
16+
This renders unlabeled FKs as simple links.
17+
18+
Also includes bonus fixes for two minor issues:
19+
20+
* In foreign key link hrefs the primary key was escaped using HTML
21+
escaping rather than URL escaping. This broke some non-integer PKs.
22+
* Print tracebacks to console when handling 500 errors.
23+
24+
- Fix SQLite error when loading rows with no incoming FKs. [Russ
25+
Garrett]
26+
27+
This fixes ``ERROR: conn=<sqlite3.Connection object at 0x10bbb9f10>, sql
28+
= 'select ', params = {'id': '1'}`` caused by an invalid query when
29+
loading incoming FKs.
30+
31+
The error was ignored due to async but it still got printed to the
32+
console.
33+
34+
- Allow custom units to be registered with Pint. [Russ Garrett]
35+
- Support units in filters. [Russ Garrett]
36+
- Tidy up units support. [Russ Garrett]
37+
38+
* Add units to exported JSON
39+
* Units key in metadata skeleton
40+
* Docs
41+
42+
- Initial units support. [Russ Garrett]
43+
44+
Add support for specifying units for a column in ``metadata.json`` and
45+
rendering them on display using
46+
`pint <https://pint.readthedocs.io/en/latest/>`_
47+
48+
49+
0.17 (2018-04-13)
50+
-----------------
51+
- Release 0.17 to fix issues with PyPI
52+
53+
454
0.16 (2018-04-13)
555
-----------------
656
- Better mechanism for handling errors; 404s for missing table/database

0 commit comments

Comments
 (0)