{"html_url": "https://github.com/simonw/datasette/issues/648#issuecomment-562913040", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/648", "id": 562913040, "node_id": "MDEyOklzc3VlQ29tbWVudDU2MjkxMzA0MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-08T04:56:43Z", "updated_at": "2019-12-08T04:56:43Z", "author_association": "OWNER", "body": "Idea: do this with a simple template naming convention.\r\n\r\nIf you hit `/about` and there is no matching database, check for a template file called `about-page.html`. If it exists, render it. Otherwise return a 404 database not found.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 534492501, "label": "Mechanism for adding arbitrary pages like /about"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/649#issuecomment-562940252", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/649", "id": 562940252, "node_id": "MDEyOklzc3VlQ29tbWVudDU2Mjk0MDI1Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-08T11:59:52Z", "updated_at": "2019-12-08T12:00:12Z", "author_association": "OWNER", "body": "The easiest solution would be to only show counts on the index pages for immutable (`-i`) databases.\r\n\r\nI don't like this, because the most common uses of Datasette don't in my opinion justify it. Most of the time Datasette will be running against a single, small, mutable database. I'd like to show counts in that case.\r\n\r\nSome options:\r\n\r\n- disable counts on the index page for mutable databases of more than one is attached\r\n- disable counts on the index page for databases where the file in disk is larger than a specified threshold (maybe 10MB? I'm making up this number)\r\n- implement an overall timer which cuts off table counting once the sum of time spent on it has gone beyond a second\r\n\r\nWorth prototyping a bit to see what works best.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 534530973, "label": "Reduce table counts on index page with many databases"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/648#issuecomment-563000942", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/648", "id": 563000942, "node_id": "MDEyOklzc3VlQ29tbWVudDU2MzAwMDk0Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-08T22:08:14Z", "updated_at": "2019-12-08T22:08:14Z", "author_association": "OWNER", "body": "Alternative idea: a new concept of \"pages\" which live inside `templates/pages/` and where the file name minus the `.html` extension defines the URL.\r\n\r\n`templates/about/me.html` would be served at `/about/me` - but only if no matching database and table were found.\r\n\r\nThis only takes effect on 404 errors from core Datasette.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 534492501, "label": "Mechanism for adding arbitrary pages like /about"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/648#issuecomment-563001064", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/648", "id": 563001064, "node_id": "MDEyOklzc3VlQ29tbWVudDU2MzAwMTA2NA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-08T22:09:20Z", "updated_at": "2019-12-08T22:09:20Z", "author_association": "OWNER", "body": "Stretch goal: it would be neat if these pages could return custom HTTP headers (eg content-type) and maybe even status codes (eg for redirects) somehow.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 534492501, "label": "Mechanism for adding arbitrary pages like /about"}, "performed_via_github_app": null}