{"html_url": "https://github.com/simonw/datasette/issues/419#issuecomment-473726527", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/419", "id": 473726527, "node_id": "MDEyOklzc3VlQ29tbWVudDQ3MzcyNjUyNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-03-17T23:28:41Z", "updated_at": "2019-05-16T14:54:50Z", "author_association": "OWNER", "body": "I've added the `-i` option, so this now works:\r\n\r\n datasette -i fixtures.db\r\n\r\nThis feature is incomplete though. Some extra changes I need to make:\r\n\r\n* The `?_hash=1` and `--config hash_urls:1` options (introduced in #418) should only work for immutable databases #471\r\n* Would be useful if there was a debug screen that could show which databases were mounted as mutable v.s. immutable - maybe a `/-/databases` page? - #470 \r\n* Need to rework how `.inspect()` works, see #420 \r\n* Documentation is needed #421\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 421551434, "label": "Default to opening files in mutable mode, special option for immutable files"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/419#issuecomment-473708724", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/419", "id": 473708724, "node_id": "MDEyOklzc3VlQ29tbWVudDQ3MzcwODcyNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-03-17T19:55:21Z", "updated_at": "2019-05-16T03:35:59Z", "author_association": "OWNER", "body": "Thinking about this further: I think I may have made a mistake establishing \"immutable\" as the default mode for databases opened by Datasette.\r\n\r\nWhat would it look like if files were NOT opened in immutable mode by default?\r\n\r\nMaybe the command to start Datasette looks like this:\r\n\r\n datasette mutable1.db mutable2.db --immutable=this_is_immutable.db --immutable=this_is_immutable2.db\r\n\r\nSo regular file arguments are treated as mutable (and opened in `?mode=ro`) while file arguments passed using the new `--immutable` option are opened in immutable mode.\r\n\r\nThe `-i` shortcut has not yet been taken, so this could be abbreviated to:\r\n\r\n datasette mutable1.db mutable2.db -i this_is_immutable.db -i this_is_immutable2.db", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 421551434, "label": "Default to opening files in mutable mode, special option for immutable files"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/421#issuecomment-473726619", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/421", "id": 473726619, "node_id": "MDEyOklzc3VlQ29tbWVudDQ3MzcyNjYxOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-03-17T23:29:47Z", "updated_at": "2019-03-17T23:29:47Z", "author_association": "OWNER", "body": "Needed for #419", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 421985685, "label": "Documentation for ?_hash=1 and Datasette's hashed URL caching"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/420#issuecomment-473726587", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/420", "id": 473726587, "node_id": "MDEyOklzc3VlQ29tbWVudDQ3MzcyNjU4Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-03-17T23:29:22Z", "updated_at": "2019-03-17T23:29:22Z", "author_association": "OWNER", "body": "Needed for #419", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 421971339, "label": "Fix all the places that currently use .inspect() data"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/418#issuecomment-473724868", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/418", "id": 473724868, "node_id": "MDEyOklzc3VlQ29tbWVudDQ3MzcyNDg2OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-03-17T23:07:31Z", "updated_at": "2019-03-17T23:07:31Z", "author_association": "OWNER", "body": "The design of this feature is discussed extensively in the comments on pull request #416 \r\n\r\nSome demos:\r\n\r\n* https://latest.datasette.io/fixtures/facetable now no longer redirects to the hash\r\n* https://latest.datasette.io/fixtures/facetable?_hash=1 redirects to https://latest.datasette.io/fixtures-dd88475/facetable\r\n\r\n```\r\n~ $ curl -i 'https://latest.datasette.io/fixtures-dd88475/facetable' \r\nHTTP/2 200 \r\ndate: Sun, 17 Mar 2019 23:05:21 GMT\r\ncontent-type: text/html; charset=utf-8\r\ncontent-length: 17555\r\ncache-control: max-age=31536000\r\n\r\n