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/233#issuecomment-397729500 | https://api.github.com/repos/simonw/datasette/issues/233 | 397729500 | MDEyOklzc3VlQ29tbWVudDM5NzcyOTUwMA== | 9599 | 2018-06-15T20:11:14Z | 2018-06-15T20:11:14Z | OWNER | The `.json` and `.csv` links displayed on the table page should default to using `?_labels=1` if Datasette detects that there are foreign key expansions available for the page. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
316444720 | |
https://github.com/simonw/datasette/issues/233#issuecomment-397729319 | https://api.github.com/repos/simonw/datasette/issues/233 | 397729319 | MDEyOklzc3VlQ29tbWVudDM5NzcyOTMxOQ== | 9599 | 2018-06-15T20:10:24Z | 2018-06-15T20:10:24Z | OWNER | I'm also going to add the ability to specify individual columns that you want to expand using `?_label=city_id&_label=state_id` | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
316444720 | |
https://github.com/simonw/datasette/issues/233#issuecomment-397668427 | https://api.github.com/repos/simonw/datasette/issues/233 | 397668427 | MDEyOklzc3VlQ29tbWVudDM5NzY2ODQyNw== | 9599 | 2018-06-15T16:07:43Z | 2018-06-15T16:07:43Z | OWNER | Demo: https://datasette-json-labels-demo.now.sh/fixtures-fda0fea/facetable.json?_labels=1&_shape=array | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
316444720 | |
https://github.com/simonw/datasette/issues/233#issuecomment-397663968 | https://api.github.com/repos/simonw/datasette/issues/233 | 397663968 | MDEyOklzc3VlQ29tbWVudDM5NzY2Mzk2OA== | 9599 | 2018-06-15T15:51:17Z | 2018-06-15T15:51:17Z | OWNER | Nearly done, but I need the HTML view to ignore the `?_labels=1` param (it throws an error at the moment). | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
316444720 | |
https://github.com/simonw/datasette/issues/233#issuecomment-397648080 | https://api.github.com/repos/simonw/datasette/issues/233 | 397648080 | MDEyOklzc3VlQ29tbWVudDM5NzY0ODA4MA== | 9599 | 2018-06-15T14:56:21Z | 2018-06-15T14:56:21Z | OWNER | I considered including a `"table"` key like this: ``` "qLegalStatus": { "value" 2, "label": "Private", "table": "qLegalStatus" } ``` This would help generate the HTML links using just the JSON data. But... I realized that in a list of 50 rows that value would be duplicated 50 times which is a bit nasty. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
316444720 | |
https://github.com/simonw/datasette/issues/233#issuecomment-397637302 | https://api.github.com/repos/simonw/datasette/issues/233 | 397637302 | MDEyOklzc3VlQ29tbWVudDM5NzYzNzMwMg== | 9599 | 2018-06-15T14:24:08Z | 2018-06-15T14:55:19Z | OWNER | I'm going with the terminology "labels" here. You'll be able to add ``?_labels=1`` and the JSON will look something like this: ``` { "rowid": 233, "TreeID": 121240, "qLegalStatus": { "value" 2, "label": "Private" } "qSpecies": { "value": 16, "label": "Sycamore" } "qAddress": "91 Commonwealth Ave", ... } ``` I need this to help build foreign key expansions for CSV files, see #266 | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
316444720 |