Commit graph

1,839 commits

Author SHA1 Message Date
Simon Willison
92a5280d2e Release 0.60a0 0.60a0
Refs #473, #625, #1544, #1551, #1552, #1556, #1557
2021-12-17 11:13:51 -08:00
Simon Willison
aa7f0037a4
filters_from_request plugin hook, now used in TableView
- New `filters_from_request` plugin hook, closes #473
- Used it to extract the logic from TableView that handles `_search` and
`_through` and `_where` - refs #1518

Also needed for this plugin work: https://github.com/simonw/datasette-leaflet-freedraw/issues/7
2021-12-17 11:02:14 -08:00
Simon Willison
0663d5525c More comments in TableView.data(), refs #1518 2021-12-16 14:00:29 -08:00
Simon Willison
2c07327d23 Move columns_to_select to TableView class, add lots of comments, refs #1518 2021-12-16 13:43:44 -08:00
Simon Willison
0d4145d0f4 Additional test for #625 2021-12-16 12:30:31 -08:00
Simon Willison
95d0dd7a1c Fix for colliding facet types bug, closes #625
Refs #830
2021-12-16 12:12:04 -08:00
Simon Willison
992496f261 ?_nosuggest=1 parameter for table views, closes #1557 2021-12-16 11:24:54 -08:00
Simon Willison
20a2ed6bec Fixed bug with metadata config of array/date facets, closes #1552
Thanks @davidbgk for spotting the fix for the bug.
2021-12-16 10:47:40 -08:00
Simon Willison
40e5b0a5b5
How to create indexes with sqlite-utils 2021-12-16 10:03:10 -08:00
Simon Willison
eb53837d2a Always show count of distinct facet values, closes #1556
Refs #1423
2021-12-15 09:58:01 -08:00
Simon Willison
4f02c8d4d7 Test for JSON in query_string name, refs #621
Plus simplified implementation of test_request_blank_values
2021-12-14 12:29:05 -08:00
dependabot[bot]
f5538e7161
Bump black from 21.11b1 to 21.12b0 (#1543)
Bumps [black](https://github.com/psf/black) from 21.11b1 to 21.12b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 15:22:29 -08:00
dependabot[bot]
8b411a6b70
Update pytest-xdist requirement from <2.5,>=2.2.1 to >=2.2.1,<2.6 (#1548)
Updates the requirements on [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases)
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.2.1...v2.5.0)

---
updated-dependencies:
- dependency-name: pytest-xdist
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 15:22:21 -08:00
Simon Willison
a6ff123de5 keep_blank_values=True when parsing query_string, closes #1551
Refs #1518
2021-12-12 12:01:51 -08:00
Simon Willison
492f9835aa Refactor table view API tests to test_table_api.py
Refs #1518
2021-12-11 19:07:19 -08:00
Simon Willison
1876975e3b Refactor table view HTML tests to test_table_html.py
Refs #1518
2021-12-11 19:06:45 -08:00
Simon Willison
737115ea14
Label column finder is now case-insensitive
Closes #1544
2021-12-07 12:03:42 -08:00
Simon Willison
36b596e383
Framework :: Datasette Trove classifier 2021-12-07 11:41:56 -08:00
Simon Willison
7c02be2ee9 Release 0.59.4 0.59.4
Refs #1525, #1527
2021-11-29 22:45:37 -08:00
Simon Willison
ca66246438 Updated JSON foreign key tables test for #1525 2021-11-29 22:45:04 -08:00
Simon Willison
35b12746ba Fixed CSV test I broke in #1525 2021-11-29 22:37:22 -08:00
Simon Willison
a37ee74891 Correct link to _ prefix on row page, closes #1525 2021-11-29 22:34:31 -08:00
Simon Willison
69244a617b Rename city_id to _city_id in fixtures, refs #1525 2021-11-29 22:20:42 -08:00
Simon Willison
06762776f7 Fix for incorrect hidden for fields for _columns, refs #1527 2021-11-29 19:04:35 -08:00
dependabot[bot]
83eb29dece
Update janus requirement from <0.7,>=0.6.2 to >=0.6.2,<0.8 (#1529)
Updates the requirements on [janus](https://github.com/aio-libs/janus) to permit the latest version.
- [Release notes](https://github.com/aio-libs/janus/releases)
- [Changelog](https://github.com/aio-libs/janus/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/janus/compare/v0.6.2...v0.7.0)

---
updated-dependencies:
- dependency-name: janus
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-29 18:37:13 -08:00
dependabot[bot]
cc4c70b367
Bump black from 21.9b0 to 21.11b1 (#1516)
Bumps [black](https://github.com/psf/black) from 21.9b0 to 21.11b1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-29 18:35:28 -08:00
dependabot[bot]
3303514a52
Update docutils requirement from <0.18 to <0.19 (#1508)
Updates the requirements on [docutils](http://docutils.sourceforge.net/) to permit the latest version.

---
updated-dependencies:
- dependency-name: docutils
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-29 18:35:18 -08:00
dependabot[bot]
1beb7d9399
Update aiofiles requirement from <0.8,>=0.4 to >=0.4,<0.9 (#1537)
Updates the requirements on [aiofiles](https://github.com/Tinche/aiofiles) to permit the latest version.
- [Release notes](https://github.com/Tinche/aiofiles/releases)
- [Commits](https://github.com/Tinche/aiofiles/compare/v0.4.0...v0.8.0)

---
updated-dependencies:
- dependency-name: aiofiles
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-29 18:29:54 -08:00
Simon Willison
48f11998b7 Release 0.59.3 0.59.3
Refs #448, #838, #1519
2021-11-20 15:40:21 -08:00
Simon Willison
d8c79b1340 Link to Apache proxy demo from documentation, closes #1524 2021-11-20 15:33:58 -08:00
Simon Willison
ed77eda6d8 Add datasette-redirect-to-https plugin
Also configured suprvisord children to log to stdout, so that I
can see them with flyctly logs -a datasette-apache-proxy-demo

Refs #1524
2021-11-20 15:30:25 -08:00
Simon Willison
f11a13d73f Extract out Apache config to separate file, refs #1524 2021-11-20 12:23:40 -08:00
Simon Willison
250db8192c Hopefully last fix relating to #1519, #838 2021-11-20 11:09:05 -08:00
Simon Willison
08947fa764 Fix more broken base_url links
Refs #1519, #838
2021-11-20 11:03:08 -08:00
Simon Willison
48951e4304 Switch to hosting demo on Fly, closes #1522 2021-11-20 10:51:51 -08:00
Simon Willison
494f11d5cc Switch from Alpine to Debian, refs #1522 2021-11-20 10:51:14 -08:00
Simon Willison
24b5006ad7 ProxyPreserveHost On for apache-proxy demo, refs #1522 2021-11-19 17:11:13 -08:00
Simon Willison
640031edfd Fixed bug introduced in #1519 2021-11-19 17:01:17 -08:00
Simon Willison
fe687fd020 Fixed a whole bunch of broken base_url links
Refs #1519, #838
2021-11-19 16:53:11 -08:00
Simon Willison
a1ba6cd6bb Use build arguments, refs #1522 2021-11-19 16:34:35 -08:00
Simon Willison
c617e1769e Fixed test I broke with new repr() in ##1519 2021-11-19 15:13:17 -08:00
Simon Willison
c76bbd4066 New live demo with Apache proxying, refs #1522 2021-11-19 14:50:06 -08:00
Simon Willison
ff0dd4da38 repr() method for Request, refs #1519 2021-11-19 12:29:37 -08:00
Simon Willison
3025505515 functools.wraps to help investigate #1517 2021-11-18 19:19:43 -08:00
Simon Willison
6e971b4ac1 Test confirming plugins can over-ride default routes, closes #1517 2021-11-18 19:07:21 -08:00
Simon Willison
0156c6b5e5 Facet in predictable order for tests, refs #448 2021-11-15 17:31:33 -08:00
Simon Willison
55024b5301 _facet_array no longer confused by duplicate array items, closes #448 2021-11-15 17:19:33 -08:00
Simon Willison
07044bd130 SQL view-friendly arraycontains/arraynotcontains implementation, refs #448 2021-11-15 15:41:07 -08:00
Simon Willison
502c02fa6d Pin to docutils<0.18 in ReadTheDocs, refs #1507 0.59.2 2021-11-13 21:37:40 -08:00
Simon Willison
030390fd4a
.readthedocs.yaml configuration, refs #1507 2021-11-13 21:29:43 -08:00