{"html_url": "https://github.com/simonw/datasette/issues/1804#issuecomment-1238773577", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1804", "id": 1238773577, "node_id": "IC_kwDOBm6k_c5J1i9J", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-07T00:21:56Z", "updated_at": "2022-09-07T00:21:56Z", "author_association": "OWNER", "body": "`facet_size` is now documented here: https://docs.datasette.io/en/latest/facets.html#facets-in-metadata-json", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1363440999, "label": "Ability to set a custom facet_size per table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1804#issuecomment-1238347451", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1804", "id": 1238347451, "node_id": "IC_kwDOBm6k_c5Jz667", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-06T15:59:26Z", "updated_at": "2022-09-06T15:59:26Z", "author_association": "OWNER", "body": "Still needs documentation.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1363440999, "label": "Ability to set a custom facet_size per table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1804#issuecomment-1238313314", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1804", "id": 1238313314, "node_id": "IC_kwDOBm6k_c5Jzyli", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-06T15:31:36Z", "updated_at": "2022-09-06T15:31:36Z", "author_association": "OWNER", "body": "In that code `self.table` is the name of the current table, but can also be `None` if the faceting is being run against a custom SQL query instead (a future feature). `self.database` is the name of the current database.\r\n\r\nSo reading metadata via `self.ds` should work fine.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1363440999, "label": "Ability to set a custom facet_size per table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1804#issuecomment-1238311565", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1804", "id": 1238311565, "node_id": "IC_kwDOBm6k_c5JzyKN", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-06T15:30:19Z", "updated_at": "2022-09-06T15:30:19Z", "author_association": "OWNER", "body": "Relevant code: https://github.com/simonw/datasette/blob/c9d1943aede436fa3413fd49bc56335cbda4ad07/datasette/facets.py#L102-L110", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1363440999, "label": "Ability to set a custom facet_size per table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1804#issuecomment-1238309481", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1804", "id": 1238309481, "node_id": "IC_kwDOBm6k_c5Jzxpp", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-06T15:28:35Z", "updated_at": "2022-09-06T15:28:35Z", "author_association": "OWNER", "body": "I'm going to do this just at the table level - if you want it at the database level I would imagine usually you would be OK running `--setting default_facet_size 10` instead, since most Datasette instances only expose a single database.\r\n\r\nI may reconsider this in the future.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1363440999, "label": "Ability to set a custom facet_size per table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1804#issuecomment-1238308213", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1804", "id": 1238308213, "node_id": "IC_kwDOBm6k_c5JzxV1", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-06T15:27:31Z", "updated_at": "2022-09-06T15:27:31Z", "author_association": "OWNER", "body": "Relevant example from https://docs.datasette.io/en/stable/metadata.html#per-database-and-per-table-metadata\r\n```json\r\n{\r\n \"databases\": {\r\n \"database1\": {\r\n \"tables\": {\r\n \"example_table\": {\r\n \"sortable_columns\": [\r\n \"height\",\r\n \"weight\"\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n}\r\n```\r\nI think this becomes `\"facet_size\": \"...\"` at the table level, to match the name of the `?_facet_size=100` querystring parameter.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1363440999, "label": "Ability to set a custom facet_size per table"}, "performed_via_github_app": null}