|
1 | 1 | Changelog
|
2 | 2 | =========
|
3 | 3 |
|
| 4 | +0.15 (2018-04-09) |
| 5 | +----------------- |
| 6 | + |
| 7 | +The biggest new feature in this release is the ability to sort by column. On the |
| 8 | +table page the column headers can now be clicked to apply sort (or descending |
| 9 | +sort), or you can specify ``?_sort=column`` or ``?_sort_desc=column`` directly |
| 10 | +in the URL. |
| 11 | + |
| 12 | +- ``table_rows`` => ``table_rows_count``, ``filtered_table_rows`` => |
| 13 | + ``filtered_table_rows_count`` |
| 14 | + |
| 15 | + Renamed properties. Closes `#194 <https://github.com/simonw/datasette/issues/194>`_ |
| 16 | + |
| 17 | +- New ``sortable_columns`` option in ``metadata.json`` to control sort options. |
| 18 | + |
| 19 | + You can now explicitly set which columns in a table can be used for sorting |
| 20 | + using the ``_sort`` and ``_sort_desc`` arguments using ``metadata.json``:: |
| 21 | + |
| 22 | + { |
| 23 | + "databases": { |
| 24 | + "database1": { |
| 25 | + "tables": { |
| 26 | + "example_table": { |
| 27 | + "sortable_columns": [ |
| 28 | + "height", |
| 29 | + "weight" |
| 30 | + ] |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + } |
| 35 | + } |
| 36 | + |
| 37 | + Refs `#189 <https://github.com/simonw/datasette/issues/189>`_ |
| 38 | + |
| 39 | +- Column headers now link to sort/desc sort - refs `#189 <https://github.com/simonw/datasette/issues/189>`_ |
| 40 | + |
| 41 | +- ``_sort`` and ``_sort_desc`` parameters for table views |
| 42 | + |
| 43 | + Allows for paginated sorted results based on a specified column. |
| 44 | + |
| 45 | + Refs `#189 <https://github.com/simonw/datasette/issues/189>`_ |
| 46 | + |
| 47 | +- Total row count now correct even if ``_next`` applied |
| 48 | + |
| 49 | +- Use .custom_sql() for _group_count implementation (refs `#150 <https://github.com/simonw/datasette/issues/150>`_) |
| 50 | + |
| 51 | +- Make HTML title more readable in query template (`#180 <https://github.com/simonw/datasette/issues/180>`_) [Ryan Pitts] |
| 52 | + |
| 53 | +- New ``?_shape=objects/object/lists`` param for JSON API (`#192 <https://github.com/simonw/datasette/issues/192>`_) |
| 54 | + |
| 55 | + New ``_shape=`` parameter replacing old ``.jsono`` extension |
| 56 | + |
| 57 | + Now instead of this:: |
| 58 | + |
| 59 | + /database/table.jsono |
| 60 | + |
| 61 | + We use the ``_shape`` parameter like this:: |
| 62 | + |
| 63 | + /database/table.json?_shape=objects |
| 64 | + |
| 65 | + Also introduced a new ``_shape`` called ``object`` which looks like this:: |
| 66 | + |
| 67 | + /database/table.json?_shape=object |
| 68 | + |
| 69 | + Returning an object for the rows key:: |
| 70 | + |
| 71 | + ... |
| 72 | + "rows": { |
| 73 | + "pk1": { |
| 74 | + ... |
| 75 | + }, |
| 76 | + "pk2": { |
| 77 | + ... |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + Refs `#122 <https://github.com/simonw/datasette/issues/122>`_ |
| 82 | + |
| 83 | +- Utility for writing test database fixtures to a .db file |
| 84 | + |
| 85 | + ``python tests/fixtures.py /tmp/hello.db`` |
| 86 | + |
| 87 | + This is useful for making a SQLite database of the test fixtures for |
| 88 | + interactive exploration. |
| 89 | + |
| 90 | +- Compound primary key ``_next=`` now plays well with extra filters |
| 91 | + |
| 92 | + Closes `#190 <https://github.com/simonw/datasette/issues/190>`_ |
| 93 | + |
| 94 | +- Fixed bug with keyset pagination over compound primary keys |
| 95 | + |
| 96 | + Refs `#190 <https://github.com/simonw/datasette/issues/190>`_ |
| 97 | + |
| 98 | +- Database/Table views inherit ``source/license/source_url/license_url`` |
| 99 | + metadata |
| 100 | + |
| 101 | + If you set the ``source_url/license_url/source/license`` fields in your root |
| 102 | + metadata those values will now be inherited all the way down to the database |
| 103 | + and table templates. |
| 104 | + |
| 105 | + The ``title/description`` are NOT inherited. |
| 106 | + |
| 107 | + Also added unit tests for the HTML generated by the metadata. |
| 108 | + |
| 109 | + Refs `#185 <https://github.com/simonw/datasette/issues/185>`_ |
| 110 | + |
| 111 | +- Add metadata, if it exists, to heroku temp dir (`#178 <https://github.com/simonw/datasette/issues/178>`_) [Tony Hirst] |
| 112 | +- Initial documentation for pagination |
| 113 | +- Broke up test_app into test_api and test_html |
| 114 | +- Fixed bug with .json path regular expression |
| 115 | + |
| 116 | + I had a table called ``geojson`` and it caused an exception because the regex |
| 117 | + was matching ``.json`` and not ``\.json`` |
| 118 | + |
| 119 | +- Deploy to Heroku with Python 3.6.3 |
| 120 | + |
4 | 121 | 0.14 (2017-12-09)
|
5 | 122 | -----------------
|
6 | 123 |
|
|
0 commit comments