{"html_url": "https://github.com/simonw/datasette/issues/495#issuecomment-509038243", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/495", "id": 509038243, "node_id": "MDEyOklzc3VlQ29tbWVudDUwOTAzODI0Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-07-07T23:14:03Z", "updated_at": "2019-07-07T23:14:03Z", "author_association": "OWNER", "body": "Part of #551 ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 450032134, "label": "facet_m2m gets confused by multiple relationships"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/495#issuecomment-497194179", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/495", "id": 497194179, "node_id": "MDEyOklzc3VlQ29tbWVudDQ5NzE5NDE3OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-05-30T04:04:01Z", "updated_at": "2019-05-30T04:04:01Z", "author_association": "OWNER", "body": "I think there are a few steps to solving this:\r\n\r\n* Define a variant of `?_facet_m2m={..}` that takes a JSON object which specifies which middle and destination table should be used, and via which columns\r\n* Teach the Facet `ManyToManyFacet.suggest()` method to check for multiple conflicting m2m relationships and use the new JSON URL for them. Also pick non-conflicting display names for those facets.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 450032134, "label": "facet_m2m gets confused by multiple relationships"}, "performed_via_github_app": null}