{"html_url": "https://github.com/simonw/datasette/issues/483#issuecomment-495080591", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/483", "id": 495080591, "node_id": "MDEyOklzc3VlQ29tbWVudDQ5NTA4MDU5MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-05-23T06:07:53Z", "updated_at": "2019-05-23T06:09:05Z", "author_association": "OWNER", "body": "As far as URL design goes... I'm going to stick with `?_facet_date=` for this and use the not-yet-fully-baked JSON alternative syntax. Probably something like this:\r\n\r\n ?_facet_date={\"column\":\"created\",\"interval\":\"month\"}\r\n\r\nWhere interval can be day (the default), month or year. And maybe week? Not sure about that.\r\n\r\nStill not sure what/if I should do about exposing these options in the UI.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 447408527, "label": "Option to facet by date using month or year"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/483#issuecomment-495080390", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/483", "id": 495080390, "node_id": "MDEyOklzc3VlQ29tbWVudDQ5NTA4MDM5MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-05-23T06:06:53Z", "updated_at": "2019-05-23T06:06:53Z", "author_association": "OWNER", "body": "Yes there's definitely something exciting to be done with location facets.\r\n\r\nThe easiest one would be a radius-distance-from-a-point facet (5km, 10km etc). A more sophisticated thing might be possible on top of GeoJSON and SpatiaLite - that's probably something I would put in a plugin rather than shipping in Datasette itself.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 447408527, "label": "Option to facet by date using month or year"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/483#issuecomment-495034774", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/483", "id": 495034774, "node_id": "MDEyOklzc3VlQ29tbWVudDQ5NTAzNDc3NA==", "user": {"value": 45919695, "label": "jcmkk3"}, "created_at": "2019-05-23T01:38:32Z", "updated_at": "2019-05-23T01:43:04Z", "author_association": "NONE", "body": "I think that location information is one of the other common pieces of hierarchical data. At least one that is general enough that extra dimensions could be auto-generated.\r\n\r\nAlso, I think this is an awesome project. Thank you for creating this.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 447408527, "label": "Option to facet by date using month or year"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/483#issuecomment-495032933", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/483", "id": 495032933, "node_id": "MDEyOklzc3VlQ29tbWVudDQ5NTAzMjkzMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-05-23T01:28:45Z", "updated_at": "2019-05-23T01:28:45Z", "author_association": "OWNER", "body": "Would this be useful for other facets? How many facet types are likely to have a small number of options that could be linked to in this way?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 447408527, "label": "Option to facet by date using month or year"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/483#issuecomment-495032818", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/483", "id": 495032818, "node_id": "MDEyOklzc3VlQ29tbWVudDQ5NTAzMjgxOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-05-23T01:28:06Z", "updated_at": "2019-05-23T01:28:06Z", "author_association": "OWNER", "body": "Here's a UI concept:\r\n\r\n\"fixtures__facetable__15_rows\"\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 447408527, "label": "Option to facet by date using month or year"}, "performed_via_github_app": null}