github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/621#issuecomment-552253208 | https://api.github.com/repos/simonw/datasette/issues/621 | 552253208 | MDEyOklzc3VlQ29tbWVudDU1MjI1MzIwOA== | 9599 | 2019-11-11T00:39:57Z | 2019-11-11T00:39:57Z | OWNER | This is a nice opportunity to help with the refactoring of the table view in #617 - the above code snippet takes the request, looks at the `_through=` parameters and appends things to the `where_clauses`, `params` and `extra_human_descriptions` lists. I can factor that out into a separate private method on `TableView` and use that as a pattern for further refactoring. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
520681725 | |
https://github.com/simonw/datasette/issues/621#issuecomment-552251645 | https://api.github.com/repos/simonw/datasette/issues/621 | 552251645 | MDEyOklzc3VlQ29tbWVudDU1MjI1MTY0NQ== | 9599 | 2019-11-11T00:23:56Z | 2019-11-11T00:33:31Z | OWNER | Current syntax: https://datasette.readthedocs.io/en/stable/json_api.html#special-table-arguments `/?_through={"table":"roadside_attraction_characteristics","column":"characteristic_id","value":"1"}` Demo: https://latest.datasette.io/fixtures/roadside_attractions?_through={%22table%22:%22roadside_attraction_characteristics%22,%22column%22:%22characteristic_id%22,%22value%22:%221%22} The alternative syntax for that could be: `https://latest.datasette.io/fixtures/roadside_attractions?_through.roadside_attraction_characteristics.characteristic_id=1` | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
520681725 | |
https://github.com/simonw/datasette/issues/621#issuecomment-552251666 | https://api.github.com/repos/simonw/datasette/issues/621 | 552251666 | MDEyOklzc3VlQ29tbWVudDU1MjI1MTY2Ng== | 9599 | 2019-11-11T00:24:09Z | 2019-11-11T00:32:49Z | OWNER | Here's the current code: https://github.com/simonw/datasette/blob/28c4a6db5b5e512db630d7ba6127196185de67c7/datasette/views/table.py#L316-L348 | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
520681725 |