issue_comments
8 rows where author_association = "OWNER" and issue = 594168758 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- extra_template_vars() sending wrong view_name for index · 8 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
609461331 | https://github.com/simonw/datasette/issues/716#issuecomment-609461331 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTQ2MTMzMQ== | simonw 9599 | 2020-04-05T18:31:32Z | 2020-04-05T20:04:08Z | OWNER | The test ended up being a bit fiddly - here it is: I used In writing this I realized that the So I removed the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609456030 | https://github.com/simonw/datasette/issues/716#issuecomment-609456030 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTQ1NjAzMA== | simonw 9599 | 2020-04-05T17:52:39Z | 2020-04-05T20:02:13Z | OWNER | Found it. Prior to that change I passed I switched over to doing this: But forgot to pass in the optional Next step: write a failing test, then fix it. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609455243 | https://github.com/simonw/datasette/issues/716#issuecomment-609455243 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTQ1NTI0Mw== | simonw 9599 | 2020-04-05T17:47:33Z | 2020-04-05T17:47:33Z | OWNER | You start
:040000 040000 def9e31252e056845609de36c66d4320dd0c47f8 da19b7f8c26d50a4c05e5a7f05220b968429725c M datasette bisect run success ``` So 70b915fb4bc214f9d064179f87671f8a378aa127 introduced the bug! |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609453886 | https://github.com/simonw/datasette/issues/716#issuecomment-609453886 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTQ1Mzg4Ng== | simonw 9599 | 2020-04-05T17:38:38Z | 2020-04-05T17:42:14Z | OWNER | OK, here's the test harness. Three files:
root = pathlib.Path(file).parent async def run_check(): ds = Datasette( [], template_dir=str(root / "templates"), plugins_dir=str(root / "plugins") ) async with httpx.AsyncClient(app=ds.app()) as client: response = await client.get("http://localhost/") assert 200 == response.status_code assert b"view_name:index" == response.content, response.content if name == "main": loop = asyncio.get_event_loop() loop.run_until_complete(run_check()) ```
@hookimpl def extra_template_vars(view_name): return {"view_name": view_name} ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609454072 | https://github.com/simonw/datasette/issues/716#issuecomment-609454072 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTQ1NDA3Mg== | simonw 9599 | 2020-04-05T17:39:47Z | 2020-04-05T17:39:47Z | OWNER |
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609109354 | https://github.com/simonw/datasette/issues/716#issuecomment-609109354 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTEwOTM1NA== | simonw 9599 | 2020-04-05T00:30:30Z | 2020-04-05T00:31:55Z | OWNER | In order to use I'm going to use something I can execute with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609107679 | https://github.com/simonw/datasette/issues/716#issuecomment-609107679 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTEwNzY3OQ== | simonw 9599 | 2020-04-05T00:10:37Z | 2020-04-05T00:11:06Z | OWNER | Once I fix this bug I should update https://github.com/simonw/museums to deploy using the latest Datasette release as opposed to being anchored to 286ed28. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 | |
609106252 | https://github.com/simonw/datasette/issues/716#issuecomment-609106252 | https://api.github.com/repos/simonw/datasette/issues/716 | MDEyOklzc3VlQ29tbWVudDYwOTEwNjI1Mg== | simonw 9599 | 2020-04-04T23:58:12Z | 2020-04-04T23:58:12Z | OWNER | I think I'll use |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
extra_template_vars() sending wrong view_name for index 594168758 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [issue] INTEGER REFERENCES [issues]([id]) , [performed_via_github_app] TEXT); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1