{"html_url": "https://github.com/simonw/datasette/issues/1527#issuecomment-1012653109", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1527", "id": 1012653109, "node_id": "IC_kwDOBm6k_c48W9w1", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-14T00:57:08Z", "updated_at": "2022-01-14T00:57:08Z", "author_association": "OWNER", "body": "Bug is fixed on https://latest.datasette.io/fixtures/facetable?_sort=pk&_city_id__gt=1", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059555791, "label": "Columns starting with an underscore behave poorly in filters"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/1527#issuecomment-1012635696", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1527", "id": 1012635696, "node_id": "IC_kwDOBm6k_c48W5gw", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-14T00:19:10Z", "updated_at": "2022-01-14T00:20:36Z", "author_association": "OWNER", "body": "Oh! This is because `_city_id` has a leading underscore (for testing purposes). I think I need to filter out any keys that contain `__` in that case.\r\n\r\nWhat happens to columns that contain a `__`? They shouldn't be reflected in the hidden arguments either - this code is really only supposed to catch things like `_where` and `_m2m_through=` and `_col` - basically most of the list on https://docs.datasette.io/en/stable/json_api.html#special-table-arguments", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059555791, "label": "Columns starting with an underscore behave poorly in filters"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/1527#issuecomment-1012634659", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1527", "id": 1012634659, "node_id": "IC_kwDOBm6k_c48W5Qj", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-14T00:17:00Z", "updated_at": "2022-01-14T00:18:11Z", "author_association": "OWNER", "body": "That's because that page has this unnecessary hidden form field:\r\n```html\r\n\r\n```\r\nThat field is added by this bit in the template: https://github.com/simonw/datasette/blob/515f8d38ebae203efc15ca79a8b42848276b35e5/datasette/templates/table.html#L119-L122\r\n\r\nWhich is populated here: https://github.com/simonw/datasette/blob/ace86566b28280091b3844cf5fbecd20158e9004/datasette/views/table.py#L813-L821\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059555791, "label": "Columns starting with an underscore behave poorly in filters"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/1527#issuecomment-988154238", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1527", "id": 988154238, "node_id": "IC_kwDOBm6k_c465gl-", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-07T18:05:26Z", "updated_at": "2021-12-07T18:05:26Z", "author_association": "OWNER", "body": "Found a new case of this bug: click the \"Apply\" button on https://latest.datasette.io/fixtures/facetable?_sort=pk&_city_id__gt=1\r\n\r\n![apply-bug](https://user-images.githubusercontent.com/9599/145082760-6947c769-480f-45c7-9916-b6cc7f5834f8.gif)\r\n\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": 1059555791, "label": "Columns starting with an underscore behave poorly in filters"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/1527#issuecomment-982318745", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1527", "id": 982318745, "node_id": "IC_kwDOBm6k_c46jP6Z", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-11-30T06:11:21Z", "updated_at": "2021-11-30T06:11:21Z", "author_association": "OWNER", "body": "Manually tested this too, looks like that fixed it.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059555791, "label": "Columns starting with an underscore behave poorly in filters"}, "performed_via_github_app": null}
{"html_url": "https://github.com/simonw/datasette/issues/1527#issuecomment-982235541", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1527", "id": 982235541, "node_id": "IC_kwDOBm6k_c46i7mV", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-11-30T02:57:34Z", "updated_at": "2021-11-30T02:58:44Z", "author_association": "OWNER", "body": "I started fiddling with a test for this which extracts the `