{"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338806718", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338806718, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODgwNjcxOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T21:47:53Z", "updated_at": "2017-10-23T21:47:53Z", "author_association": "OWNER", "body": "Here's what the homepage of cloudflare.com does (with newlines added within the link header for clarity):\r\n\r\n $ curl -i 'https://www.cloudflare.com/' \r\n HTTP/1.1 200 OK\r\n Date: Mon, 23 Oct 2017 21:45:58 GMT\r\n Content-Type: text/html; charset=utf-8\r\n Transfer-Encoding: chunked\r\n Connection: keep-alive\r\n link:\r\n ; rel=preload; as=style,\r\n ; rel=preload; as=style,\r\n ; rel=preload,\r\n ; rel=preload,\r\n ; rel=preload; as=video,\r\n ; rel=preload; as=video,\r\n ; rel=preload; as=video,\r\n ; rel=preload; as=video,\r\n ; rel=preload; as=video,\r\n ; rel=preload; as=image\r\n\r\nThe original header looked like this:\r\n\r\n link: ; rel=preload; as=style, ; rel=preload; as=style, ; rel=preload, ; rel=preload, ; rel=preload; as=video, ; rel=preload; as=video, ; rel=preload; as=video, ; rel=preload; as=video, ; rel=preload; as=video, ; rel=preload; as=image\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338804173", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338804173, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODgwNDE3Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T21:36:37Z", "updated_at": "2017-10-23T21:36:37Z", "author_association": "OWNER", "body": "Looks like the easiest way to implement HTTP/2 server push today is to run behind Cloudflare and use this:\r\n\r\n Link: ; rel=preload; as=script\r\n\r\nhttps://blog.cloudflare.com/announcing-support-for-http-2-server-push-2/\r\n\r\nHere's the W3C draft: https://w3c.github.io/preload/\r\n\r\nFrom https://w3c.github.io/preload/#as-attribute it looks like I should use `as=fetch` if the content is intended for consumption by fetch() or XMLHTTPRequest.\r\n\r\nUnclear if I should throw `as=fetch crossorigin` in there. Need to experiment on that.\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338799438", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338799438, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODc5OTQzOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T21:17:25Z", "updated_at": "2017-10-23T21:17:25Z", "author_association": "OWNER", "body": "Can I take advantage of HTTP/2 so even if you get redirected I start serving you the correct resource straight away?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338797522", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338797522, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODc5NzUyMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T21:09:33Z", "updated_at": "2017-10-23T21:09:33Z", "author_association": "OWNER", "body": "https://stackoverflow.com/a/18134919/6083 is a good answer about how many characters of the hash are needed to be unique. I say we default to 7 characters, like git does - but allow extras to be configured.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338789734", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338789734, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODc4OTczNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T20:40:25Z", "updated_at": "2017-10-23T21:10:19Z", "author_association": "OWNER", "body": "URL design:\r\n\r\n /database/table.json - redirects to /database-6753f4a/table.json\r\n\r\nSo we always redirect to the version with the truncated hash in the URL.\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/20#issuecomment-338769538", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/20", "id": 338769538, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODc2OTUzOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T19:25:55Z", "updated_at": "2017-10-23T19:25:55Z", "author_association": "OWNER", "body": "Maybe this should be handled by views instead?\r\n\r\nhttps://stateless-datasets-wreplxalgu.now.sh/ lists some views\r\n\r\nhttps://stateless-datasets-wreplxalgu.now.sh/?sql=select%20*%20from%20%22Order%20Subtotals%22 is an example showing the content of a view.\r\n\r\nWhat would the URL to views be? I don't think a view can share a name with a table, so the same URL scheme could work for both.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267759136, "label": "Config file with support for defining canned queries"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/16#issuecomment-338768860", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/16", "id": 338768860, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODc2ODg2MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T19:23:29Z", "updated_at": "2017-10-23T19:23:29Z", "author_association": "OWNER", "body": "I could use the table-reflow mechanism demonstrated here: http://demos.jquerymobile.com/1.4.3/table-reflow/", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267726219, "label": "Default HTML/CSS needs to look reasonable and be responsive"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/8#issuecomment-338697223", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/8", "id": 338697223, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODY5NzIyMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T15:28:11Z", "updated_at": "2017-10-23T15:28:11Z", "author_association": "OWNER", "body": "Now returning this:\r\n\r\n {\r\n \"error\": \"attempt to write a readonly database\",\r\n \"ok\": false\r\n }\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267517314, "label": "Attempting an INSERT or UPDATE should return a sane error message"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338531827", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338531827, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUzMTgyNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T02:28:31Z", "updated_at": "2017-10-23T02:29:05Z", "author_association": "OWNER", "body": "Many of the applications I want to implement with this would benefit from having permanent real URLs.\r\n\r\nSo let\u2019s have both. The sha1 urls will serve far future cache headers (and an etag derived from their path). The non sha1 URLs will serve 302 uncached redirects to the sha1 locations.\r\n\r\nWe will have a setting that lets people opt out of this behavior.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/11#issuecomment-338530704", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/11", "id": 338530704, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUzMDcwNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T02:18:36Z", "updated_at": "2017-10-23T02:18:36Z", "author_association": "OWNER", "body": "Needed by https://github.com/simonw/stateless-datasets/issues/4#issuecomment-338530389", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267522549, "label": "Code that generates compile-time properties about the database "}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338530480", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338530480, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUzMDQ4MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T02:16:33Z", "updated_at": "2017-10-23T02:16:33Z", "author_association": "OWNER", "body": " How about when the service starts up it checks for a compile.json file and, if it is missing, creates it using the same code we run at compile time normally ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/4#issuecomment-338530389", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/4", "id": 338530389, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUzMDM4OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T02:15:41Z", "updated_at": "2017-10-23T02:15:41Z", "author_association": "OWNER", "body": "This means I need a good solution for these compile time options while running in development mode \r\n ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515836, "label": "Make URLs immutable"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/3#issuecomment-338526148", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/3", "id": 338526148, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUyNjE0OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T01:35:17Z", "updated_at": "2017-10-23T01:35:17Z", "author_association": "OWNER", "body": "https://github.com/ahupp/python-magic/blob/master/README.md", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267515678, "label": "Make individual column valuables addressable, with smart content types"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/5#issuecomment-338524857", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/5", "id": 338524857, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUyNDg1Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T01:20:30Z", "updated_at": "2017-10-23T01:20:30Z", "author_association": "OWNER", "body": "https://stackoverflow.com/a/14468878/6083\r\n\r\nLooks like I should order by compound primary key and implement cursor-based pagination.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267516066, "label": "Implement sensible query pagination"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1#issuecomment-338524454", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1", "id": 338524454, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUyNDQ1NA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T01:15:24Z", "updated_at": "2017-10-23T01:15:24Z", "author_association": "OWNER", "body": "Table rendering logic needs to detect the primary key field and turn it into a hyperlink. If there is a compound primary key it should add an extra column at the start of the table which displays the compound key as a link", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267513424, "label": "Addressable pages for every row in a table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1#issuecomment-338523957", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1", "id": 338523957, "node_id": "MDEyOklzc3VlQ29tbWVudDMzODUyMzk1Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-23T01:09:05Z", "updated_at": "2017-10-24T02:42:12Z", "author_association": "OWNER", "body": "I also need to solve for weird primary keys. If it\u2019s a single integer or a single char field that\u2019s easy. But what if it is a compound key with more than one chat field? What delimiter can I use that will definitely be safe?\r\n\r\nLet\u2019s say I use hyphen. Now I need to find a durable encoding for any hyphens that might exist in the key fields themselves.\r\n\r\nHow about I use URLencoding for every non-alpha-numeric character? That will turn hyphens into (I think) %2D. It should also solve for unicode characters, but it means the vast majority of keys (integers) will display neatly, including a compound key of eg 5678-345\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267513424, "label": "Addressable pages for every row in a table"}, "performed_via_github_app": null}