html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,issue,performed_via_github_app https://github.com/simonw/datasette/issues/645#issuecomment-635054690,https://api.github.com/repos/simonw/datasette/issues/645,635054690,MDEyOklzc3VlQ29tbWVudDYzNTA1NDY5MA==,9599,2020-05-28T02:22:12Z,2020-05-28T02:22:12Z,OWNER,"This is a duplicate of a more recent, more developed issue: #770","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",530653633, https://github.com/simonw/datasette/issues/645#issuecomment-560913459,https://api.github.com/repos/simonw/datasette/issues/645,560913459,MDEyOklzc3VlQ29tbWVudDU2MDkxMzQ1OQ==,9599,2019-12-02T23:38:22Z,2019-12-02T23:38:22Z,OWNER,"I'm going to add unit tests for the hook, and as part of that I'll fix the weird thing at the moment where the plugins for the unit tests are defined inside a quoted string as opposed to their own separate file.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",530653633, https://github.com/simonw/datasette/issues/645#issuecomment-560036740,https://api.github.com/repos/simonw/datasette/issues/645,560036740,MDEyOklzc3VlQ29tbWVudDU2MDAzNjc0MA==,9599,2019-12-01T01:29:58Z,2019-12-01T01:29:58Z,OWNER,"It should be optionally awaitable - as should the existing `""callback""`. Can use the same pattern as this one: https://github.com/simonw/datasette/blob/8c642f04e0608bf537fdd1f76d64c2367fb04d57/datasette/views/base.py#L124-L135","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",530653633, https://github.com/simonw/datasette/issues/645#issuecomment-560036585,https://api.github.com/repos/simonw/datasette/issues/645,560036585,MDEyOklzc3VlQ29tbWVudDU2MDAzNjU4NQ==,9599,2019-12-01T01:28:35Z,2019-12-01T01:28:35Z,OWNER,"Plugins are currently expected to return this: ```python @hookimpl def register_output_renderer(datasette): return { ""extension"": ""test"", ""callback"": render_test } ``` We can add an optional third argument, `""should_suggest""`, which takes the same arguments as the callback but simply returns `True` or `False` depending on if the plugin can work for the current set of data. If that dictionary key is omitted, Datasette will treat this test as returning `True`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",530653633,