|
1 | 1 | Changelog
|
2 | 2 | =========
|
3 | 3 |
|
| 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 | + |
4 | 54 | 0.16 (2018-04-13)
|
5 | 55 | -----------------
|
6 | 56 | - Better mechanism for handling errors; 404s for missing table/database
|
|
0 commit comments